Archive for the tag 'Sysstat'

The Sysstat Suite of Resource Monitoring Tools

Sysstat is a sophisticated tool.

Sysstat contains the following tools related to collecting I/O and CPU statistics:

iostat
Displays an overview of CPU utilization, along with I/O statistics for one or more disk drives.

mpstat
Displays more in-depth CPU statistics.
Sysstat also contains tools that collect system resource utilization data and create daily reports based on that data.

These tools are:

sadc
Known as the system activity data collector, sadc collects system resource utilization information and writes it to a file.

sar
Producing reports from the files created by sadc, sar reports can be generated interactively or written to a file for more intensive analysis.

The Sysstat Suite of Resource Monitoring Tools

Sysstat contains the following tools related to collecting I/O and CPU statistics:

iostat
Displays an overview of CPU utilization, along with I/O statistics for one or more disk drives.

mpstat
Displays more in-depth CPU statistics.

Sysstat also contains tools that collect system resource utilization data and create daily reports based on that data. These tools are:

sadc
Known as the system activity data collector, sadc collects system resource utilization information and writes it to a file.

sar
Producing reports from the files created by sadc, sar reports can be generated interactively or written to a file for more intensive analysis.

SBDavid

SAR or Sysstat

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.