Tuesday 29 May 2012

Sar/SysStat Installation and configuration


Sar/SysStat Installation and configuration
=================================

yum install sysstat

Then check the file /etc/cron.d/sysstat .  It should be as given below :

# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A


Permission of this file should be 644, other wise you will get the following error in cron log.

==============
 (*system*) BAD FILE MODE (/etc/cron.d/sysstat)
==============

Another possible error is,

Cannot open /var/log/sa/sa28: No such file or directory

This file will be automatically created after 10 minutes. For testing this, you can execute the following command, which will save the current details.

root /usr/lib64/sa/sa1 1 1

No comments:

Post a Comment