[rrd-users] Re: wrong values when graphing with RRD

Shipley, Rob rshipley at state.mt.us
Tue Apr 20 18:33:04 MEST 2004


Try changing --units-exponent=1 to 0 or eliminate it from your graph
statement. It should be 0 or a multiple of 3. It is used for conversion
between kilo, milli, etc. See the rrdtool manual. 
Also please post the rrdtool create statement. Your consolidation(CF) can
impact your graph. 

-----Original Message-----
From: Fernando Nieto [mailto:fnieto at satec.es]
Sent: Tuesday, April 20, 2004 9:25 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] wrong values when graphing with RRD


Hi everybody!, 
  I'm having problems when graphing with RRD. The problem is that I'm
getting different outputs when I create the *same* graph with different
sizes. At first I thought it was a resolution problem but then I noticed
that legend values were also different!!.

  You can see this in the attached graphs. Both shows the last 2 days data,
I have only changed its width and height when I have created them.  Both
graphs should show a peak of 5% near midnight, but in the "small" one is
showed a 2.5% value and that's what the legend also says!! why??. If
resolution was the problem, at least, the legend should show the correct
value, don't you think so?
 
  I'm giving you some further information about how i'm doing. The RRD data
is the following (the only the non-zero value):

                      numRTT        packetLossSD     packetLossSD
     1082410500: 1.9000000000e+01 0.0000000000e+00 1.0000000000e+00

     rrdtool graph file.png \
         -a PNG --lazy --step=300 -e now -s e-2d \
         -w 460 -h 120 \
         -t "Loss percentage" -v % --units-exponent=1 \
         DEF:loss1=900002220.rrd:packetLossSD:AVERAGE \
         DEF:loss2=900002220.rrd:packetLossDS:AVERAGE \
         DEF:numrtt=900002220.rrd:numRTT:AVERAGE \
         CDEF:numerador=loss1,loss2,+ \  
         CDEF:denominador=numerador,numrtt,+ \
         CDEF:perdidas=100,numerador,denominador,/,* \
         LINE1:perdidas#0050FF:"MAD-LON-0 (max, avg, cur)\:" \
         GPRINT:perdidas:MAX:"%5.2lf %%" \
         GPRINT:perdidas:AVERAGE:"%5.2lf %%" \
         GPRINT:perdidas:LAST:"%5.2lf %%\c" \
         HRULE:0.5#FF0000:"Threshold 0.5 %\c"


  The graph shows the CDEF:
100*(packetLossSD+packetLossDS)/(numRTT+packetLossSD+packetLossDS), that is:
100*(1/20) = 5 %. The RRD file keeps 300 seconds samples during 8 days, i'm
graphing 2 days, that is 288*2 samples in the x-axis.   

  This problem it's getting me crazy, I hope someone could help me, maybe
it's something petty but I'm not able to see it.


Thank you very much in advance.

Best regards,
---
Fernando

  
  


-- Attached file removed by Ecartis and put at URL below --
-- Type: image/gif
-- Size: 6k (6490 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/03-graph_small.gif


-- Attached file removed by Ecartis and put at URL below --
-- Type: image/gif
-- Size: 7k (8066 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/03-graph_big.gif


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list