Xymon Mailing List Archive search

Number of Open Connections per Process

2 messages in this thread

list James Wade · Tue, 28 Nov 2006 14:17:12 -0600 ·
Is there a way to track the number of open connections to a process?

 
For example, the default ulimit is normally 1024.

Is there a way to track if a particular process has over 1000 open
connections

with Hobbit?

 
I can do a listing with lsof as an example.

 
Thanks.James
list Buchan Milne · Wed, 29 Nov 2006 11:54:37 +0200 ·
quoted from James Wade
On Tuesday 28 November 2006 22:17, James Wade wrote:
Is there a way to track the number of open connections to a process?
Well, not to a process, but to a port (or regex matching the ports). As long as the client is reporting the ports data, this is quite trivial.
quoted from James Wade
For example, the default ulimit is normally 1024.

Is there a way to track if a particular process has over 1000 open
connections

with Hobbit?


I can do a listing with lsof as an example.

If the application listens on specific ports, then the netstat data (which the 4.2.0 clients report by default) can be checked (and graphed if you so desire) by rules in the hobbit-clients.cfg. See the man page for hobbit-clients.cfg.


Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist - Monitoring/Authentication Team Leader
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)