SAR – Cannot open /var/log/sa/sa07: No such file or directory
I was recently installing SAR on a newly deployed Linux server and ran into an error while trying to view the log records. Solution is very simple, however, it might get tricky for new system admins.
Cannot open /var/log/sa/sa07: No such file or directory
SAR is a utility that records system utilization at certain interval and can be useful in order to analyze the usage patterns and optimize it accordingly. These records are generated using CRON jobs. Hence, after you install sysstat (sar) for the first time, you need to restart the CRON server. Execute the following command in order to restart CRON.
service crond restart
After it has been restarted, it should work absolutely fine. In case you run into any further errors, feel free to comment below and I will be happy to look into it for you.
Incoming search terms:
- sar No such file or directory
- sar cannot open /var/log/sa
- cannot open /var/log/sa/sa no such file or directory
- Cannot open /var/log/sa/sa**: No such file or directory
- Cannot open /var/log/sa/sa02: No such file or directory
- sco sar couldnt open file
- sar: cant open /var/adm/sa/sa02
- sar Cannot open /var/log/sa/sa27
- sar Cannot open /var/log/sa/sa07: No such file or directory
- sar cannot create directory