On Mon, 24 Apr 2006 15:03:40 -0400, "Sharp, Craig" <[EMAIL PROTECTED]> said: > Hi all, > > I need to create a script that will monitor the proc table and watch for > processes that exceed 5 minutes runtime and 90% cpu. The script then > needs > to alter by email. The email part I can do, but the rest, I have no idea > where to start. > Craig,
Ordinarily I'd do it with SNMP and an SNMP agent, but then that's what I do for a living :) If you want to write a perl app that directly reads from the proc table, have a look at http://search.cpan.org/~durist/Proc-ProcessTable-0.40/ . You don't mention the platform you're using, but the support for this module is pretty broad. Hope this helps, Barry _______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs