From: Buchan M. <bg...@st...> - 2011-06-01 13:32:11
|
On Tuesday, 31 May 2011 21:58:08 Josh Luthman wrote: > I am trying to set up graphs for an APC 9619 (I am using the template from > the SF files directory). No version of this template has had RRD support for the power test (yet). If you have a temperature sensor, the 'temp' test should though. > The dm column appears on the bbdisp host. I am > getting the power message on this host on Xymon and I can see the graph > reference, but the image is blank/broken. > > I only have docs/GRAPHING to go by and I followed this by: > > * --extra-script /usr/share/devmon/extras/devmon-rrd.pl to both rrdstatus > and rrddata in tasks.cfg This should not be necessary in 4.2.3 or later. > * power=devmon to the end of TEST2RRD in xymonserver.cfg The devmon collector is intended for devmon's TABLE:rrd operator in message files, however the power test doesn't operate on any repeater OIDs. The ncv module may be more appropriate, but it may choke on some of the non-numeric values that follow colons in the message file ... > * I'm at a complete loss in what would be accurate in Xymon's graphs.cfg, > but I took an example from extras/devmon-graph.cfg and changed a few > things. I was hoping to look at the RRD file for examples to help me > complete this > > [power] > FNPATTERN power.(.*).rrd > TITLE Power > YAXIS Volts > DEF:in@RRDIDX@=@RRDFN@:ds0:AVERAGE > CDEF:inbytes@RRDIDX@=in@RRDIDX@,8,* > DEF:out@RRDIDX@=@RRDFN@:ds1:AVERAGE > CDEF:outbytes@RRDIDX@=out@RRDIDX@,8,* > LINE1:inbytes@RRDIDX@#@COLOR@:@RRDPARAM@ In > GPRINT:inbytes@RRDIDX@:LAST: %8.2lf %s (cur) > GPRINT:inbytes@RRDIDX@:MAX: %8.2lf %s (max) > GPRINT:inbytes@RRDIDX@:MIN: %8.2lf %s (min) > GPRINT:inbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n > LINE1:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out > GPRINT:outbytes@RRDIDX@:LAST: %8.2lf %s (cur) > GPRINT:outbytes@RRDIDX@:MAX: %8.2lf %s (max) > GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (avg) > GPRINT:outbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n > -l 0 > > > I am looking at the RRD file and the values (min, max, value, etc) are all > NaN or 0.0000000000e+00 > > Can anyone point me in the right direction? Please supply the output of: bb localhost 'hobbitdlog ups.power' or equivalent, where 'ups' is the host name of your APC 9619 in the bb-hosts file. The 'rrdtool info /path/to/file.rrd' would also help shed some light here. Regards, Buchan |