Page 1 of 2

How to monitor host's connections?!

Posted: Tue Aug 20, 2013 5:04 am
by xpertech
There is an customized application server which will accept clients connect to this server, but sometimes if there were too many connections will caused server no reply. our customer want to know if NagiosXI has a way to warn when connections over specific numbers?

Re: How to monitor host's connections?!

Posted: Tue Aug 20, 2013 9:17 am
by slansing
It depends of course, you can always create a custom script, but we will need to know more information in order to see if one has already been created. What type of connections are these? And what are they connecting to? i.e "Mysql database, Oracle database, webportal, Windows 2012 server."

Re: How to monitor host's connections?!

Posted: Tue Aug 20, 2013 11:26 pm
by xpertech
slansing wrote:It depends of course, you can always create a custom script, but we will need to know more information in order to see if one has already been created. What type of connections are these? And what are they connecting to? i.e "Mysql database, Oracle database, webportal, Windows 2012 server."

If make it simple, just monitor total established connections of a host, and warn when total connections come to a specific numbers?

Re: How to monitor host's connections?!

Posted: Wed Aug 21, 2013 9:19 am
by slansing
That is not enough information, we need to know what type of device you are trying to monitor connections on. If it helps I'll give a few examples of what you could be trying to monitor connections on:

Webserver, Database, Webportal, AP, etc....

Re: How to monitor host's connections?!

Posted: Thu Aug 22, 2013 2:28 am
by xpertech
slansing wrote:That is not enough information, we need to know what type of device you are trying to monitor connections on. If it helps I'll give a few examples of what you could be trying to monitor connections on:

Webserver, Database, Webportal, AP, etc....
Can't we just monitor total connections which like "netstat" command, no matter what type of services? because our customer want to know when the connections come to a specific number?

Re: How to monitor host's connections?!

Posted: Thu Aug 22, 2013 9:34 am
by slansing
Sure you can, on a device that uses netstat, but with devices that don't you will need to find a way to see connected users via something else. That is what I am getting at. Nagios runs checks, these checks run plugins which expect to check against a device they recognize, then they return the status information. This is why we need to know what type of device you are checking connections on. By your last comment it sounds like a Linux system, but that is not clear. After all, you can't netstat a MSSQL database, for instance :).

If you are only interested in netstat for a Linux server based check, here are some plugins:

http://exchange.nagios.org/index.php?op ... rd=netstat

Re: How to monitor host's connections?!

Posted: Sat Aug 24, 2013 3:11 am
by xpertech
slansing wrote:Sure you can, on a device that uses netstat, but with devices that don't you will need to find a way to see connected users via something else. That is what I am getting at. Nagios runs checks, these checks run plugins which expect to check against a device they recognize, then they return the status information. This is why we need to know what type of device you are checking connections on. By your last comment it sounds like a Linux system, but that is not clear. After all, you can't netstat a MSSQL database, for instance :).

If you are only interested in netstat for a Linux server based check, here are some plugins:

http://exchange.nagios.org/index.php?op ... rd=netstat
If it's windows based server, still can check?

Re: How to monitor host's connections?!

Posted: Sun Aug 25, 2013 4:10 pm
by scottwilkerson
You are likely looking for the .wsf version of this plugin
http://exchange.nagios.org/directory/Pl ... ns/details

Re: How to monitor host's connections?!

Posted: Mon Aug 26, 2013 3:13 am
by xpertech
scottwilkerson wrote:You are likely looking for the .wsf version of this plugin
http://exchange.nagios.org/directory/Pl ... ns/details
It seems a localhost plugin, rather than to remotely monitor a windows server's connections?!

What we're looking for is a solution for remotely monitor windows server's connections(total established connections), need help, thanks!

Re: How to monitor host's connections?!

Posted: Mon Aug 26, 2013 9:19 am
by slansing
It is a local plugin, however it would be called by NRPE through NSClient++ to run the plugin and return the total connections to the XI server. Is that the logic you are looking for?