Xymon Mailing List Archive search

lsof monitor?

list Greg L Hubbard
Thu, 30 Nov 2006 13:09:24 -0600
Message-Id: <user-b64d2a2d5ef0@xymon.invalid>

It is not hard to write such a test -- but consider the system impact of
the test running relentlessly day in and day out.  Whenever I have used
lsof, it has taken a long time to complete.
 
So first, write your script, following the "temperature" example in the
Hobbit doc.  When it works when run by hand, then you can add it to the
client launch configuration.  You might want to "time" the script for a
few runs to make sure that the script is not going to be a problem.  If
it can't run on a 5 minute cycle then you will need to take some steps
to allow Hobbit to run it less often.
 
If you want to graph anything, you will have to work all that out.  The
temperature example is a great guide.
 
GLH


	From: James Wade [mailto:user-659655b2ea05@xymon.invalid] 
	Sent: Thursday, November 30, 2006 1:04 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] lsof monitor?
	
	
	Has anyone written or will Hobbit monitor

	the number of open connections to an application?

	 
	As an example, using lsof...

	 
	Sorry if I'm repeating myself. I asked earlier but didn't

	get an answer. I thought I'd ask again and see if anyone

	knows a way to monitor it across the clients.

	 
	I want to check and alert if an application has to many

	open connections. ie... >1000

	 
	Thanks....James