Wednesday, June 27, 2007

SysStat Installation & configuration

Check whether the rpm is installed.
#rpm -qa grep -i sysstat

If sysstat is not installed install it
#rpm -ivh sysstat-5.0.5-5.rhel3.i386.rpm

Modify /etc/cron.d/systat :
# run system activity accounting tool every 1 minute i.e collect 2 sample/min with 30 sec interval.
*/1 * * * * root /usr/lib/sa/sa1 30 2

Note : Comment the existing entry which collects data every 10 min ( 1 sample/10 min) # */10 * * * * root /usr/lib/sa/sa1 1 1

Restart crond service.# service crond restart

To get CPU utilization information :
# sar -f /var/log/sa/sadd -u more
where dd represents day of the month.

To get memory utilization output :# sar -f /var/log/sa/sadd -r more
Where dd represents day of the month.

No comments: