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.
3. Download the rpm.
4. Install the rpm.
5. You can set cronjobs for systat
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.
6. To look at your load averages. Type in:
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.
Leave a Reply
You must be logged in to post a comment.