Search code examples
linuxunixiosar

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


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.


Solution

  • Try restarting the service and see the data collects or not

    $ sudo service sysstat restart