I know there are several tools I can use to find out what's causing heavy network and CPU usage right now, but every so often on my server I'll check the logs and notice that there were periods of very high network/CPU activity. The most recent occurrence was on a particular day last week.
How can I "look back" and find out who or what is using those resources, without "catching them in the act"?
I'm using Ubuntu 10.04.