Command line format for external notification.
Andreas Ericsson
ae at op5.se
Wed Jun 29 14:39:31 CEST 2005
Paul L. Allen wrote:
> 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.
Not that I've noticed, although I haven't browsed all the translation
files. Single and double quotes are intentionally left out from plugin
output for this precise reason. The only exception is perfdata which
isn't usually sent along with notifications.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
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