[rrd-users] y-axis scaling change from 1.0.46 to 1.2.12?

Christian Boehme Christian.Boehme at gwdg.de
Thu Jul 3 11:35:54 CEST 2008


Hello,

I use cacti as a front end to rrdtool. When upgrading the cacti server I
noticed a change in the graphs which seems to be caused by the upgrade
of rrdtool from 1.0.46 to 1.2.12. With the older rrdtool the graphs look
like this:

http://wwwuser.gwdg.de/~cboehme1/cacti_old.png

This is how this graph is produced:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="LSF - gwdg-pcpar Availability" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=252 \
--lower-limit=0 \
--vertical-label="" \
DEF:a="/var/lib/cacti/full_11.rrd":full:AVERAGE \
DEF:b="/var/lib/cacti/full_11.rrd":resv:AVERAGE \
DEF:c="/var/lib/cacti/full_11.rrd":free:AVERAGE \
DEF:d="/var/lib/cacti/full_11.rrd":avail:AVERAGE \
CDEF:cdefc=a,252,/,100,* \
CDEF:cdeff=b,252,/,100,* \
CDEF:cdefi=c,252,/,100,* \
CDEF:cdefbb=d,252,/,100,* \
AREA:a#FFF200:"Used Slots"  \
GPRINT:a:LAST:"          Current\:%8.0lf"  \
GPRINT:cdefc:AVERAGE:"Average(%%)\:%8.2lf %s\n"  \
STACK:b#FF7D00:"Reserved Slots"  \
GPRINT:b:LAST:"      Current\:%8.0lf"  \
GPRINT:cdeff:AVERAGE:"Average(%%)\:%8.2lf %s\n"  \
STACK:c#FF0000:"Free Slots"  \
GPRINT:c:LAST:"          Current\:%8.0lf"  \
GPRINT:cdefi:AVERAGE:"Average(%%)\:%8.2lf %s\n"  \
LINE2:d#0000FF:"User Available Slots"  \
GPRINT:d:LAST:"Current\:%8.0lf"  \
GPRINT:cdefbb:AVERAGE:"Average(%%)\:%8.2lf %s"

With the newer rrdtool it looks like this:

http://wwwuser.gwdg.de/~cboehme1/cacti_new.png

This is the rrdtool command.

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="LSF - gwdg-pcpar Availability" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=252 \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/srv/www/cacti-0.8.7b/rra/full_11.rrd":full:AVERAGE \
DEF:b="/srv/www/cacti-0.8.7b/rra/full_11.rrd":full:MAX \
DEF:c="/srv/www/cacti-0.8.7b/rra/full_11.rrd":resv:AVERAGE \
DEF:d="/srv/www/cacti-0.8.7b/rra/full_11.rrd":resv:MAX \
DEF:e="/srv/www/cacti-0.8.7b/rra/full_11.rrd":free:AVERAGE \
DEF:f="/srv/www/cacti-0.8.7b/rra/full_11.rrd":free:MAX \
DEF:g="/srv/www/cacti-0.8.7b/rra/full_11.rrd":avail:AVERAGE \
DEF:h="/srv/www/cacti-0.8.7b/rra/full_11.rrd":avail:MAX \
CDEF:cdefc=a,252,/,100,* \
CDEF:cdeff=c,252,/,100,* \
CDEF:cdefi=e,252,/,100,* \
CDEF:cdefbb=g,252,/,100,* \
AREA:a#FFF200FF:"Used Slots"  \
GPRINT:a:LAST:"          Current\:%8.0lf"  \
GPRINT:cdefc:AVERAGE:"Average(%%)\:%8.2lf %s\n"  \
AREA:c#FF7D00FF:"Reserved Slots":STACK \
GPRINT:c:LAST:"      Current\:%8.0lf"  \
GPRINT:cdeff:AVERAGE:"Average(%%)\:%8.2lf %s\n"  \
AREA:e#FF0000FF:"Free Slots":STACK \
GPRINT:e:LAST:"          Current\:%8.0lf"  \
GPRINT:cdefi:AVERAGE:"Average(%%)\:%8.2lf %s\n"  \
LINE2:g#0000FFFF:"User Available Slots"  \
GPRINT:g:LAST:"Current\:%8.0lf"  \
GPRINT:cdefbb:AVERAGE:"Average(%%)\:%8.2lf %s"

The changes in resolution and fonts are caused by cacti, but what causes
the y-axis to reach beyond the upper boundary (causing unwanted unfilled
space in the graph)? Can I somehow reproduce the old behavior? Many thanks!

Christian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6460 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080703/f3fca772/attachment.bin 


More information about the rrd-users mailing list