[rrd-users] More specific: problem with CDEF

Bjørn Nordbø bn at nextra.com
Fri Jul 14 17:18:56 MEST 2000


As I mentioned short time ago, I have a problem with some graphs
only filling half the available space. I have now found that it
is the use of CDEF's that provokes this behaviour. The really
weird thing is that this behaviour only shows if I multiply by
8. Ie. this works fine:

rrdtool graph dings.png -a PNG -s -400d -e now \
 --vertical-label "Bytes per Second" \
 --width 400 --height 100 \
 DEF:temp0=dings.rrd:ds0:AVERAGE \
 DEF:temp1=dings.rrd:ds1:AVERAGE \
 CDEF:plot0=temp0,1,\* \
 CDEF:plot1=temp1,1,\* \
 DEF:temp2=dings.rrd:ds0:MAX \
 DEF:temp3=dings.rrd:ds1:MAX \
 CDEF:plot2=temp2,1,\* \
 CDEF:plot3=temp3,1,\* \
 AREA:plot2#006600:In: \
 AREA:plot0#00eb0c:In: \
 LINE1:plot3#ff00ff:Out: \
 LINE1:plot1#1000ff:Out:

and so does this(!):

rrdtool graph dings.png -a PNG -s -400d -e now \
 --vertical-label "Bytes per Second" \
 --width 400 --height 100 \
 DEF:temp0=dings.rrd:ds0:AVERAGE \
 DEF:temp1=dings.rrd:ds1:AVERAGE \
 CDEF:plot0=temp0,16,\* \
 CDEF:plot1=temp1,16,\* \
 DEF:temp2=dings.rrd:ds0:MAX \
 DEF:temp3=dings.rrd:ds1:MAX \
 CDEF:plot2=temp2,16,\* \
 CDEF:plot3=temp3,16,\* \
 AREA:plot2#006600:In: \
 AREA:plot0#00eb0c:In: \
 LINE1:plot3#ff00ff:Out: \
 LINE1:plot1#1000ff:Out:

but this gives me graphs that fills only a little more than 50% ov
the vertical space:

rrdtool graph dings.png -a PNG -s -400d -e now \
 --vertical-label "Bytes per Second" \
 --width 400 --height 100 \
 DEF:temp0=dings.rrd:ds0:AVERAGE \
 DEF:temp1=dings.rrd:ds1:AVERAGE \
 CDEF:plot0=temp0,8,\* \
 CDEF:plot1=temp1,8,\* \
 DEF:temp2=dings.rrd:ds0:MAX \
 DEF:temp3=dings.rrd:ds1:MAX \
 CDEF:plot2=temp2,8,\* \
 CDEF:plot3=temp3,8,\* \
 AREA:plot2#006600:In: \
 AREA:plot0#00eb0c:In: \
 LINE1:plot3#ff00ff:Out: \
 LINE1:plot1#1000ff:Out:

I don't get it. Anyone?

-- 
Bjørn Nordbø  -  IP Development  -  Nextra Norway

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