Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


  • Linux machine ;
  • I need to "monitor" my processes: need to find every processes that is consuming >80% CPU over 20 seconds, and write the process info into a log .

Is there already a solution for this, or I'll write my own script ? I've already have a small script, but I wanted to know If i can find something more advanced .

share|improve this question

One of the solution you can use is munin:

share|improve this answer

Another tool that might be useful is 'lastcomm' which is in the acct package in Ubuntu. It will show you how long processes run for. For hardcore, detailed data you can use 'auditd'.

share|improve this answer

Your Answer


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.