Bug 24820 - sa1 and sa2 problems
Summary: sa1 and sa2 problems
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sysstat
Version: 7.0
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Preston Brown
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords:
: 25590 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-24 07:25 UTC by josip
Modified: 2007-04-18 16:30 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2001-01-24 07:25:04 UTC


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2000:083 normal SHIPPED_LIVE sysstat cron entry is incorrect 2000-10-09 04:00:00 UTC

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. ***


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