Bug 18212 - sar does not work from cron
sar does not work from cron
Product: Red Hat Linux
Classification: Retired
Component: sysstat (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
Depends On:
  Show dependency treegraph
Reported: 2000-10-03 09:09 EDT by Marcel van Groenigen
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-03 09:09:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marcel van Groenigen 2000-10-03 09:09:09 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 &

should be

5 19 * * * root /usr/lib/sa/sa2 -A &
Comment 1 Preston Brown 2000-10-10 11:26:31 EDT
fixed by errata.
Comment 2 heckmann 2000-10-12 11:48:58 EDT
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....
Comment 3 Alexander Kourakos 2000-10-13 12:18:58 EDT
Shouldn't the cron entry be put in /etc/cron.d/ rather than changing 
Comment 4 Brandon Yap 2000-10-19 09:53:04 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.