Command line format for external notification.
Paul L. Allen
pla at softflare.com
Wed Jun 29 14:30:46 CEST 2005
Andreas Ericsson writes:
> This won't work if $SERVICEDESC$ also has spaces, which it legally can
> have.
Good point.
> Put single quotes around the macros (outside the dollar signs). This will
> fail if any of the parameters contains single quotes as well, but will
> work otherwise, unless your shell is broken.
There is bound to be a plugin which, in at least some circumstances, has
a single quote in the output, since the single quote serves as both a
quotation mark and an apostrophe.
--
Paul Allen
Softflare Support
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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