dollar sign in check_command
Brian Gibson
bgibson at wheatonma.edu
Wed Apr 19 22:27:34 CEST 2006
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?
define service{
use generic-service
host_name server_name
service_description SVC-SQL-AGENT
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 15
retry_check_interval 1
contact_groups nt-admins
notification_options w,u,c,r
notification_interval 960
check_command check_nt_service!SQLAgent$SPSQL
}
-------------------------------------------------------
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