Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: script to monitor and page...

by McDarren (Abbot)
on Feb 21, 2006 at 04:17 UTC ( [id://531607]=note: print w/replies, xml ) Need Help??


in reply to script to monitor and page...

Which OS are you working on?

For Win32, you probably want to look at Win32::Process::Info. For *nix, then you could try Proc::ProcessTable.

Also, there are plenty of off-the-shelf monitoring packages that will do what you want (and a whole lot more). This site lists a whole stack of them. My personal favourites are Big Brother and Nagios. For Win32 systems monitoring, WhatsUp Gold also seems pretty okay.

Cheers,
Darren :)

Replies are listed 'Best First'.
Re^2: script to monitor and page...
by perlknight (Pilgrim) on Feb 22, 2006 at 01:34 UTC
    Yes. I am aware of BigBrother,Nagios, and Proc::ProcessTable. I was hoping to get ideas on how to keep track if an alert has been sent and if it is sent then don't sent it again. Any idea?
      Well it depends on the solution you choose. It is possible to configure Nagios to do this, see here.

      And I'm pretty sure that Big Brother can also be configured to warn/page only once per alert - but again, check the docs.

      If you were just monitoring a single or a few processes and rolling your own simple monitor using Proc::ProcessTable, then it's just a matter of working out exactly what you want, and then defining a few rules. For example, you may set a flag once an alert goes off and a notification is sent, and then only reset the flag after either the alert goes away, or a certain time has elapsed. Writing a script should be the easy part - it's defining the business rules and getting them right that is the tricky bit :)

      Cheers,
      Darren :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://531607]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-19 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found