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

Valter Douglas Lisbôa Jr. douglas at trenix.com.br
Thu Jul 3 14:01:04 CEST 2008


Looking at the graphs, I see the font size has changed by default when you 
change the rrdtool. I don't use cacti but you can dig into it to change 
the --font on rrdtool graph to fit your needs (man rrdgraph for more). 

On Thursday 03 July 2008 06:35:54 Christian Boehme wrote:
> 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



-- 
Valter Douglas Lisbôa Jr.
Sócio-Diretor
Trenix - IT Solutions
"Nossas Idéias, suas Soluções!"
www.trenix.com.br
contato at trenix.com.br
Tel. +55 19 3402.2957
Cel. +55 19 9183.4244



More information about the rrd-users mailing list