how to escape special characters checking a windows service
Jan Kuhn
jkuhn at siumed.edu
Mon May 5 22:00:49 CEST 2008
This works when running from the command line:
/usr/lib/nagios/plugins/check_nt -H xxx.xxx.xxx.xxx -p 1248 -v
SERVICESTATE -l 'mssql$waspdb'
All services are running
But this doesn't in the servers.cfg It adds the second $.
check_command "/usr/lib/nagios/plugins/check_nt -H
xxx.xxx.xxx.xxx -p 1248 -v SERVICESTATE -l 'mssql$waspdb'"
It adds the second $.
mssql$waspdb$: Unknown
I've got other services working correctly with embedded spaces. Special
characters are causing trouble. I've tried escaping with \, all sort of
quote combinations.
Any ideas?
thanks, jan
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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