Red Hat Bugzilla – Bug 18212
sar does not work from cron
Last modified: 2008-05-01 11:37:59 EDT
the sa1 and sa2 called from the cron are missing a username to run with
therefor sar info wil not be available
line in /etc/crontab
5 19 * * * /usr/lib/sa/sa2 -A &
5 19 * * * root /usr/lib/sa/sa2 -A &
fixed by errata.
I think this is still broken with the errata, I get complaints from cron:
"Cannot open /var/log/sa/sa11: No such file or directory"
shouldn't the following line from /etc/crontab:
0 * * * root 0,6 /usr/lib/sa/sa1 600 6 &
0 * * * * root /usr/lib/sa/sa1 600 6 &
or one of the other recommended settings, but "root 0,6" must be wrong....
Shouldn't the cron entry be put in /etc/cron.d/ rather than changing
I'm getting the same error that heckmann is getting too. It seems that sa1
isn't running everyday so you're going to get errors that the latest summary
file isn't there by sa2. You should find that sa2 will only work on weekends
which is the 0,6 crontab setting of sa1.
Looks like a bug to me.