Ubuntu – Monitor CPU usage over period of time on Ubuntu

central-processing-unitmonitoringtopUbuntu

Is there some way to monitor my CPU usage over a period of time, e.g. get a graph that shows CPU% vs. date/time? I occasionally see high load using htop, but I'd like to see what's happening throughout the day.

The more lightweight, the better 🙂

Best Answer

There's nmon for Linux which is in Ubuntu build. You can run nmon in 'spreadsheet' mode where it samples data every few minutes and saves it to a file. There are various tools for then graphing that, or you can just review the data manually.

More complex options include things like munin, cacti, etc. but they look at just more than straight CPU.

Related Topic