I have this nice graph that host an aberration. The graph bellow is made out of SNMP network interface query and graphed out of "Interface - Traffic (bits/sec, Total Bandwidth)"
I would like to specify the maximum value possible for the counter. The physical interface is a 100mbit link but it's connected to a 5mbit DSL line.
As you can see in the graph, 52mbit/sec isn't real.
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1233144619 \
--end=1233231019 \
--title="Gateway - Traffic - ppp0/9" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2009/01/28 07\:10\:19 To 2009/01/29 07\:10\:19\c" \
COMMENT:" \n" \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/gateway_traffic_in_22.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/gateway_traffic_in_22.rrd":traffic_in:MAX \
DEF:c="/var/www/html/cacti/rra/gateway_traffic_in_22.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/html/cacti/rra/gateway_traffic_in_22.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefd=b,8,* \
CDEF:cdeff=c,8,* \
CDEF:cdefi=d,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 3.25 GB\n" \
LINE1:cdeff#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 3.54 GB"