Page 1 of 1

how to monitor netstat, exceeding a # of ESTABLISHED conns?

Posted: Wed Dec 19, 2018 10:31 am
by gornm565
Hi
We had a runaway python.exe process on a critical Windows server that consumed too many resources and caused jobs to fail on it. When I ran "netstat -ano", I saw that there was a single process that had a ton of "ESTABLISHED" connections. The total output of "netstat -ano" just kept on scrolling, so it must have been hundreds or thousands. Once I killed the process, everything went back to normal. How can I get Nagios to monitor for this? Is there any kind of native check out there that I can use to warn me if there are more than a certain number of total "ESTABLISHED" connections or if a single process exceeds more than a specified number of "ESTABLISHED" connections?

What's the best way of going about it?

Thanks a lot.

Re: how to monitor netstat, exceeding a # of ESTABLISHED con

Posted: Wed Dec 19, 2018 5:20 pm
by npolovenko
@gornm565, Please take a look at this plugin(you will need to install the nsclient in order to get it to work).
https://outsideit.net/monitoring-window ... nnections/
Scroll down to the "Nagios" section.
Let me know if you think this could work for you.