[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Weird graph data scale problem
- To: hobbit (at) hswn.dk
- Subject: Weird graph data scale problem
- From: "Jeff Newman" <jeffnewman75 (at) gmail.com>
- Date: Fri, 31 Mar 2006 10:35:01 -0600
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RE/VixgqHwPtEyhpjnzqCItx9YCVzkSD3HeQGFEGFsGcN2t3repCytgOUPFdio7bnb6SJsztgCYCEj0esl7bi/5iBZCI1Ix+QsnG7urjEfuxyehnf57dC3wcuQAoaD90AOZigfdy/ZNEgP+gyzxFzvnhoAMhfENlMVNj8GkN1GA=
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