HostOnNet Blog

sar No such file or directory

Looking for Linux Server Admin or WordPress Expert? We can help.

When running sar on Ubuntu, i get error

root@ip-172-31-0-223:~# sar
Cannot open /var/log/sysstat/sa01: No such file or directory
Please check if data collecting is enabled
root@ip-172-31-0-223:~#

To fix, run

dpkg-reconfigure sysstat

This will ask you to activate cronjob for data collection. Select Yes. Now wait some time for cronjob to run, sar will work.

See sar

Posted in Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.