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%.
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 ... )
- however, your "CPU/RAM/Paging" info can all be gathered from the `vmstat' output ;
- give it a try, like :
- 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"
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)
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)
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)
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)
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)
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)
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)
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)