Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

top and uptime get me the server load average for the last 1, 5 and 15 minutes but is there an easy way to get the average load of yesterday or any other day for that matter?

share|improve this question
    
You should have historical graphing in place. Cacti is a useful tool for this. –  Warner Mar 31 '10 at 13:20
add comment

3 Answers

up vote 2 down vote accepted

You might want to use atop for your task.

Check out the section RAW DATA STORAGE in its manpage.

share|improve this answer
add comment
sar -q

On redhat sar is in the sysstat package. Not sure about other distros.

Addendenum.

For days other than today you will need to specify the file that contains the stats.

On redhat these files are in:

/var/log/sa

so /var/log/sa/sa15 is the sar data for the 15th, /var/log/sa/sa23 is the sar data for the 23rd etc.

so to see the load averages for the 25 you'd use:

sar -q -f /var/log/sa/sa25

Having re-read your question you'll need to massage the data to get a day's average. You can use the -H and -h flags to change the output to some thing that may be easier to parse/process.

share|improve this answer
add comment

Not with the kernel itself, which is what computes those 3 averages. Nagios can capture and store the data over an arbitrary timespan, and—I think—can average it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.