coredump/hoardd — pull request #3 by nickethier (2012-05-08 20:54:23+00:00)
Title: CPU utilization via the /proc/stat file

I wanted to move to HoardD from collectd. The only thing stopping me was the ability to get detailed cpu utilization on a per cpu basis. So I put on my nodejs hat and wrote this script. No configuration needed.

It will show all usage for the various kernel defined operations. I think as of the latest kernel there are 10 of them: user, nice, system, idle, iowait, irq, softirq, steal, guest, and guest_nice. This script should work for earlier kernels that may only have 8 or 9 of the fields.