Sar for more than 7 days
By default, the sar (system activity report) utility only keeps 7 days worth of records. Seven days is usually not long enough to capture enough data for meaningful trend analysis. You can therefore change the the duration of time that sar tracks system activity by editing the /etc/sysconfig/sysstat file from this:
# How long to keep log files (days), maximum is a month
HISTORY=7
# How long to keep log files (days), maximum is a month
HISTORY=30
This will give you 30 days of log files to chew on. You could also setup a cron job that runs a script to copy the previous days data file to another directory, renaming the files to (YYYYMMDD) instead of just the day (DD) each time. This will give you even more than 30 days worth of data to review.
# How long to keep log files (days), maximum is a month
HISTORY=7
# How long to keep log files (days), maximum is a month
HISTORY=30
This will give you 30 days of log files to chew on. You could also setup a cron job that runs a script to copy the previous days data file to another directory, renaming the files to (YYYYMMDD) instead of just the day (DD) each time. This will give you even more than 30 days worth of data to review.
<< Home