Page 1 of 1

Service Monitoring Issue

Posted: Tue Dec 10, 2019 8:59 am
by Beeker
Hi

We are monitoring an .exe on a VM running Windows 10 Enterprise to alert when this .exe is not running.

On the Windows 10 machine it is running the latest NSClient++ .

There is a scheduled task that kills the .exe and then reloads it every 15 minutes. We are seeing that when the .exe is terminated, Nagios XI reports the .exe as not running (as expected), yet when the .exe restarts, Nagios XI still reports the service as not running, even though it is running on the Windows 10 device.

Can you possibly shed some light as to why Nagios XI reports the .exe as not running the .exe restarts ?

Many thanks in advance

Re: Service Monitoring Issue

Posted: Tue Dec 10, 2019 11:07 am
by mbellerue
That could depend on the service check setup to monitor that .exe. If it's an active check, and Nagios reaches out to get the status every 5 minutes, then at the 15 minute mark the .exe is killed. If Nagios is set to alert immediately (only check 1 time), then Nagios will see that the .exe is down and then alert on it. But then seconds later, the .exe is up and running again, but Nagios isn't going to check again for about 5 minutes.

That's one potential explanation. Can tell me more about the setup of your service check? Is it an active check or a passive check? In thinking about it, this might be a good situation for a passive check. Do you have a custom script for monitoring this .exe?