[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] [PATCH] hobbitgraph.cgi: adding support for stack (Was: [hobbit] ganglia-style graph aggregation with hobbit)
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] [PATCH] hobbitgraph.cgi: adding support for stack (Was: [hobbit] ganglia-style graph aggregation with hobbit)
- From: Tom Georgoulias <tomg (at) mcclatchyinteractive.com>
- Date: Mon, 06 Nov 2006 14:53:33 -0500
- Organization: McClatchy Interactive
- References: <4511637D.2050006@sanger.ac.uk> <20060920193920.GD28669@hswn.dk> <4512A42E.9000804@sanger.ac.uk> <452BBB0E.8080809@mcclatchyinteractive.com> <452CB05A.8010309@sanger.ac.uk> <452E0BDA.5080409@sanger.ac.uk>
- User-agent: Thunderbird 1.5.0.7 (X11/20060913)
Gildas Le Nadan wrote:
BEWARE: this patch has been tested on a machine with rrdtool 1.0.x. The
values/behavior for rrdtool 1.2.x were taken from the online rrd
documentation so they are hopefully correct. If someone was able to test
it for me on a server with rrdtool 1.2, I would be very grateful!
I'm a little late on testing this, so hopefully this patch is still the
latest version.
I have tested the patch with Hobbit 4.2.0 + all-in-one patch and rrdtool
1.2.15. It seems to work fine, although I am not seeing data presented
in the way that I had expected it to look. I want to use the RRD stack
to store values taken from the rrd for each host in a given group, then
get an average of those stored values which is a single data point that
represents the host group as a whole.
I've been experimenting with a version of the la1-multi definition, but
I haven't gotten anything to work yet and I'm rather certain that my
syntax is off in a few places. I thought I'd email it out anyway, in
case I can get some pointers or have someone let me know that it won't work.
TITLE Farm CPU Utilitization
YAXIS % Used
FNPATTERN vmstat.rrd
-u 100
-r
DEF:cpu_idl (at) RRDIDX@= (at) RRDFN@:cpu_idl:AVERAGE
CDEF:hostcpu (at) RRDIDX@=100,cpu_idl (at) RRDIDX@,-
# need a way to push each hostcpu (at) RRDIDX@ onto the stack
CDEF:cpuavgs=hostcpu (at) RRDIDX@,AVERAGE
# then get an average of all the values on the stack
# using something like COUNT as the num of items in the stack
CDEF:pbusy=cpuavgs1,cpuavgs2,cpuavgs3,COUNT,AVG
# graph the final data point
LINE2:pbusy#ccccff:%CPU
GPRINT:pbusy:LAST: \: %5.1lf (cur)
GPRINT:pbusy:MAX: \: %5.1lf (max)
GPRINT:pbusy:MIN: \: %5.1lf (min)
GPRINT:pbusy:AVERAGE: \: %5.1lf (avg)\n
--
Tom Georgoulias
Systems Engineer
McClatchy Interactive