Page 1 of 1

How to monitor the hung state service

Posted: Tue Feb 27, 2018 2:11 am
by Gonela
HI Team,

We want to monitor the service which are in hung state. Is there any possible to monitor from nagiosxi.

Re: How to monitor the hung state service

Posted: Tue Feb 27, 2018 9:39 am
by scottwilkerson
Gonela wrote:HI Team,

We want to monitor the service which are in hung state. Is there any possible to monitor from nagiosxi.
"hung state" is somewhat a vague term. Nagios can monitor if a service is running or not, but "hung" is subjective and means different thing to different people.

If is is something definitive that can be determined by executing a command on the system, then Nagios can usually monitor it.

Re: How to monitor the hung state service

Posted: Thu Mar 01, 2018 8:26 am
by Gonela
HI Team,

We want to monitor the when the service is in mode hang mode that is the service might show as running but its not responding like we can't stop the service or we can't restart the service. This will happen sometimes on windows these type of hang state we want to monitor. is there any possibility please can any body help on this.

Re: How to monitor the hung state service

Posted: Thu Mar 01, 2018 10:43 am
by scottwilkerson
Gonela wrote:HI Team,

We want to monitor the when the service is in mode hang mode that is the service might show as running but its not responding like we can't stop the service or we can't restart the service. This will happen sometimes on windows these type of hang state we want to monitor. is there any possibility please can any body help on this.
I understand what you are saying, but Nagios can only monitor thing it can detect by running commands from the command line or poll on the system.

You would need to create a plugin to perform these items, and output the results. Then Nagios can run that plugin and use the results to determine the state of the "hung" service.

I would suggest a pre-written plugin, but I don't think anyone has been able to decipher this scenario and shared a plugin yet.