[rrd-users] Large values displayed for small values

Gerhardus.Geldenhuis at gta-travel.com Gerhardus.Geldenhuis at gta-travel.com
Tue Nov 11 14:27:42 CET 2008


Hi
I have imported a script in cacti that graphs my apache server status.
This script extracts data from the server-status page and one of the
graphs is cpu usage. On a server with little traffic the cpu usage is
typically in our case .2342 values or 0.2342.

If the rrd graph has only received 0.xxx values then it's scale is
completely wrong and it shows values as in the Millions range. However
the moment that there is values above 1 the graphs displays properly and
all is well. How can I fix this that scaling will be consistant.

Here is the cacti graph for the graph creation:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="LONSAPA01ATX - Apache Statistics - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/lonsapa01atx_apache_cpuload_4786.rrd":apache_c
puload:AVERAGE \
DEF:b="/var/www/cacti/rra/lonsapa01atx_apache_cpuload_4786.rrd":apache_c
puload:LAST \
DEF:c="/var/www/cacti/rra/lonsapa01atx_apache_cpuload_4786.rrd":apache_c
puload:MIN \
DEF:d="/var/www/cacti/rra/lonsapa01atx_apache_cpuload_4786.rrd":apache_c
puload:MAX \
CDEF:cdeff=a,1800,TREND \
AREA:a#FF5F00FF:"Apache CPU Usage"  \
GPRINT:b:LAST:"    Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:d:MAX:"Maximum\:%8.2lf %s"  \
LINE1:d#FF0000FF:"MAX"  \
LINE1:cdeff#000000FF:"30min moving average\n"

Regards

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



More information about the rrd-users mailing list