Page 1 of 1

Windows service monitoring with Nagios XI

Posted: Wed Mar 04, 2020 1:34 pm
by rferebee
Good morning,

I have a question regarding monitoring Windows services with XI.

Currently we are monitoring multiple SQL Server services and I would like to configure some of the checks to only alert as Critical when the service is Disabled. A Started or Stopped state would be OK.

Here's the check I would like to update:

Code: Select all

/usr/local/nagios/libexec/check_nt -H 10.228.x.x -s "" -p 1248 -v SERVICESTATE -l MSSQL\$SAGTSTSQL01 -d SHOWALL
MSSQL$SAGTSTSQL01: Stopped
In this scenario, Stopped is OK and we don't want it to show a Critical status.

Could you tell me if and how I could do that?

Thank you!

Re: Windows service monitoring with Nagios XI

Posted: Wed Mar 04, 2020 4:18 pm
by scottwilkerson
I don't believe there is any way builtin to any of the Nagios agents to determine the "Startup Type" (Disabled, Automatic, Manual) of a service, just the Status.

In order to do this you would need to write an addon plugin that could somehow pull this information and then you could add that plugin to an agent.

Re: Windows service monitoring with Nagios XI

Posted: Thu Mar 05, 2020 11:26 am
by rferebee
Ok, thanks for your reply. You can lock this thread.

Re: Windows service monitoring with Nagios XI

Posted: Thu Mar 05, 2020 11:29 am
by scottwilkerson
rferebee wrote:Ok, thanks for your reply. You can lock this thread.
Great!

Locking