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
Feedback







Small world. Big idea!
  • Welcome to visit the knowledge base of SRE and DevOps!
  • License under CC BY-NC 4.0
  • Made with Material for MkDocs and improve writing by generative AI tools
  • Copyright issue feedback me#imzye.com, replace # with @