Backslashes in parameters

Support requests, bug reports, questions etc.
Locked
pambuhl
Backslashes in parameters

Post by pambuhl » Thu Apr 23, 2009 14:47

Hello,
I'm using Nagios to check Windows WMI counters using check_nt with NSClient. When I create a check command that runs (for example)

check_nt -H $HOSTADDRESS$ -p 1234 -v COUNTER -l '\Memory\Pages/s'

It runs fine the first time, but if I edit the command again NConf adds a new backslash in front of all ' and \ causing the command to fail.

Result :
check_nt -H $HOSTADDRESS$ -p 1234 -v COUNTER -l \'\\Memory\\Pages/s\'


And so on if you re-edit...

Patrick

User avatar
agargiulo
NConf developer
NConf developer
Posts:725
Joined:Fri Mar 06, 2009 17:50
Location:Zurich, Switzerland
Contact:

Re: Backslashes in parameters

Post by agargiulo » Thu Apr 23, 2009 16:02

Please refer to the following thread:
viewtopic.php?f=3&t=7

Locked