Injecting URL-encoding into Nagios Macros
Andreas Ericsson
ae at op5.se
Thu Aug 13 12:50:09 CEST 2009
Richard Remington wrote:
> Is there a way that anyone knows for URL-encoding the value of the
> $SERVICEDESC$ macro? Our service descriptions have spaces in them so
> our email notices that include the URL to return to the Nagios Web
> admin page is broken at that space. Anyone have any ideas or thoughts
> on how I might do this w/o resorting to lobbying to have underscores
> instead of spaces in our service descriptions?
Write a custom notification script wrapper which url-encodes them
when you make URL's out of them.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list