HPUX monitoring and alerting script per CPU


 
Thread Tools Search this Thread
Operating Systems HP-UX HPUX monitoring and alerting script per CPU
# 1  
Old 03-17-2009
HPUX monitoring and alerting script per CPU

Hi Guys,
Hopefully someone would be able to help me out. Basically I have an HPUX 11.11i system which is backed up by Data Protector 4.5. Every so often the vdba process hangs and chews up 100% of one of the systems CPU resources. As our monitoring tool can only monitor on a per system basis rather than per CPU we are not alerted when this process starts chewing up CPU time on one CPU, because even at 100% its only 25% of the entire systems CPU usage.
Im trying to get my head around how to pull a script together than can grep the %CPU column figure output, and send an email if it hits a certain threshold.
Has anyone done anything similar to this in the past?
Thanks in advance, Tom.
# 2  
Old 03-17-2009
At that point, is it the top CPU consumer?
# 3  
Old 03-26-2009
It is indeed yes....by a long way!!
# 4  
Old 03-26-2009
Does this show your culprit process?
Code:
UNIX95=1 /usr/bin/ps -e -o pcpu,args | /bin/sort -u -r | sed -e 's/\.[0-9][0-9]/&\%/g' |sed -n 2,6p | head -1

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

CPU monitoring query

Hi all, I am a DBA , I want to take the output of topas command result in every 1minute to write on the output file. If I redirected the file it attached with some control M characters. Nmon and sar commands are not working. only topas working in my AIX environment. Please suggest me on this.... (2 Replies)
Discussion started by: kumaravelu2006
2 Replies

2. Infrastructure Monitoring

freeBSD CPU monitoring using nagios

Hi all, I am not being able to monitor CPU of freeBSD machine from my CentOS server. I have used check_aix_cpu but always gives garbage value, seems wrong in scripting. i want to monitor CPU usage of my freeBSD machine from my centOS server. I am able to monitor many services of that machine... (0 Replies)
Discussion started by: gsuwal
0 Replies

3. Infrastructure Monitoring

Monitoring CPU Usage with SNMP

Can someone please tell me how to calculate the CPU usage from what one gets back from snmpwalk? I have searched and dug through the internet and apparently, no one has the answer to this? i can use snmpwalk to pull out relevant information about cpu. but i have no clue what values are to be... (1 Reply)
Discussion started by: SkySmart
1 Replies

4. Shell Programming and Scripting

Grep Alerting - command or script assistance

Hello! I need some help with grep from various logs we use for monitoring transactions. The logs contain the following information (which is consistent in all of the files): 12:28:33.157 EWY D 1 (tcpip.c:282): tcpip.c: Unable to connect to x.x.x.x on port xxxx. (79) Connection refused ... (1 Reply)
Discussion started by: sbchecko
1 Replies

5. Programming

Solaris CPU/memory status monitoring (Shell script or c++)

i'm trying to find a way to monitor the CPU/Memory status of a solaris station using vmstat. I like to write a small script to periodically run vmstat and store the output. Can anyone show me how (preferrably in C++ if possible)? Thanks in advance. (6 Replies)
Discussion started by: shingpui
6 Replies

6. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

7. UNIX for Dummies Questions & Answers

monitoring cpu and memory of the unix box

Hi all, Unix has the TOP and SAR command to monitor machine's performance. Can it be used in a script to alert if the cpu utilization is more than 80 or memory used is more than 90. Is SAR preferable than TOP? Please advise. (3 Replies)
Discussion started by: er_ashu
3 Replies

8. Solaris

monitoring cpu

I have a windows snmp server running prtg. I have a solaris 8 v440R server and only see the network statistics for the server. When I try to add a new service to watch for the CPU, I am not offered the results. There is the default sun.mib installed. SNMPDX is not running but mibiisa is. I... (1 Reply)
Discussion started by: csross
1 Replies

9. UNIX for Advanced & Expert Users

CPU monitoring script

I looking for a very basic, script that monitors the load on the cpu and writes it to a text file. Can anyone help please? (4 Replies)
Discussion started by: alpha_manic
4 Replies

10. UNIX for Advanced & Expert Users

Monitoring CPU usage on AIX 5.3 with SNMP

Hi I would like to monitor CPU usage ( %) , memory utilization and such on an AIX 5.3 with snmp. How would I do that ? :confused: If I do "snmpwalk -c public -v1 hosttomonitor" I get nothing about the CPU. I've done this on Linux ( not much trouble doing it on linux ) but I'm having a hard... (2 Replies)
Discussion started by: art
2 Replies
Login or Register to Ask a Question