Issue with service check
Posted: Fri Apr 11, 2014 3:36 pm
I'm having an issue getting a check to work properly. The service we are trying to monitor is MSSQL$SCANMAIL. Note the '$' that is the cause of all my headaches. When I add this service check to Nagios using the windows server wizard, naturally it doesn't work, spitting out this error: "MSSQL: Not found". So it doesn't like the dollar sign, ok I kinda figured it wouldn't. So I've tried a couple of things to fix this, and I can get it to work from the CLI, but not in the web UI. CLI looks like this:
Web GUI still gives me the same error. So I click on the service and check the configure tab and this is what I see there:
Appears to be about the same as the CLI command, but doesn't work. What do?
Code: Select all
[root@lisl-ngos-01-pv etc]# /usr/local/nagios/libexec/check_nt -t 60 -H $HOSTNAME$ -s "" -p 12489 -v SERVICESTATE -l MSSQL\$SCANMAIL -d SHOWALL
MSSQL$SCANMAIL: Started
Code: Select all
check_xi_service_nsclient!!SERVICESTATE!-l MSSQL\$SCANMAIL -d SHOWALL!!!!!