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/sysstat
file in your preferred text editor. - Change the value of the
ENABLED
line to"true"
.ENABLED="true"
- Save the changes and exit the text editor.
- Restart the
sysstat
service.systemctl restart sysstat.service