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
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:jkwade at futurefrontiers.com]
Sent: Thursday, November 30, 2006 1:04 PM
To: hobbit at hswn.dk
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
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
participants (3)
-
greg.hubbard@eds.com
-
jkwade@futurefrontiers.com
-
tomg@mcclatchyinteractive.com