[rrd-users] Problem with GPRINT

frankie frankie823 at gmail.com
Mon Sep 15 09:47:48 CEST 2008




frankie wrote:
> 
> I am using the rrdtool  version 1.2.26 and using it to draw the graph for
> monitoring the traffic on the switch every minute. However, I found that
> when the value is less than 1, the output will be incorrect. for example
> 0.654 , GPRINT will draw 654 on the graph. And the other problem is how
> can GPRINT change the unit eg (kb or mb) automatically? Should I use "%s"?
> 
> This is my configuration code.
> rrdtool create /usr/rrdtool/WK_SR_DS2-in-4227809.rrd -s 60 -b  `date -d
> '-1 month' +%s` DS:in:COUNTER:120:0:U DS:out:COUNTER:120:0:U
> RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775
> RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700
> RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 
> 
> rrdtool graph WK_SR_DS2-in-4227809-hour.png  --slope-mode --title 4227809
> DEF:t1=/usr/rrdtool/WK_SR_DS2-in-4227809.rrd:in:AVERAGE
> DEF:t2=/usr/rrdtool/WK_SR_DS2-in-4227809.rrd:out:AVERAGE
> AREA:t1#00CF00FF:'IN' GPRINT:t1:MAX:'MAX\: %3.1lf %s' GPRINT:t1:MIN:'MIN\:
> %3.1lf %s' GPRINT:t1:LAST:'NOW\: %3.1lf %s' LINE1:t2#002A97FF:'OUT'
> GPRINT:t2:MAX:'MAX\: %3.1lf %s' GPRINT:t2:MIN:'MIN\: %3.1lf %s'
> GPRINT:t2:LAST:'NOW\: %3.1lf %s' -v 'Bytes/sec' --base 1000 -Y -h 260 -w
> 600 -s `date -d '-1 hour' +%s`"
> 
> My english is so poor, it may quite difficult to understand my meaning.=^D
> Can anybody help me?  Thank you
> 
Oh I got it, (For example 0.654 , GPRINT will draw 654 on the graph) 654
means byte. But is it possible to have a unit b, which is much more easy to
understand?
-- 
View this message in context: http://n2.nabble.com/Problem-with-GPRINT-tp1089832p1089905.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list