/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-33053184 \
--end=-86400 \
--title='SWDST-PNZBIBPV1-SLT-RK1 - Traffic - ge.1.7 - (GINASIO)' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits por segundo' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/swdst-pnzbibpv1-slt-rk1_traffic_in_676.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/swdst-pnzbibpv1-slt-rk1_traffic_in_676.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=a,UN,INF,UNKN,IF \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" \
AREA:cdefi#8F9286FF:"" |