Bug 19166 - crontab for systat doesn't work
crontab for systat doesn't work
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: sysstat (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-10-16 00:20 EDT by Ian Koenig
Modified: 2007-04-18 12:29 EDT (History)
0 users

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


Attachments (Terms of Use)

  None (edit)
Description Ian Koenig 2000-10-16 00:20:37 EDT
I upgraded from RedHat 6.2 to 7.0.  In doing so it installed sysstat.

Since installing I have seen this official update on the net and updated
that to sysstat-3.2.4-4.i386.rpm.

This is the problem:

the /etc/crontab file doesn't run sa1 as the root and 0,6 are swapped.  As
such sa2 fails since the saXX files don't exist in /var/log/sa.

I have fixed and updated the crontab to what works properly (along with the
other stated related problem that has been posted here under sysstat bugs)

Fix:
----------------
# sysstat
0 * * * 0-6 root /usr/lib/sa/sa1 600 6 &
5 19 * * * root /usr/lib/sa/sa2 -A &
----------------
Comment 1 Tim Waugh 2000-10-16 07:41:40 EDT
There is a new update.
Comment 2 Ian Koenig 2000-10-16 12:35:41 EDT
I installed the update sysstat-3.2.4-5.rpm.  However the updated package fixed
one problem.

The problem that still remains is the fact that in the crontab sa1 is setup to
run on Sunday and Sat.. Not Sunday Through Saturday.

The fix is
0 * * * 0-6 root /usr/lib/sa/sa1 600 6 &

instead of 
0 * * * 0,6 root /usr/lib/sa/sa1 600 6 &

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