[rrd-users] Newbie question

jdidron at tripnotik.net jdidron at tripnotik.net
Wed Jul 21 23:17:56 MEST 2004


Hello list,

A newbie question follows ;o)

I'm making stats on my network if (you can access it here : 
http://www.tripnotik.net/testing/data/rooter_net_traffic.png ).
As you can see on this page, I represent download on top and upload at 
the bottom (multiplying it by -1).
The problem is that on the y-axis grid, numbers show negatives for 
upload, and I want it positive ... Is that possible ?

here is my  rrdtool graph :

    rrdtool graph "${GRAPH2}" \
        --start $i --imgformat PNG \
        --vertical-label "Traffic sur eth1" \
        --units-exponent 0 \
        --color CANVAS#000000 \
        --color BACK#00000 \
        --color FONT#ffffdf \
        --color MGRID#337fbf \
        --color GRID#615900 \
        --color FRAME#808080 \
        --color ARROW#FF0099 \
        --color SHADEA#000000 \
        --color SHADEB#000000 \
        DEF:POut=$RRDFILE:out:AVERAGE \
        DEF:PIn=$RRDFILE:in:AVERAGE \
        -c BACK#303030 -c FONT#FFFFFF -c FRAME#FFFFFF \
        -v "Traffic (kB/s)" -h 180 -w 600 -r -i --no-minor\
        -t "Traffic - $COMMENT - `date \"+%Y/%m/%d - %k:%M:%S\"`" \
        COMMENT:"\n"                                               \
        COMMENT:"           Minimum         Moyenne         
Maximum         Dernier\n" \
        CDEF:In=PIn,1024,/ \
        CDEF:Out=POut,1024,/ \
        CDEF:Out_neg=Out,-1,* \
        CDEF:flaming1=In,40,*,100,/                              \
        CDEF:flaming2=In,5,*,100,/                               \
        AREA:flaming1#ffff5f:"In :" \
        STACK:flaming2#fffc51   \
        STACK:flaming2#fffc51   \
        STACK:flaming2#fff046   \
        STACK:flaming2#ffe95f   \
        STACK:flaming2#ffd237   \
        STACK:flaming2#ffc832   \
        STACK:flaming2#ffbe2d   \
        STACK:flaming2#ffaa23   \
        STACK:flaming2#ff9619   \
        STACK:flaming2#ff841e   \
        STACK:flaming2#ff841e   \
        STACK:flaming2#ff6600   \
        GPRINT:In:MIN:"   %6.2lf" \
        GPRINT:In:AVERAGE:"        %6.2lf" \
        GPRINT:In:MAX:"        %6.2lf" \
        GPRINT:In:LAST:"        %6.2lf\l" \
        CDEF:flaming3=Out_neg,40,*,100,/ \
        CDEF:flaming4=Out_neg,5,*,100,/ \
        AREA:flaming3#ff3333:"Out:" \
        STACK:flaming4#ff3027   \
        STACK:flaming4#ff3027   \
        STACK:flaming4#ff241c   \
        STACK:flaming4#ff1d35   \
        STACK:flaming4#ff0832   \
        STACK:flaming4#f72727   \
        STACK:flaming4#ec2727   \
        STACK:flaming4#d82727   \
        STACK:flaming4#d82727   \
        STACK:flaming4#c12727   \
        STACK:flaming4#ae3333   \
        STACK:flaming4#973333   \
        GPRINT:Out:MIN:"   %6.2lf" \
        GPRINT:Out:AVERAGE:"        %6.2lf" \
        GPRINT:Out:MAX:"        %6.2lf" \
        GPRINT:Out:LAST:"        %6.2lf\l"

Thank you in advance for any tip you can give me ... and sorry if my 
explanation is unclear.

Julien

--
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