<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000099">
I've been doing this... I'm not sure if it's "right" but it works well.<br>
<br>
If I am collecting a number, say LAG=7 (in seconds)...<br>
<br>
<small><tt>        TFILE=${BBRRDS}/${HOST}/${TEST}.rrd<br>
        if test ! -f ${TFILE}<br>
        then<br>
                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<br>
        fi<br>
        rrdtool update ${TFILE} N:${LAG}</tt></small><br>
<br>
This one is a little more sophisticated... it looks at the RPM of 4
different fans...<br>
<br>
<small><tt>         TFILE=${BBRRDS}/${HOST}/rpm.`printf "fan_%02d"
${2}`.rrd<br>
         if test ! -f ${TFILE}<br>
         then<br>
                 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<br>
         fi<br>
         rrdtool update ${TFILE} N:${3}</tt></small><br>
<br>
You will also have to update your hobbitgraph.cfg:<br>
<br>
Note the first one is mail.rrd and the actual variable is "trip", so
the graph config looks like:<br>
<br>
<small><tt>[mail]<br>
        TITLE Mail Round-Trip Time<br>
        YAXIS Seconds<br>
        DEF:offset=mail.rrd:trip:AVERAGE<br>
        LINE2:offset#00CC00:Seconds<br>
        GPRINT:offset:LAST: \: %5.1lf (cur)<br>
        GPRINT:offset:MAX: \: %5.1lf (max)<br>
        GPRINT:offset:MIN: \: %5.1lf (min)<br>
        GPRINT:offset:AVERAGE: \: %5.1lf (avg)\n</tt></small><br>
<br>
The second one looks at MULTIPLE entries for one host, so it looks like:<br>
<br>
<small><tt>[rpm]<br>
        FNPATTERN rpm.(.+).rrd<br>
        TITLE Revolutions per Minute<br>
        YAXIS RPM<br>
        DEF:p@RRDIDX@=@RRDFN@:rpm:AVERAGE<br>
        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@<br>
        GPRINT:p@RRDIDX@:LAST: \: %5.1lf (cur)<br>
        GPRINT:p@RRDIDX@:MAX: \: %5.1lf (max)<br>
        GPRINT:p@RRDIDX@:MIN: \: %5.1lf (min)<br>
        GPRINT:p@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n</tt></small><br>
<br>
Modify hobbitserver.cfg and make sure you update the TEST2RRD and
GRAPHS items so that you'll see them.<br>
<br>
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.<br>
<br>
Jon<br>
<br>
Roberts, James wrote:
<blockquote
 cite="mid:C3D8BF33B5D08642AB3BFEEC249E8BBDF415EF@EXVSRVA1.it2000.hants.gov.uk"
 type="cite">
  <pre wrap=""> 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
<a class="moz-txt-link-abbreviated" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>




  </pre>
</blockquote>
<br>
</body>
</html>