Escape \ in nagios config files?
Janet Sullivan
jsullivan at mndigital.com
Mon Apr 6 23:02:09 CEST 2009
Of course, right after I sent that, I found a solution. It seems I can
use 3 \s to escape a \. My path in the service definition becomes:
\\\\\\\\localhost\\\\_definst_\\\\mp3\\\\mn_mp3_08_07\\\\streams
...and it works.
Is there a list of all the ways to escape special characters in Nagios?
The only reason I came up with the three \ escape sequence was because I
noticed that my \\\\localhost was being seen as \localhost in the error
message. I haven't found any mention of that sequence on google. :-/
-----Original Message-----
From: Janet Sullivan
Sent: Monday, April 06, 2009 1:56 PM
To: 'nagios-users at lists.sourceforge.net'
Subject: Escape \ in nagios config files?
I want to check the disk space of a UNC path -
\\localhost\_definst_\mp3\mn_mp3_08_07\streams
>From the command line, I can check it fine (using check_nrpe2) if I
escape each \ like this:
\\\\localhost\\_definst_\\mp3\\mn_mp3_08_07\\streams
But when I try to use configure Nagios to check it, it strips out all
the \ characters. I've tried single quotes, double quotes, and escaping
each \ - no luck. How can I tell Nagios about this path in a service
definition without it stripping out the special characters? Is there an
escape method I'm missing?
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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