[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Variable lines in graphs
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Variable lines in graphs
- From: s_aiello (at) comcast.net
- Date: Fri, 13 Apr 2007 12:20:15 -0400
- References: <1c124db0704130551q38c29354ib83d35f9c962c2a4 (at) mail.gmail.com>
- User-agent: KMail/1.9.5
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@= (at) RRDFN@:rpm:AVERAGE
LINE2:r (at) RRDIDX@# (at) 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!