Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've just spent a few minutes googling for some kind of Linux program/daemon that'll collect information from your computer (such as average CPU load, memory usage, what times the computer is most likely to be on etc) and collate it somehow for viewing. I couldn't find a thing.

It'd be great if somebody could point me to a way of getting stats like this (maybe a program or even a build in Linux stats command?).

Thanks.

share|improve this question

closed as off-topic by Ƭᴇcʜιᴇ007, Canadian Luke, Mokubai, Moses, Carl B Nov 21 '13 at 4:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they tend to become obsolete quickly. Instead, describe your situation and the specific problem you're trying to solve. Here are a few suggestions on how to properly ask this type of question." – Ƭᴇcʜιᴇ007, Canadian Luke, Mokubai, Moses, Carl B
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Depends on DE. In KDE, it's called Ksysguard. In Gnome, it's called System Monitor. In LXDE it is lxtask, and xfce4-taskmanager in Xfce. What is wrong with these? –  MariusMatutiae Nov 20 '13 at 17:11
    
I don't want a task manager, rather a program that can collect computer usage information over time. Like a time management program maybe. –  Todd Davies Nov 20 '13 at 17:14
    
These are not task managers. But basically what you want is a long-time-baseline program, rather than a short one. –  MariusMatutiae Nov 20 '13 at 17:16
    
Yes, I suppose so. Have you any suggestions? –  Todd Davies Nov 20 '13 at 17:27

1 Answer 1

up vote 0 down vote accepted

The functionality you are asking for is provided by sar, a component of sysstat. The original Web page of sar states:

Under Linux, sar serves to log and evaluate a variety of information regarding system activity. With performance problems, sar also permits retroactive analysis of the load values for various sub-systems (CPUs, memory, disks, interrupts, network interfaces and so forth) and limitation of problems in this manner.

I have also found, initially, this Web page very helpful. It states, at the very beginning:

Whenever I perform any type of activity that requires me to look at historical system statistics such as load average, CPU utilization, I/O wait state, or even memory usage; I usually skip the System Monitoring Applications like Nagios or Zenoss and start running the sar command. While I’m not saying that sar completely replaces those tools I am saying that sar is quick and dirty and if all you want is some raw numbers from a certain time frame, sar is a great tool.

What is sar? sar (System Activity Reporter) is a command that ships with the sysstat package. Sysstat is a collection of Unix tools used for performance monitoring, the package includes tools such as iostat, mpstat, pidstat, sadf and sar.

Along with the real time commands sysstat will install a cronjob that will run every 10 minutes and collect the systems performance information. Sar is the command you can use to read the collected

Careful when you set it on Debian (wich is where I am running it), you need to activate automatic logging, which the default package downloaded from the repos does not do for you. In the file etc/default/sysstat, set the Enabled parameters to true, you must do it by hand.

share|improve this answer

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