Go Back   The UNIX and Linux Forums > Operating Systems > AIX


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-28-2012
Registered User
 
Join Date: Aug 2007
Location: Australia
Posts: 128
Thanks: 1
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 02-29-2012
gito's Avatar
Registered User
 
Join Date: Nov 2011
Location: Poland, Wroclaw
Posts: 106
Thanks: 0
Thanked 2 Times in 2 Posts
You are not looking a script but a monitoring tool
paid ones: IBM ITM6, Zenworks .

Free ones Zabbix, Ganglia
Sponsored Links
    #3  
Old 03-05-2012
botao's Avatar
Registered User
 
Join Date: Mar 2006
Location: brazil
Posts: 85
Thanks: 0
Thanked 3 Times in 3 Posts
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 ... )

- 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"
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What to monitor for memory usage? karlochacon UNIX for Dummies Questions & Answers 2 07-14-2011 05:34 AM
Monitor memory zhshqzyc Linux 2 05-30-2011 12:45 PM
How often should I monitor the CPU and memory usage ? qiulang UNIX for Advanced & Expert Users 5 08-21-2009 10:47 PM
Monitor Memory of a process archana485 UNIX for Dummies Questions & Answers 3 07-18-2009 01:57 AM
monitor memory usuage rockcapri HP-UX 1 07-28-2008 04:48 PM



All times are GMT -4. The time now is 09:44 PM.