Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Circuit Utilization Summary - Dixie to Atlanta \"B\" GigabitEthernet " \
--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/htdocs/cacti/rra/fttb-aries-4_traffic_in_6088.rrd":traffic_in:LAST \
DEF:b="/var/www/htdocs/cacti/rra/fttb-aries-4_traffic_in_6088.rrd":traffic_out:LAST \
DEF:c="/var/www/htdocs/cacti/rra/fttb-aries-4_traffic_in_6088.rrd":traffic_in:AVERAGE \
DEF:d="/var/www/htdocs/cacti/rra/fttb-aries-4_traffic_in_6088.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,1000000000,/,100,*,8,* \
CDEF:cdefb=b,1000000000,/,100,*,8,* \
CDEF:cdefc=a,b,+,1000000000,/,100,*,8,*,10,LE,a,b,+,1000000000,/,100,*,8,*,0,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefd=a,b,+,1000000000,/,100,*,8,*,30,LE,a,b,+,1000000000,/,100,*,8,*,20,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefe=a,b,+,1000000000,/,100,*,8,*,50,LE,a,b,+,1000000000,/,100,*,8,*,40,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdeff=a,b,+,1000000000,/,100,*,8,*,70,LE,a,b,+,1000000000,/,100,*,8,*,60,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefg=a,b,+,1000000000,/,100,*,8,*,90,LE,a,b,+,1000000000,/,100,*,8,*,80,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefh=a,b,+,1000000000,/,100,*,8,*,20,LE,a,b,+,1000000000,/,100,*,8,*,10,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefi=a,b,+,1000000000,/,100,*,8,*,40,LE,a,b,+,1000000000,/,100,*,8,*,30,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefj=a,b,+,1000000000,/,100,*,8,*,60,LE,a,b,+,1000000000,/,100,*,8,*,50,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefba=a,b,+,1000000000,/,100,*,8,*,80,LE,a,b,+,1000000000,/,100,*,8,*,70,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefbb=a,b,+,1000000000,/,100,*,8,*,5000,LE,a,b,+,1000000000,/,100,*,8,*,90,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefbe=c,8,* \
CDEF:cdefbh=a,8,* \
CDEF:cdefbj=c,1000000000,/,100,*,8,* \
CDEF:cdefce=d,8,* \
CDEF:cdefch=b,8,* \
CDEF:cdefcj=d,1000000000,/,100,*,8,* \
AREA:cdefa:"" \
AREA:cdefb:"":STACK \
AREA:cdefc#3ACE0CFF:" 0 - 10%":STACK \
AREA:cdefd#99FF99FF:"20 - 30%":STACK \
AREA:cdefe#FFFF00FF:"40 - 50%":STACK \
AREA:cdeff#FF8C1AFF:"60 - 70%":STACK \
AREA:cdefg#FF3333FF:"80 - 90%\n":STACK \
AREA:cdefh#00FF00FF:"10 - 20%":STACK \
AREA:cdefi#FFFF80FF:"30 - 40%":STACK \
AREA:cdefj#FFA54CFF:"50 - 60%":STACK \
AREA:cdefba#FF5F00FF:"70 - 80%":STACK \
AREA:cdefbb#FF0000FF:"90 - 100%\n":STACK \
COMMENT:"CIRCUIT SPEED\: 1000000000 bits per second\n" \
COMMENT:"INBOUND TRAFFIC RATE" \
GPRINT:cdefbe:AVERAGE:" Avg\:%8.2lf%s" \
GPRINT:cdefbe:MIN:"Min\:%8.2lf%s" \
GPRINT:cdefbe:MAX:"Max\:%8.2lf%s" \
GPRINT:cdefbh:LAST:"Current\:%8.2lf%s\n" \
COMMENT:"INBOUND TRAFFIC %" \
GPRINT:cdefbj:AVERAGE:" Avg\:(%5.2lf %%)" \
GPRINT:cdefbj:MIN:"Min\:(%5.2lf %%)" \
GPRINT:cdefbj:MAX:"Max\:(%5.2lf %%)" \
GPRINT:cdefa:LAST:"Current\:(%5.2lf %%)\n" \
COMMENT:"OUTBOUND TRAFFIC RATE" \
GPRINT:cdefce:AVERAGE:"Avg\:%8.2lf%s" \
GPRINT:cdefce:MIN:"Min\:%8.2lf%s" \
GPRINT:cdefce:MAX:"Max\:%8.2lf%s" \
GPRINT:cdefch:LAST:"Current\:%8.2lf%s\n" \
COMMENT:"OUTBOUND TRAFFIC %" \
GPRINT:cdefcj:AVERAGE:" Avg\:(%5.2lf %%)" \
GPRINT:cdefcj:MIN:"Min\:(%5.2lf %%)" \
GPRINT:cdefcj:MAX:"Max\:(%5.2lf %%)" \
GPRINT:cdefb:LAST:"Current\:(%5.2lf %%)\n" \
COMMENT:"TOTAL DATA MOVED" \
COMMENT:" Inbound\: 2.2 GB" \
COMMENT:"Outbound\: 1.24 GB"
RRDTool Says:
ERROR: the RRD does not contain an RRA matching the chosen CF