help with nsclient and clustered services
Tong Young
Tong at keen.com
Sat Jan 11 02:29:11 CET 2003
I have been trying to pass the following argument in Nagios using
NSClient. It works fine at the command line, but does not work within
Nagios.
Check_nt -H sqlserver01 -p 1248 -v SERVICESTATE -l MSSQL\$SQLSERVER01
The registry shows this service as MSSQL$SQLSERVER01
I had to put the "\" so the $ would be recognized. I am not sure how to
code this command within the services.cfg file so that the $ sign will
be preserved.
I have tried using quotations but it still failed. Thanks for any help.
The checkcommands entry for this is:
# 'check_nt_service' command definition
define command{
command_name check_nt_service
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
SERVICESTATE -d SHOWALL -l $ARG1$
}
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list