"Cannot open /var/log/sysstat/sa16 Please check if data collecting is enabled in /etc/default/sysstat"

David Tahvildaran picture David Tahvildaran · Aug 17, 2017 · Viewed 13.7k times · Source

I want to look at disk I/O info on my machine/in general. Found some help from https://unix.stackexchange.com/questions/55212/how-can-i-monitor-disk-io

After recently installing sysstat package and attempting to use sar command (I assume) as that person did, I was instead prompted to check if data collecting was enabled in the above specified file.

After:

sudo vim /etc/default/sysstat

I changed the only line of uncommented code:

ENABLED="false"

to:

ENABLED="true"

However, I am still not able to run sar and get the expected output in my terminal.

Answer

Javeed Shakeel picture Javeed Shakeel · Jan 23, 2018

Try restarting the service and see the data collects or not

$ sudo service sysstat restart