Weird graph data scale problem

Jeff Newman jeffnewman75 at gmail.com
Fri Mar 31 18:35:01 CEST 2006


I have a script that will send the following: (output from sh -x)

+ /usr/local/hobbit/client/bin/bb <server> status <machine>.drops green Fri
Mar 31 16:24:43 GMT 2006
      drops:0

+ sleep 1

or it could send

+ /usr/local/hobbit/client/bin/bb <server> status <machine>.drops green Fri
Mar 31 16:24:43 GMT 2006
      drops:2

+ sleep 1

the line from the script:

      $BB $BBDISP "status $MACHINE.drops green `date`
      `echo "drops:$DROP_NUM"`
"

Note the return between the drop num and the " (double quote)
If I put the double-quotes on the same line as the echo, the RRD doesn't get
updated

the status message shows correctly "drops 2" but the number in the graph
is like in the millions (the y shows up to 10.0m), but the line at the
bottom of the graph shows: 0.2 cur and 0.2 max


The rrd is in the GAUGE format, and the NCV in the hobbitserver.cfg is
also set to gauge. Im not sure why it's making "2"  a "0.2" nor why
the graph is making the number in the millions.

Here is the graph definition:

[drops]
        TITLE Drops per second
        YAXIS Number of drops
        DEF:drops=drops.rrd:drops:AVERAGE
        LINE1:drops#00CC00:Number of drops
        GPRINT:drops:LAST: \: %5.1lf (cur)
        GPRINT:drops:MAX: \: %5.1lf (max)
        GPRINT:drops:MIN: \: %5.1lf (min)
        GPRINT:drops:AVERAGE: \: %5.1lf (avg)\n

I tried adding "-u 1.0" and it put the y scale going up to 1.0, and if
I zoomed in
on the graph, it plotted the 0.2, but I still don't know where it's
getting that.
Maybe I should change my BB command to send "$DROP_NUM".0 ?

Any ideas?

Thanks,
Jeff



More information about the Xymon mailing list