Operating System - HP-UX
1819794 Members
3293 Online
109607 Solutions
New Discussion юеВ

Re: Send alert or email if process uses too much CPU

 
Rpger Tavener
Occasional Advisor

Send alert or email if process uses too much CPU

Anyone know a way to have an alert sent to maybe mailx if a process id is consuming lets say 90% of the CPU for more than 2 minutes. I'd like to automate this as much as possible.

Thanks much!
When the only tool you own is a hammer, every problem looks like a nail!
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Send alert or email if process uses too much CPU

Hi:

First, I wouldn't be as concerned with the CPU utilization of a single process as I would with the overall system's performance. If you ran only a single process on a system, and you weren't waiting or doing I/O, then the CPU utilization would approach 100% -- and that in itself would be good!

Rather, I'd decide what value of the one and the five-minute 'uptime' constitutes your high-water mark and, based upon that, alert you. In this way, you are better measuring the competition of tasks for the CPU.

Regards!

...JRF...
Thierry Poels_1
Honored Contributor

Re: Send alert or email if process uses too much CPU

Hi,
Measureware can be configured to send emails when certain criteria are met : high cpu usage, high disk usage, ....

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Bill McNAMARA_1
Honored Contributor

Re: Send alert or email if process uses too much CPU

I think PRM and/or WLM
Process Resourse Manager and
Workload manager do something to this effect,

You can download them from
http://software.hp.com/

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProducts.pl?group_type=search&group_name=prm

Later,
Bill
It works for me (tm)
Doug Grumann
Respected Contributor

Re: Send alert or email if process uses too much CPU