+3 votes
in Operating Systems by (4.5k points)

I installed sysstat on my Ubuntu VPS, but even after 24 hours when I run the command "sar", it gives the following error:

Cannot open /var/log/sysstat/sa08: No such file or directory
Please check if data collecting is enabled

How can I enable data collection? 

1 Answer

0 votes
by (20k points)

To enable the data collection, you need to make some changes in the file "/etc/default/sysstat".

Open “/etc/default/sysstat” in an editor and

change

ENABLED=”false”

to

ENABLED=”true”

...