Monitoring windows services
Posted: Tue Apr 23, 2019 9:49 am
I am running into a problem with monitoring sql services where if its a named instance it changes the service name from MSSQLSERVER
to MSSQL$Instancename.
When you run the check it states the service is not found.
[nagios@Nagiosserver]$ /usr/local/nagios/libexec/check_nt -H servername -s "xxxxxx" -p 12489 -v SERVICESTATE -l MSSQL$Instancename -d SHOWALL
MSSQL: Not found
These servers are running the NSClient
to MSSQL$Instancename.
When you run the check it states the service is not found.
[nagios@Nagiosserver]$ /usr/local/nagios/libexec/check_nt -H servername -s "xxxxxx" -p 12489 -v SERVICESTATE -l MSSQL$Instancename -d SHOWALL
MSSQL: Not found
These servers are running the NSClient