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

Re: How to monitor host's connections?!

Post by xpertech »

slansing wrote: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?
Yes, that's the logic, if connections over a number, then warning.
We had tried check_connections using check_by_SSH but without success (actually there's an authentication issue when working with Windows Server).
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: How to monitor host's connections?!

Post by sreinhardt »

Windows servers do not have SSH. This is not an option when connecting to any windows machine. You will need to use nsclient with check_nt or nrpe for active checks, or nrds\nsca if you wish to do passive checking. However, that plugin provided likely should do what you are looking for.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor host's connections?!

Post by xpertech »

sreinhardt wrote:Windows servers do not have SSH. This is not an option when connecting to any windows machine. You will need to use nsclient with check_nt or nrpe for active checks, or nrds\nsca if you wish to do passive checking. However, that plugin provided likely should do what you are looking for.
We just setup NSClient++ on Windows and test from NagiosXI, (./check_nrpe -H x.x.x.x and got "seem to be doing fine"),
what's the next step on NagiosXI using check_connections plugin to monitor Windows Server's established connections? and warn if connections over a number?
Could you describe more details, thanks a lot!
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 »

Next, you must add an external command handler to the nsclient's nsc.ini file as the External Scripts section shows here:

http://www.nsclient.org/nscp/wiki/Check ... figuration

What version of NSclient++ did you install?
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor host's connections?!

Post by xpertech »

Now it works, thanks!!
Locked