[hobbit] Custom graph not showing up. Possible RRD problem?

Dan Vande More bigdan at gmail.com
Sat Dec 9 16:50:18 CET 2006


One of the first rules of troubleshooting, and the more scientific method
type approach is to reduce your variables.

First, have a small script returning values for one data point. Set up this
one datapoint using ncv, and one graph for that datapoint. Get it to work.
Once it does, add another and another until you break it. Compare what was
working and what's not working, and you'll find your issue.

All things considered, it's a waste of time to troubleshooting the overly
complex problem by bruteforcing it, when you could easily setup an process
with control variables and experimental variables.

On 12/9/06, Thomas <tlp-hobbit at holme-pedersen.dk> wrote:
>
> Last time I had this problem I did 2 tings:
>
> 1) was to change
>
> NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"
>
> to
>
> NCV_inqGraph="*:GAUGE"
>
> 2) was to put
>
>
> TEST2RRD="......,inqGraph=ncv"
>
> not as the last item
>
> TEST2RRD="......,inqGraph=ncv,files"
>
> or something like this.
>
> Don't know which was the tricker to make the graph happen, but it did.
>
>
>
> Jon Hittner wrote:
> > Hi-
> >
> > I am trying to create a custom graph
> >
> > On the client, in /opt/hobbit/client/ext I have a "inqGraph" that has
> this
> > in it:
> >
> > #!/bin/sh
> >
> > . /opt/bb/etc/bbdef.sh
> >
> >
> >
> >
> >
> > $BB $BBDISP "status `hostname`.inqGraph green `date`
> >
> > `cat /tmp/queues.txt`
> >
> > "
> >
> >
> >
> > exit 0
> >
> >
> >
> > /tmp/queues has this in it:
> >
> > DIHM11a : 0
> >
> > DRE11a : 9
> >
> > MIRR11b : 5
> >
> >
> >
> > ===================
> >
> > hobbitserver.cfg
> >
> > ===================
> >
> > TEST2RRD="......,inqGraph=ncv"
> >
> >
> >
> > NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"
> >
> > GRAPHS="......,inqGraph"
> >
> >
> >
> > ===================
> >
> > hobbitgraph.cfg
> >
> > ===================
> >
> > [inqGraph]
> >
> >       Title Queue info
> >
> >       YAXIS Files
> >
> >       DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE
> >
> >       DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE
> >
> >       DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE
> >
> >       LINE2:DIHM11ajon#00CCCC:DIHM1_1a
> >
> >       LINE2:DRE11ajon#FF0000:DRE1_1a
> >
> >       LINE2:MIRR11bjon#FF00CC:MIRR1_1b
> >
> >       COMMENT:\n
> >
> >       GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)
> >
> >       GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)
> >
> >       GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n
> >
> >       GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)
> >
> >       GPRINT:DRE11a:MAX: \: %5.1lf%s (max)
> >
> >       GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n
> >
> >       GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)
> >
> >       GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)
> >
> >       GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n
> >
> >
> >
> > The inqGraph.rrd is being created, however it seems a little strange.
> >
> >
> >
> > ====================
> >
> > inqGraph.rrd
> >
> > ====================
> >
> > <!-- Round Robin Database Dump --><rrd>   <version> 0003 </version>
> >
> >       <step> 300 </step> <!-- Seconds -->
> >
> >       <lastupdate> 1165329250 </lastupdate> <!-- 2006-12-05 09:34:10 EST
> -->
> >
> >
> >
> >       <ds>
> >
> >             <name> DIHM11a </name>
> >
> >             <type> GAUGE </type>
> >
> >             <minimal_heartbeat> 600 </minimal_heartbeat>
> >
> >             <min> 0.0000000000e+00 </min>
> >
> >             <max> NaN </max>
> >
> >
> >
> >             <!-- PDP Status -->
> >
> >             <last_ds> UNKN </last_ds>
> >
> >             <value> 0.0000000000e+00 </value>
> >
> >             <unknown_sec> 0 </unknown_sec>
> >
> >       </ds>
> >
> >
> >
> >       <ds>
> >
> >             <name> DRE11a </name>
> >
> >             <type> GAUGE </type>
> >
> >             <minimal_heartbeat> 600 </minimal_heartbeat>
> >
> >             <min> 0.0000000000e+00 </min>
> >
> >             <max> NaN </max>
> >
> >
> >
> >             <!-- PDP Status -->
> >
> >             <last_ds> UNKN </last_ds>
> >
> >             <value> 2.2500000000e+03 </value>
> >
> >             <unknown_sec> 0 </unknown_sec>
> >
> >       </ds>
> >
> >
> >
> >       <ds>
> >
> >             <name> MIRR11b </name>
> >
> >             <type> GAUGE </type>
> >
> >             <minimal_heartbeat> 600 </minimal_heartbeat>
> >
> >             <min> 0.0000000000e+00 </min>
> >
> >             <max> NaN </max>
> >
> >
> >
> >             <!-- PDP Status -->
> >
> >             <last_ds> UNKN </last_ds>
> >
> >             <value> 1.2500000000e+03 </value>
> >
> >             <unknown_sec> 0 </unknown_sec>
> >
> >       </ds>
> >
> >
> >
> > <!-- Round Robin Archives --> <rra>
> >
> >             <cf> AVERAGE </cf>
> >
> >             <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->
> >
> >
> >
> >             <params>
> >
> >             <xff> 5.0000000000e-01 </xff>
> >
> >             </params>
> >
> >             <cdp_prep>
> >
> >                   <ds>
> >
> >                   <primary_value> 0.0000000000e+00 </primary_value>
> >
> >                   <secondary_value> 0.0000000000e+00 </secondary_value>
> >
> >                   <value> NaN </value>
> >
> >                   <unknown_datapoints> 0 </unknown_datapoints>
> >
> >                   </ds>
> >
> >                   <ds>
> >
> >                   <primary_value> 9.0000000000e+00 </primary_value>
> >
> >                   <secondary_value> 9.0000000000e+00 </secondary_value>
> >
> >                   <value> NaN </value>
> >
> >                   <unknown_datapoints> 0 </unknown_datapoints>
> >
> >                   </ds>
> >
> >                   <ds>
> >
> >                   <primary_value> 5.0000000000e+00 </primary_value>
> >
> >                   <secondary_value> 5.0000000000e+00 </secondary_value>
> >
> >                   <value> NaN </value>
> >
> >                   <unknown_datapoints> 0 </unknown_datapoints>
> >
> >                   </ds>
> >
> >             </cdp_prep>
> >
> >             <database>
> >
> >                   <!-- 2006-12-03 09:35:00 EST / 1165156500 --> <row><v>
> NaN
> > </v><v> NaN </v><v> NaN </v></row>
> >
> >                   <!-- 2006-12-03 09:40:00 EST / 1165156800 --> <row><v>
> NaN
> > </v><v> NaN </v><v> NaN </v></row>
> >
> >                   <!-- 2006-12-03 09:45:00 EST / 1165157100 --> <row><v>
> NaN
> > </v><v> NaN </v><v> NaN </v></row>
> >
> >                   <!-- 2006-12-03 09:50:00 EST / 1165157400 --> <row><v>
> NaN
> > </v><v> NaN </v><v> NaN </v></row>
> >
> >                   ...........
> >
> >             </database>
> >
> >       </rra>
> >
> > </rrd>
> >
> >
> >
> > Within this <database> portion, is the fishy part. I suspect this is why
> my
> > graph isn't being graphed.. What's with all of these NaNs (Not a Number)
> ?
> > This rrd file is fresh, created 2 minutes ago. But within this
> <database>
> > portion I see stuff like:
> >
> >                   <!-- 2006-02-14 19:00:00 EST / 1139961600 --> <row><v>
> NaN
> > </v><v> NaN </v><v> NaN </v></row>
> >
> > Where is this coming from? February 14th, 2006.
> >
> >
> >
> > Full rrd file is available upon request, if it will help.
> >
> >
> >
> > Any suggestions?
> >
> > -------------------------------------------------------
> >
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe at hswn.dk
> >
> >
> >
>
>
> 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/20061209/d26ceed3/attachment.html>


More information about the Xymon mailing list