On Wed, Aug  9, 2006 at 00:20:01 +0200 (+0200), Robert Luberda wrote:
> Sar assumes that statistics for different days are in different data
> files and by default it rotate the current data file at midnight. How
> did you managed to get two-month statistics in a one file?

Yep, that's a very good question and I wish I knew the answer!   I
can't read the code well enough to understand what's going on.  I
wondered if perhaps it wasn't clearing the data.  One thing that has
probably changed is the interval - I used to run it with an interval
of 5mins, but I've now reduced that to 1min.

I use this in my crontab: 

INTERVAL=60
COUNT=$((3600*24/$INTERVAL))
/usr/lib/sysstat/sadc $OPTIONS -F -L $INTERVAL $COUNT -

This is then run from cron.d at midnight.

Adrian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to