You can also enable sar by having it run in cron every 60 seconds if you need to enable logging every minute.
This is one way under ubuntu:
create a file under /etc/cron.d/sysstat
vi /etc/cron.d/sysstat, add the following line:
*/1 * * * * root /usr/local/lib/sa/sa1 1 1
Then run sar and you will see the entries recorded at the specified interval.
You can also enable sar by having it run in cron every 60 seconds if you need to enable logging every minute.
This is one way under ubuntu:
create a file under /etc/cron.d/sysstat
vi /etc/cron.d/sysstat, add the following line:
*/1 * * * * root /usr/local/lib/sa/sa1 1 1
Then run sar and you will see the entries recorded at the specified interval.