Bug 102445

Summary: sysstat's sar reports wrong values in case of reboot
Product: [Retired] Red Hat Raw Hide Reporter: Oliver Paukstadt <pstadt>
Component: sysstatAssignee: Nils Philippsen <nphilipp>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: medium    
Version: 1.0CC: edwardsg
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-01-27 12:25:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oliver Paukstadt 2003-08-15 07:35:44 UTC
Rebooting a box causes sysstat sar to report wrong data about the moment of reboot.
This is because RedHat linux does not write the Linux-Reboot record (dummy
record) to the sysstat statistics file. This causes wrong values if the data is
evaluated later because most values decrease in case of reboot.

sadc.c source says about the problem:
/*
 ***************************************************************************
 * sadc called with interval and count parameters not set:
 * write a dummy record notifying a system restart.
 * This should typically be called this way at boot time,
 * before the cron daemon is started to avoid conflict with sa1/sa2 scripts.
 ***************************************************************************
 */

To fix, add something like

[ -e /usr/lib/sa/sadc -a -x /usr/lib/sa/sadc ] && /usr/lib/sa/sadc

to rc.sysinit after it is clear /var is mounted (at least when the other
activities on /var start).

Comment 1 Greg Edwards 2003-11-17 17:41:35 UTC
This is because the rpm does not contain the /etc/init.d/sysstat
script (sysstat.sh in the tarball).  It needs to be patched to play
nice with chkconfig.  Other than that, just a few lines in the spec
file will fix this.

Comment 2 Nils Philippsen 2004-01-13 16:20:20 UTC
I consider this for future product versions.

Comment 3 Nils Philippsen 2004-01-27 12:25:09 UTC
fixed in 5.0.0-0.6