SysStat is a very useful utility for Linux based systems that are used for effectively monitoring your system. With system monitoring, you can easily figure out all the potential issues in your system, and hence, you can keenly observe the activities going on in your system. In this article, we are going to explain to you the procedure of installing SysStat to enable system monitoring on Debian 10.

Method of Installing SysStat to Enable System Monitoring on Debian 10:

For installing SysStat to enable system monitoring on Debian 10, you have to go through the first five steps listed below, whereas the sixth step represents an example use case of SysStat in Debian 10.

Step # 1: Installing SysStat on Debian 10:

The SysStat utility in Debian 10 can be installed by running the following command:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-51.png" data-lazy- height="24" src="data:image/svg xml,” width=”441″>

As soon as the SysStat utility is successfully installed on your Debian 10 system, these messages will be displayed on the terminal:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-52.png" data-lazy- height="402" src="data:image/svg xml,” width=”720″>

Step # 2: Enabling System Monitoring in the SysStat File in Debian 10:

Now you need to tweak the SysStat file a little to enable system monitoring on Debian 10. This can be done by accessing the SysStat file in the manner shown below:

sudo nano /etc/default/sysstat

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-53.png" data-lazy- height="24" src="data:image/svg xml,” width=”495″>

The default SysStat file is shown in the following image:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-54.png" data-lazy- height="460" src="data:image/svg xml,” width=”733″>

Now we will enable system monitoring in this file by setting the value of the variable “ENABLED” to “true” instead of “false,” as highlighted in the image shown below:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-55.png" data-lazy- height="191" src="data:image/svg xml,” width=”624″>

After modifying the SysStat file, we will simply exit the nano editor after saving the file.

Step # 3: Enabling the SysStat Service in Debian 10:

Now we need to re-enable the SysStat service in Debian 10 with the following command:

sudo systemctl enable sysstat

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-56.png" data-lazy- height="20" src="data:image/svg xml,” width=”485″>

The successful execution of the above-mentioned command will display the messages shown in the image below:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-57.png" data-lazy- height="96" src="data:image/svg xml,” width=”723″>

Step # 4: Starting the SysStat Service in Debian 10:

Once the SysStat service is enabled on Debian 10, we need to restart it with the following command:

sudo systemctl start sysstat

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-58.png" data-lazy- height="25" src="data:image/svg xml,” width=”473″>

The error-free execution of this command will display the messages shown in the image below:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-59.png" data-lazy- height="45" src="data:image/svg xml,” width=”482″>

Step # 5: Checking the Status of the SysStat Service in Debian 10:

We can also check the status of the SysStat service in Debian 10 with the following command:

sudo systemctl status sysstat

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-60.png" data-lazy- height="25" src="data:image/svg xml,” width=”484″>

The status of the sysstat service on our Debian 10 system is shown in the image below:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-61.png" data-lazy- height="248" src="data:image/svg xml,” width=”727″>

Step # 6: Viewing the CPU Statistics with SysStat in Debian 10:

By now, the SysStat service will be successfully running on your Debian 10 system. We have shared a sample scenario of viewing the CPU statistics with the SysStat utility in Debian 10 over here. However, the SysStat utility can also be used for viewing other useful system statistics. The CPU statistics can be viewed by running the following command:

<img data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-62.png" height="25" src="data:image/svg xml,” width=”281″>

The CPU statistics of our Debian 10 system are shown in the image below:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-63.png" data-lazy- height="102" src="data:image/svg xml,” width=”721″>

Method of Removing SysStat from Debian 10:

Whenever you want to remove the SysStat utility from your Debian 10 system along with all of its dependencies and configuration files, you can run the following command:

sudo apt-get autoremove –purge sysstat

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-65.png" data-lazy- height="26" src="data:image/svg xml,” width=”574″>

Once all the dependencies and packages that got installed along with the SysStat utility and its configuration files will be removed successfully from your Debian 10 system, you will see these messages on your terminal:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image-66.png" data-lazy- height="292" src="data:image/svg xml,” width=”685″>

Conclusion:

In this article, we talked about installing the SysStat utility to enable system monitoring on Debian 10. We also shared with you an example scenario of using this utility. Finally, we concluded this article by sharing with you the method of removing this utility from your Debian 10 system.

About the author

<img alt="Karim Buzdar" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/karim-150×150.png600a2fe1edef1.jpg" height="112" src="data:image/svg xml,” width=”112″>

Karim Buzdar

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.