//Cloud notes from my desk -Maheshk

"Fortunate are those who take the first steps.” ― Paulo Coelho

[Linux] Steps to install and configure sysstat package for monitoring.

Sysstat is a System performance tools for the Linux operating system -> https://github.com/sysstat/sysstat

Steps to install and configure sysstat package for monitoring.

Step 1:  SSH to the server as root user.

Step 2:   #dpkg –l sysstat* ? to check if sysstat is already installed. 

                The output will be like this if it is installed. Then jump to step 4 and configure sysstat on both the VM’s

root@ubuntu:/var/log/sysstat# dpkg -l sysstat*

Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

Name               Version                     Architecture                Description

=============================================-================

ii  sysstat     11.2.0-1ubuntu0.1    amd64   system performance tools for Linux

root@ubuntu: /var/log/sysstat#

The output will be like this if it is not installed. Then you have to proceed with step 3 and then step 4.

root@ubuntu: /var/log# dpkg -l sysstat*

dpkg-query: no packages found matching sysstat*

Step 3: apt-get install sysstat

Step 4: $ vim /etc/default/sysstat

              change ENABLED=”false” to ENABLED=”true”

Step 5:  $ vim /etc/cron.d/sysstat

              Change

5-55/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1

To

*/2 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1

save the file

Step 6: service sysstat restart

              After installing you will find directory in /var/log/sysstat. We need also need that sysstat report.

2020-10-15 - Posted by | Uncategorized

No comments yet.

Leave a comment