help with nsclient and clustered services

Tong Young Tong at keen.com
Sat Jan 11 02:56:57 CET 2003


Nevermind.  Typo on my part.

But in case anyone ever wants to query a clustered service you should
precede the $ with a \.  

-----Original Message-----
From: Tong Young [mailto:Tong at keen.com] 
Sent: Friday, January 10, 2003 5:29 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] help with nsclient and clustered services

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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


-------------------------------------------------------
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