[hobbit] RRD Tool help

Jon Boede jon at shadowsoft.com
Thu Oct 9 17:09:12 CEST 2008


I've been doing this... I'm not sure if it's "right" but it works well.

If I am collecting a number, say LAG=7 (in seconds)...

        TFILE=${BBRRDS}/${HOST}/${TEST}.rrd
        if test ! -f ${TFILE}
        then
                rrdtool create ${TFILE} DS:trip:GAUGE:600:1:U 
RRA:AVERAGE:0.5:1:576 RRA:AVERAGE:0.5:6:576 RRA:AVERAGE:0.5:24:576 
RRA:AVERAGE:0.5:288:576
        fi
        rrdtool update ${TFILE} N:${LAG}

This one is a little more sophisticated... it looks at the RPM of 4 
different fans...

         TFILE=${BBRRDS}/${HOST}/rpm.`printf "fan_%02d" ${2}`.rrd
         if test ! -f ${TFILE}
         then
                 rrdtool create ${TFILE} DS:rpm:GAUGE:600:1:U 
RRA:AVERAGE:0.5:1:576 RRA:AVERAGE:0.5:6:576 RRA:AVERAGE:0.5:24:576 
RRA:AVERAGE:0.5:288:576
         fi
         rrdtool update ${TFILE} N:${3}

You will also have to update your hobbitgraph.cfg:

Note the first one is mail.rrd and the actual variable is "trip", so the 
graph config looks like:

[mail]
        TITLE Mail Round-Trip Time
        YAXIS Seconds
        DEF:offset=mail.rrd:trip:AVERAGE
        LINE2:offset#00CC00:Seconds
        GPRINT:offset:LAST: \: %5.1lf (cur)
        GPRINT:offset:MAX: \: %5.1lf (max)
        GPRINT:offset:MIN: \: %5.1lf (min)
        GPRINT:offset:AVERAGE: \: %5.1lf (avg)\n

The second one looks at MULTIPLE entries for one host, so it looks like:

[rpm]
        FNPATTERN rpm.(.+).rrd
        TITLE Revolutions per Minute
        YAXIS RPM
        DEF:p at RRDIDX@=@RRDFN@:rpm:AVERAGE
        LINE2:p at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:p at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:p at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:p at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

Modify hobbitserver.cfg and make sure you update the TEST2RRD and GRAPHS 
items so that you'll see them.

Note that if you're really collecting just one number and want to graph 
it, using the "NCV" method described in the "Help > Custom Graphs" 
tutorial is MUCH easier.

Jon

Roberts, James wrote:
>  sorry to bother you but....
>
> Is there an easy walk through on how to add custom strip output to RRD
> graphs?
>
>
> Thanks in advance 
>
>
> James....
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20081009/ec7ee770/attachment.html>


More information about the Xymon mailing list