[rrd-users] Problem with GPRINT

René GARCIA rene at margar.fr
Mon Sep 15 10:30:57 CEST 2008


On GPRINT you can write %sbps it will show you ' bps' for bytes per second
'kbps' for kilo bytes per second, and so on.
On Y axis you will have the multiplier (m,k,M,T,...) but can't specify a
unit name. You're already using -v 'Bytes/sec', that's ok.

Regards,
René


Le Lun 15 septembre 2008 09:47, frankie a écrit :
>

>
>
> 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.
>
>
> _______________________________________________
> rrd-users mailing list rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>




More information about the rrd-users mailing list