It seems like I’m unable to monitor sql 2000 db instances that contain a dollar sign in their name.
I’ve installed nsclient++ (or better known as nscp thesedays)
My service def looks somewhat like this:
define service{
use windows-service ; Name of service template to use
host_name hermes.ism
service_description Service: MSSQL$SQL2
check_command check_nt_win_srv!MSSQL$SQL2
}
Alright… so i know it fails right here: check_nt_win_srv!MSSQL$SQL2
I’ve tried the following combo’s:
check_nt_win_srv!'MSSQL$SQL2’
check_nt_win_srv!"MSSQL$SQL2"
check_nt_win_srv!'MSSQL$$SQL2’
check_nt_win_srv!MSSQL$$SQL2
I have the same problem. The curious of this problem is that if I check the service state throught monarch or command line it works perfectly, but nagios put a $ char at the end of the name of the service and nsclient can