Script to monitor CPU , Memory


 
Thread Tools Search this Thread
Operating Systems AIX Script to monitor CPU , Memory
# 1  
Old 02-28-2012
Script to monitor CPU , Memory

Hello.
I am using AIX 6 and did lot of searches on google for this script and found so many results. Just thought to ask you being the real good place for centralised answer:
a) Could you tell me the aix script, which may tell me If the CPU load is above e.g. 60% ?
b) Could you tell me the AIX Script, which may tell me If the Real Memory is above e.g. 60% and Paging Memory is above e.g. 2%.

Appreciate your direction on it.

Thank you
# 2  
Old 02-29-2012
You are not looking a script but a monitoring tool
paid ones: IBM ITM6, Zenworks .

Free ones Zabbix, Ganglia
# 3  
Old 03-05-2012
Tools the AIX script is a bit tricky, but...

AFAIK, AIX does not come with a ready-to-use script that triggers an alarm action when CPU or RAM consumption is above some threshold ;

( althought the `errpt' output may show some alerts if your 'dump device' is too small - but that's another story ... Smilie )

- however, your "CPU/RAM/Paging" info can all be gathered from the `vmstat' output ;

- give it a try, like :

Code:
$ vmstat 1 10

- this will give you ten samples of status, delayed one second each ;

- my suggestion is fairly simple :

1) with just a few `ksh' or `awk' lines in a script, you can check and alarm your needed values from the `vmstat' output ;
2) run the "vmstat + script" say, once every 5 minutes or so - with `crontab' - of course ;

- then all you have to worry is the way to actually 'inform' the events ( console , email , ... ) ;

ok ?

HTH

good luck, and success !
_________________________________________
alexandre botao ( progsmith, polymath, ideator )
"comets never dodge"
Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to monitor process with high CPU

Hi, Linux redhat 5.5 I need to write a kshell script that shows all the process that consume 100% CPU (or more. strange but there are time that top shows higger value that 100) and they are active more than 5 minute. The top command shows all the relevat information: The PID of the cpu ,... (0 Replies)
Discussion started by: yoavbe
0 Replies

2. UNIX for Advanced & Expert Users

Shell script to monitor cpu and VMstat, iostat

Hi , I am new to scripting. please help me out how to write a script to monitor cpu , vmstat, iostat in Redhat linux. we are doing the load test. Thanks in advance !!!! (1 Reply)
Discussion started by: saanvi
1 Replies

3. Shell Programming and Scripting

Need help on shell script to monitor each user cpu use on a cluster over time

Hi, I am relatively new to the cluster administration and shell scripting. I need help on a shell script which can help me determine how many cpu's over time, any particular ( or all registered users on a cluster ) are using. To generate data say over a period of week and list of users and their... (6 Replies)
Discussion started by: anuj06
6 Replies

4. Shell Programming and Scripting

Looking for shell script to monitor CPU utilization and send mail once exceed 75%

Dear Group, I'm look for shell script to Monitor CPU usage and send mail once it exceed 75% I'm running Suse10.4. (3 Replies)
Discussion started by: clfever
3 Replies

5. Shell Programming and Scripting

Script to note CPU and Memory Utilization

Hi, I need to write a script which would take the CPU and Memory usage at an interval of 10 mins. I tried using sar, but that does not solve my purpose. Its not only one system that i have, but approximately 10 server from where i need to achive this date. Can anyone share a script or idea... (1 Reply)
Discussion started by: Siddheshk
1 Replies

6. UNIX for Advanced & Expert Users

How often should I monitor the CPU and memory usage ?

Hi all, When you monitor the CPU and memory usage, how often do you do it ? Do it too often or too rarely will both cause the problem. So does anyone have hand-on experience ? And for my case, the requirement says that when CPU usage is above X% or memory usage is above Y%, I should reject... (5 Replies)
Discussion started by: qiulang
5 Replies

7. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

8. 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

9. UNIX for Dummies Questions & Answers

Script for CPU and Memory Utilisation

Hi, I want to check the CPU and Memory Utilisation in the whole machine (not for a single process). Can someone send me a ready made script which captures all information in a log every 5min?? Thanks, Ajith (0 Replies)
Discussion started by: Ajith Praveen
0 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question