Bug 24820

Summary: sa1 and sa2 problems
Product: [Retired] Red Hat Linux Reporter: josip
Component: sysstatAssignee: Preston Brown <pbrown>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-24 07:25:04 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 josip 2001-01-24 07:25:01 UTC
The script /usr/lib/sa/sa1 gets started hourly only on Saturday and Sunday
(see /etc/crontab, also related to crontabs-1.8-1 package).  Meanwhile, the
script /usr/lib/sa/sa2 runs daily expecting to find daily files.  Since
weekday files are missing, spurious e-mail is sent to root.

Suggestions:
(1) /etc/crontab should start sa1 hourly every day, not just on weekends.
(2) /usr/lib/sa/sa2 should verify that the required log file exist:
    if [ -f ${DFILE} ]; then
       ${ENDIR}/sar $* -f ${DFILE} > ${RPT}
    fi

Comment 1 Preston Brown 2001-01-25 17:51:39 UTC
fixed in errata going out today.

Comment 2 josip 2001-01-30 16:41:39 UTC
The latest errata has a minor problem: it produces daily sar file at 4am,
summarizing only the previous 4 hours.  You may want to change the script
/usr/lib/sa/sa2 to summarize the previous day's data, e.g. by replacing the
'DATE=...' line with

DATE=`date --date=yesterday +%d`

This change will summarize yesterday's complete data (24hrs).


Comment 3 Preston Brown 2001-01-30 20:50:52 UTC
good point.  Fixed in rawhide.

Comment 4 Preston Brown 2001-02-02 23:05:57 UTC
*** Bug 25590 has been marked as a duplicate of this bug. ***