From: Buchan M. <bg...@st...> - 2007-10-26 15:53:20
|
On Friday 21 September 2007 17:50:10 xbgmsharp wrote: > Since my post about if_* graph made a lot of question. > Here is the update for if_* graph how to: > > http://me.kaya.fr/howto_devmon_hobbit.txt I wanted to get temperature graphs working for my ProLiant's, based on the existing templates I posted for the compaq-server "model", so I have updated your extra-rrd.pl to use more values that devmon passes through from the "message" template, instead of hardcoding everything (including test name for the rrd file etc.). I have attached my version of the script. Note that by default, using it will *break* if_load graphs for users using the previous script, since the previous script hardcoded the ds names to in and out, though the ds names in most if_load message files are actually ds0 and ds1. The easy fix is to change them to in and out in the template, the proper way may be to export/import existing rrd files. Now, adding something like this to the hobbit graph definitions allows graphing of the 5 temperatures I can get out of my ProLiants: [temp] FNPATTERN temp.(.*).rrd TITLE Temperature YAXIS Degrees Celsius DEF:in@RRDIDX@=@RRDFN@:ds0:AVERAGE DEF:out@RRDIDX@=@RRDFN@:ds1:AVERAGE LINE1:in@RRDIDX@#@COLOR@:@RRDPARAM@ Temperature GPRINT:in@RRDIDX@:LAST: %8.2lf %s (cur) GPRINT:in@RRDIDX@:MAX: %8.2lf %s (max) GPRINT:in@RRDIDX@:MIN: %8.2lf %s (min) GPRINT:in@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n LINE1:out@RRDIDX@#@COLOR@:@RRDPARAM@ Threshold GPRINT:out@RRDIDX@:LAST: %8.2lf %s (cur) GPRINT:out@RRDIDX@:MAX: %8.2lf %s (max) GPRINT:out@RRDIDX@:MIN: %8.2lf %s (avg) GPRINT:out@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n -l 0 (or with the lines from the 2nd LINE to the last GPRINT commented, if you don't want to graph the thresholds). Regards, Buchan |