I am trying to monitor a MSSQL service and the service name has a special character $ in it. I am using WMI plus with checkservice for this. When testing the command with core config manager, it seems to work. But when I check the dashboard it says 0 services found.
Here's the test command (modified service name, but kept the $ character) output from XI CCM.
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.1.15 -u 'user' -p 'password' -m checkservice -a 'MSSQL\$INSTANCE'
OUTPUT: OK - Found 1 Services(s), 1 OK and 0 with problems (0 excluded). 'SQL Server (INSTANCE)' (MSSQL$INSTANCE) is Running.|'Total Service Count'=1; 'Service Count OK State'=1; 'Service Count Problem State'=0; 'Excluded Service Count'=0;
Noticed that it put the "\" character in the command even when I used the arguement: -a 'MSSQL$INSTANCE'. This is fine but once I apply configuration and check the host, I am seeing the following status message
Code: Select all
OK - Found 0 Services(s), 0 OK and 0 with problems (0 excluded).
I've had ran into similar problem with Core, but I was able to get it to recognize the $ sign. I am not sure what's required in XI in order for this to check the SQL service properly?
Thanks in advance.