Operating System - HP-UX
1758422 Members
2531 Online
108870 Solutions
New Discussion юеВ

URGENT: monitoring for high cpu process and sending system calls by email

 
Craig A. Sharp
Super Advisor

URGENT: monitoring for high cpu process and sending system calls by email

We are constantly having issues with user processes hitting 100% cpu. We know why but I am looking for a way (script) to monitor for these processes that use high cpu and have the script email me the PID, Username and the system calls that the process is using with the corresponding counts. The processes in question are slamming read, write and gettimeofday calls.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: URGENT: monitoring for high cpu process and sending system calls by email

Shalom,

As a control solution, I would suggest HP-UX PRM

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Craig A. Sharp
Super Advisor

Re: URGENT: monitoring for high cpu process and sending system calls by email

Cant due to the type of processing....we did consider this...thanks for the response..
Patrice Le Guyader
Respected Contributor

Re: URGENT: monitoring for high cpu process and sending system calls by email

Hi Craig,

You can use Glance adviser function. There are some exemples on the server in /opt/perf/examples/ (I think, I don't have a server to verify). Some of these email root when some parameters are exceded.

Hope this helps.
Kenavo.
Pat

(For your other thread: still waiting what you want to know exactly on rrdtool)
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Jason Ray
Frequent Advisor

Re: URGENT: monitoring for high cpu process and sending system calls by email

We use the BMC product Patrol to monitor our system resources. It allows you to send email alerts when the CPU utilization has reached an "alarm" level. This isn't exactly a quick or cheap fix though.

You could schedule a script to run the "top -d 1" command and parse through the output to determine if the CPU is pegged at 100% and also which user, PID, and command they are running. Then send an email with that information.