[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.
-
Recent
- The ID token is not yet valid. Make sure your computer’s time and time zone are both correct. Current epoch = 1689517128
- .NET Core – How to create a .NET GUI app which runs across the platform
- AKS 2022 updates
- Linux firewall and connectivity issues
- Microsoft Ignite (Sep22-24) event recap & On-demand sessions
- [Linux] Steps to install and configure sysstat package for monitoring.
- Azure Security Enablement – Centralized place for all the links
- Presenting tech session with stories [linkedin learning notes]
- gRPC using .NET core notes
- .NET in 2020 (Build recap)
- #KubeCon CNCF – North America 2019 watchlist
- AKS CLI Sheetcheat for the labs
-
Links