Receive alerts when server in Hung state

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Receive alerts when server in Hung state

Post by RIDS_I2MP »

Hi Team,

At present we are monitoring a server on the bases of ping, i.e. we receive alerts if Nagios server is unable to ping the host.

But we want to receive alerts, whenever remote hosts goes in hung state. Is it possible?

Kindly suggest how can we achieve it?
Thanks & Regards,
I2MP Team.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Receive alerts when server in Hung state

Post by avandemore »

It depends on how you define "hung". I would describe a host which is locked up and unable to respond to pings as hung or deadlocked.

If you wish to do a more in-depth check, you can use something like check_by_ssh:

http://nagios-plugins.org/doc/man/check_by_ssh.html

Or some type of check which exercises the critical underlying subsystems to confirm everything is working.

There are a lot of plugins here:
http://nagios-plugins.org/doc/man/index.html <- Officially supported.
https://exchange.nagios.org/ <- Mostly provided as-is.
Previous Nagios employee
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Receive alerts when server in Hung state

Post by RIDS_I2MP »

Hi Team,

When the windows server is in hung state user is unable to take RDP to the remote host, The login process doesn’t complete, the screen will be stuck at a message before the desktop loads.

Below is a link for a script check_x224 :

https://exchange.nagios.org/directory/P ... 24/details

Kindly let us know, if we can use this script to monitor the RDP success to the remote host.
Thanks & Regards,
I2MP Team.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Receive alerts when server in Hung state

Post by avandemore »

Yes that looks like a suitable plugin for your needs. While we don't support 3rd party plugins directly, I can give you some generic information on how to install and configure plugins so they are useful.

First see here:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Also here is our Administration manual which has a lot of good information on how to use Nagios XI:

https://assets.nagios.com/downloads/nag ... nistrator/

Let us know if that answered your question.
Previous Nagios employee
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Receive alerts when server in Hung state

Post by RIDS_I2MP »

Hi Team,

Can we use this third party plugin?
Thanks & Regards,
I2MP Team.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Receive alerts when server in Hung state

Post by eloyd »

You can use any plugin you desire. in this case, I don't think you need to if you just want to see if RDP is responding on port 3389. You can just use the check_tcp plugin to see if port 3389 is responding.

But yes, you can use any plugin you want. Nagios simply does not provide support for 3rd party plugins, only the plugins that are shipped with Nagios.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Receive alerts when server in Hung state

Post by RIDS_I2MP »

Hi Team,

We want to monitor the Hung state of a windows server, In this state below is the server behavior:

1. we are able to ping the server
2. we are able to take RDP to the server but after login a message is displayed and it gets stuck

I have tried check_tcp plugin, and we are able to detect a state where nor we are able to ping the host nor RDP.

But the Hung state is something different from this, so can we monitor hung state as well using check_tcp plugin.

If not then kindly suggest some other work around.
Thanks & Regards,
I2MP Team.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Receive alerts when server in Hung state

Post by eloyd »

As @avandemore said, "hung" can mean many things. The best thing to do, in my opinion, would be to install an agent such as NSClient++ or NCPA on the Windows host, and perform active queries to see if the box responds to things like CPU, memory, and disk space checks. If it does, then things are fine. If it does not, then it is likely hung.

However, processes can be hung without the entire server being hung. In which case you want to check the functionality of that service, which means probing the service as if you were using it (make a web call to a web server, make a database query to an SQL server, etc). This is where you may require third party plugins.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Receive alerts when server in Hung state

Post by rkennedy »

@eloyd is correct. To add to this, if there are no plugins suiteable at https://exchange.nagios.org - it may be best to write one in Powershell that can diagnose what you're describing.

I know from experience, that ping will come up BEFORE RDP after a reboot.
Former Nagios Employee
Locked