Re: [Nagios-users] Escape \ in nagios config files?

2009-04-06 Thread Kevin Keane
Actually, this is not just in Nagios; this is standard Unix escaping. And it's not really 3 \. Rather, what is going on is that standard Unix escaping is applied twice - first when parsing the config file, and again when passing the arguments to the plugin. In Unix, normally when you put a \ an

Re: [Nagios-users] Escape \ in nagios config files?

2009-04-06 Thread Marc Powell
On Apr 6, 2009, at 4:02 PM, Janet Sullivan wrote: > 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_mp3mn_mp3_08_07streams > > ...and it works. > > Is th

Re: [Nagios-users] Escape \ in nagios config files?

2009-04-06 Thread Janet Sullivan
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_mp3mn_mp3_08_07streams ...and it works. Is there a list of all the ways to escape special characters in Nagios?

[Nagios-users] Escape \ in nagios config files?

2009-04-06 Thread Janet Sullivan
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