At first my explanation.
I have link to provider with 7 mbit speed and bustable speed up to 10 mbit.
I'd like to make graphical representation by Cacti. Download, install it. Create access by SNMP from Cacti to my router. Assign to interface 95th percentile template.
Now I got this output (find it please attached)
and this code:
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Gate2 - Traffic - Gi0/3.173264" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/htdocs/cacti/rra/gate2_traffic_in_17.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/htdocs/cacti/rra/gate2_traffic_in_17.rrd":traffic_in:MAX \
DEF:c="/var/www/htdocs/cacti/rra/gate2_traffic_in_17.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/htdocs/cacti/rra/gate2_traffic_in_17.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefd=b,8,* \
CDEF:cdefe=c,8,* \
CDEF:cdefh=d,8,* \
AREA:cdefa#0D006AFF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#FFF200FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"\n" \
HRULE:4507814.24#FF0000FF:"95th Percentile" \
COMMENT:"(4507814.24 mbit in+out)"
2. Can I customize templaite for different subinterface? I mean, I have to create different graphs for different interface with different burstable speed.
Thank you in advice.
Andrew.