How to monitor host's connections?!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

How to monitor host's connections?!

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to monitor host's connections?!

Post 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."
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor host's connections?!

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to monitor host's connections?!

Post 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....
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor host's connections?!

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to monitor host's connections?!

Post 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
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor host's connections?!

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to monitor host's connections?!

Post by scottwilkerson »

You are likely looking for the .wsf version of this plugin
http://exchange.nagios.org/directory/Pl ... ns/details
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor host's connections?!

Post 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!
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to monitor host's connections?!

Post 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?
Locked