alert for exceeding a set # of ESTABLISHED TCP connections

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gornm565
Posts: 72
Joined: Tue Nov 15, 2016 6:11 pm

alert for exceeding a set # of ESTABLISHED TCP connections

Post by gornm565 »

I'd like to set up an alert when the number of ESTABLISHED TCP connections on a Windows box exceeds a certain number, let's say 150. These are the connections that are listed when I run "netstat -a" on Windows. Is there a check that I can easily utilize to monitor this?
Thank you.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: alert for exceeding a set # of ESTABLISHED TCP connectio

Post by cdienger »

NCPA can do this - https://www.nagios.org/ncpa/

./check_ncpa.py -H <ncpa_agent> -t '<your token>' -m 'windowscounters/TCPv4/Connections Esablished' -w 100 -c150
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
gornm565
Posts: 72
Joined: Tue Nov 15, 2016 6:11 pm

Re: alert for exceeding a set # of ESTABLISHED TCP connectio

Post by gornm565 »

I have a check_xi_ncpa in Service management when I create a new service but not check_ncpa. Is that the same thing? Would I need to enable anything in the nsclient to make this work?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: alert for exceeding a set # of ESTABLISHED TCP connectio

Post by cdienger »

check_xi_ncpa is just a display name and will call the check_ncpa.py plugin on the backend. The command provided can be run from the /usr/local/nagios/libexec/ directory as test.

nsclient is completely separate(and third party) agent from NCPA. You will need to install NCPA to on the Windows machine to use this check.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked