SAR or Sysstat

You can follow the below steps to install Sysstat Utilities which includes the “sar” command that is used to display your load average for the day.

1. Login to your server through SSH and login as root or su to the root user.

2. First just create a directory, or use one that you use to download temporary files.

cd /root/download

3. Download the rpm.

wget ftp.ibiblio.org/pub/linux/system/status/sysstat-5.0.2-1.i386.rpm

4. Install the rpm.

rpm -ivh sysstat-5.0.2-1.i386.rpm

5. You can set cronjobs for systat

cd /etc/cron.d
vi sysstat

Paste the following contents in it for recording load averages every 10 minutes.

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

Save the file and exit vi.

chmod 755 sysstat

6. To look at your load averages. Type in:

sar

Or

sar -q

This produces a better layout. It will show the loads recorded every ten minutes since midnight the night before. And then it will show your day’s average at the very bottom.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.