Sysstat is a powerful Linux system performance monitoring tool developed in the C language. It is an open source and freely available tool. This is one of the best tools used for debugging the performance issues on your Linux systems. This article will help you to install the Sysstat package on your Linux system.
The Sysstat package provides a lot of utilities for collecting system use activities and system performance. Below are some of the utilities with an explanation for what they are being used.
- iostat – CPU statistics and input/output statistics for the block devices and partitions and generate a report.
- mpstat – Processor related statistics and reports.
- cifsiostat – Generating reports CIFS statistics.
- sar – Collects and saves all the system activities and report.
- pidstat – I/O, CPU, memory statistics for Linux processes and generate a report.
- tapestat – Statistics for tape drives attached to the Linux system.
Installation using the Package Manager
A Sysstat package is available in the default package repositories, so you can install it using the following commands.
sudo yum install sysstat ## CentOS and RHEL systems sudo dnf install sysstat ## Fedora 22+ systems sudo apt-get install sysstat ## Ubuntu and Debian based systems
Once done with the installation, we will need to enable the Sysstat monitoring. For that, edit the following file and set
ENABLED="true" and then save it.
sudo vim /etc/default/sysstat
After that, enable the service and start it using the below commands.
sudo systemctl enable sysstat sudo systemctl start sysstat
Installation from Source
You can download the latest stable version from Sysstat’s official website. I would recommend you to use a stable version on production servers. Also, for development systems, you can try the current development version.
Following are the commands to download the current stable release 12.1.3 and install it on your system.
wget http://perso.orange.fr/sebastien.godard/sysstat-12.1.3.tar.xz tar -Jxf sysstat-11.6.2.tar.xz cd sysstat-11.6.2/ ./configure make make install
With this method, all the binary files are under /usr/local/bin directory and the library files are under /usr/local/lib directory. Next, you have to edit the sysstat configuration file and adjust settings as follows.
ENABLED="true" in the above file and then save it.
That’s it!! Hope this article is helpful to you to get the best Linux system performance monitoring tool installed on your Linux systems.