Xymon Mailing List Archive search

lsof monitor?

6 messages in this thread

list James Wade · Thu, 30 Nov 2006 13:04:05 -0600 ·
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
list Greg L Hubbard · Thu, 30 Nov 2006 13:09:24 -0600 ·
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
quoted from James Wade


	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
list Tom Georgoulias · Thu, 30 Nov 2006 14:19:25 -0500 ·
quoted from James Wade
James Wade wrote:
Has anyone written or will Hobbit monitor

the number of open connections to an application?
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 haven't seen any mention of this on the mailing list, so you're likely the first to ask for it.  You could probably write one yourself without a lot of hassle, using a small shell script and the instructions in the custom graph setup howto under the Help menu.  Lots of us have written extension scripts for our own networks, so post questions as you write the script and someone will be able to give pointers.

Tom
-- 
Tom Georgoulias
Systems Engineer
McClatchy Interactive
list Galen Johnson · Thu, 30 Nov 2006 19:12:55 -0500 ·
quoted from Tom Georgoulias
Tom Georgoulias wrote:
James Wade wrote:
Has anyone written or will Hobbit monitor

the number of open connections to an application?
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 haven't seen any mention of this on the mailing list, so you're likely the first to ask for it.  You could probably write one yourself without a lot of hassle, using a small shell script and the instructions in the custom graph setup howto under the Help menu.  Lots of us have written extension scripts for our own networks, so post questions as you write the script and someone will be able to give pointers.

Tom
I don't think you need this...hobbit already has a port monitor built in (with graphing).  I use it to see the number of connections to an application we have and to ensure that the services are up (along with the process test I get the added benefit that it's not just running but the port is in use as well...)

=G=
list Buchan Milne · Fri, 1 Dec 2006 13:43:23 +0200 ·
quoted from James Wade
On Thursday 30 November 2006 21:04, James Wade wrote:
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.
You got an answer from me the next day

http://www.hswn.dk/hobbiton/2006/11/msg00483.html

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist - Monitoring/Authentication Team Leader
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)
list Tom Georgoulias · Fri, 01 Dec 2006 08:33:33 -0500 ·
quoted from Galen Johnson
Galen Johnson wrote:
I don't think you need this...hobbit already has a port monitor built in (with graphing).  I use it to see the number of connections to an application we have and to ensure that the services are up (along with the process test I get the added benefit that it's not just running but the port is in use as well...)
Yes, that's right.  Good point.  Disregard my previous suggestion.

I have a ton of systems that still use the BB client, and its probably time I start getting them switched over to the hobbit client.
-- 
Tom Georgoulias
Systems Engineer
McClatchy Interactive