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.

I have a debian 5 machine that is running php, apache, node.js, and mysql.

I would like some report-generating software that will show cpu, memory usage, and network traffic over time. something simple with graphs and a web interface would be optimal. Being able to do this on a per-process or per-service basis would also be very nice.

share|improve this question

3 Answers 3

up vote 2 down vote accepted

Some hints: Cacti, munin, MRTG. Wikipedia has an overview.

share|improve this answer
    
ended up trying out munin first. will try others and let you know how it goes. –  Hersheezy Aug 12 '11 at 2:13

SvenW's answer is definitely the better option, but don't forget about simple command line tools like sar, atop (and atopsar) and hell, even sysshot.

Of course, if you want graphs for these you'll be rolling your own, but for a quick overview with little/no configuration, they're unbeatable.

share|improve this answer

If you want a quick setup, take a look at Ganglia. To do this on a per process, in a nearly exact way, you can use gmetric, something like this:

#!/bin/sh

/usr/bin/gmetric --name process_name_CPU_usage --value $(ps --no-headers -p `pidof process_name` -o pcpu) --type float --unit percentage
/usr/bin/gmetric --name process_name_memory --value $(expr $(ps --no-headers -p `pidof process_name` -o rss) \* 1024) --type uint32 --unit bytes

and put it into a cron job:

* * * * * /path/to/gmetric.sh
share|improve this answer

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.