On Wed, Jan 26, 2005 at 11:47:30AM -0500, Tom Georgoulias wrote:
So, my first question: I was looking at the patch and wasn't sure the array order is correct. (I'm not a programmer by any means, so if I'm wrong just say so).
on RHEL3, vmstat's CPU info columns are in this order:
user -12th system - 13th IO wait - 14th idle - 15th
Argh! They swapped the order of the IO wait and idle counters!
Well, the simple way of fixing that is to just switch them around in hobbitgraph.cfg. But cpu_idl is used in a lot of graphs, so that does get rather messy.
So it's probably better to define RHEL3 as a new OS type, and setup it's own table for mapping the numbers to the RRD data.
Patch - on top of the previous one - attached. It compiles, but I haven't tested it. It assumes your vmstat data sends in "rhel3" as the name of the OS.
Henrik