Xymon Mailing List Archive search

Variable lines in graphs

list S Aiello
Fri, 13 Apr 2007 12:20:15 -0400
Message-Id: <user-98fbe034a503@xymon.invalid>

So you said you already have a script running collecting data and creating/updating RRD files ? These should be written under data/rrd/DeviceName/ (DeviceName being the name of the device in Hobbit). So your data collection script could create/update files like; fan.1.rrd, fan.2.rrd, fan.3.rrd, etc...  
Then under the server/etc/hobbitgraph.cfg you would need to tell hobbit how to build a graph from your collected data. i.e.
[fan]
	FNPATTERN fan\.(.*)\.rrd
	TITLE Fans
	YAXIS RPM
	DEF:r at RRDIDX@=@RRDFN@:rpm:AVERAGE
	LINE2:r at RRDIDX@#@COLOR@:@RRDPARAM@
	GPRINT:r at RRDIDX@:LAST: : %5.1lf (cur)
	GPRINT:r at RRDIDX@:MAX: : %5.1lf (max)
	GPRINT:r at RRDIDX@:MIN: : %5.1lf (min)
	GPRINT:r at RRDIDX@:AVERAGE: : %5.1lf (avg)\n

Then you will need to edit server/etc/hobbitserver.cfg, and add "fan" to the GRAPHS= and/or TEST2RRD=.

Please reference the hobbitgraph.cfg man page for further info.


On Friday 13 April 2007 08:51, Hobbit Client wrote:
Hello,

I have a problem with rrdtool graphs. I have created an external script
that reads fan speeds and I want to draw that information. However, not all
of the servers have the same number of fans, so Lines in graph are variable
and I don't know what I have to write in hobbitgraph.cfg.

Could you help me?

Thank you!