dollar sign in check_command

Marc Powell marc at ena.com
Wed Apr 19 22:40:48 CEST 2006



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Brian Gibson
> Sent: Wednesday, April 19, 2006 3:28 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] dollar sign in check_command
> 
> I have a service defined (below) to use the NSClient tool to check if
a
> service is running on a Windows 2000 system. The service on the Win2k
> box is an instance of SQL server for a particular application and the
> service has a "$" in its name, that is just how SQL 2000 distinguishes
> between NT services for different instances. Nagios is complaining
about
> the "$". I have tried enclosing the service name in double quotes and
I
> have tried escaping the dollar sign with a backtick and also with
> another dollar sign but have had no luck. Also, I tried creating its
own
> entry in the checkcommands.cfg file so I wouldn't have to pass the NT
> service name as an argument but that didn't help either.
> 
> Any suggestions?

check_command                   check_nt_service!SQLAgent\$SPSQL

--
Marc


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
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