BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: {bb} Tracking Runaway Processes on an HP-UX 11.11 System with BB



There's good examples of how to set up bbext scripts to run on each of your clients, but the jist of it is that you get your script to work, put it in the $BBHOME/ext directory on each client machine, add the script name to the bb-exttab on the clients, then restart the clients. 
 
The following snippet should get you started on the 'guts' of your script to determine if your processes are out of control
 
top -d 1 -h -u -f /tmp/top.tmp
awk '$13~/BAD_PROCESS_NAME/ {print $12}' /tmp/top.tmp
 
this will print out the percentage of cpu time used by a process named BAD_PROCESS_NAME.
 
My HP/UX skills are kind of rusty, but if you have any other questions, ask away.
-----Original Message-----
From: Vickery, Jeffrey [mailto:jvickery@jjc.edu]
Sent: Thursday, August 26, 2004 7:48 PM
To: bb@bb4.com
Subject: {bb} Tracking Runaway Processes on an HP-UX 11.11 System with BB

Good evening,

I've been trying to find a way to trace runaway system processes on an HP-UX 11.11 host for quite awhile, and the nearest I could find on the archives was a script someone had written back in '99 that wouldn't quite work right (even with some tweaking)...mainly due to problems with the ps command syntax on whatever OS the script was built to run on.  For reference: http://support.bb4.com/archive/199910/msg00085.html

 

Essentially, I have two processes on two separate HP-UX boxes that seem to like to start chewing up a ton of CPU time.  Generally, I use 'top' to check if this condition occurs, and when it does, they will show at the very top of the list - usually with an extremely high TIME, %WCPU and %CPU value.  I want to be able to determine if one of these processes exists, either by checking the value of the TIME and sending RED to BB if it's exceeded a certain length, or even check %CPU and send RED if it's over a set CPU percentage.

 

Of course, I haven't dealt with the script extensions within BB very much, so I definitely will need some help trying to make this work with my existing BB installation on each host.  Unfortunately, the two hosts are reporting to a Windows XP box that serves as the BBPAGER/BBNET/BBDISPLAY host.

 

Any help you can provide will surely go a long way.  Thanks in advance.

 

Regards,

Jeff Vickery

 

Jeffrey M. Vickery

Systems Engineer

Joliet Junior College

1215 Houbolt Road

Joliet, IL 60431-8938

 

E-mail: jvickery@jjc.edu

Phone: (815) 280-2249

Cell: (815) 405-4492

Fax: (815) 280-2668

 


Home | Main Index | Thread Index