Page 1 of 1

Monitoring windows services

Posted: Tue Apr 23, 2019 9:49 am
by wjoyner
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

Re: Monitoring windows services

Posted: Tue Apr 23, 2019 11:12 am
by lmiltchev
Try the solution, posted in our KB article on the topic here:

https://support.nagios.com/kb/article/n ... d-168.html

Re: Monitoring windows services

Posted: Tue Apr 23, 2019 11:39 am
by wjoyner
Thank you, that works perfectly!

Re: Monitoring windows services

Posted: Tue Apr 23, 2019 1:02 pm
by lmiltchev
I am glad I could help! :)