Skip to content

Install sar error: Please check if data collecting is enabled

homepage-banner

1. Install sysstat

apt-get install sysstat

2. Check sar error

Cannot open /var/log/sysstat/sa02: No such file or directory
Please check if data collecting is enabled in /etc/default/sysstat

3 Change config file /etc/default/sysstat

Change False to True in /etc/default/sysstat

----
# Should sadc collect system activity informations? Valid values
# are "true" and "false". Please do not put other values, they
# will be overwritten by debconf!
ENABLED="true"
----

4. Reboot sysstat Service

service sysstat restart
Leave a message