Command line format for external notification.

krimo aait at free.fr
Wed Jun 29 15:06:12 CEST 2005


Andreas Ericsson a écrit :

> 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.
>
Thank you Andreas, I get it work!


-------------------------------------------------------
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_idt77&alloc_id492&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