Introduction
Sometimes sysstat will be installed, but not collecting data. Running the sar command will show output similar to the following.
[root@server ~]cPs# sar
Cannot open /var/log/sysstat/sa20: No such file or directory
Please check if data collecting is enabled
[root@server ~]cPs#
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Open the
/etc/default/sysstatfile in your preferred text editor. - Change the value of the
ENABLEDline to"true".ENABLED="true"
- Save the changes and exit the text editor.
- Restart the
sysstatservice.systemctl restart sysstat.service