Code: Select all
RRDTool Command:
c:/xampp/htdocs/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start="-180000" \
--end="-300" \
--pango-markup \
--title="TP-Link router - Traffic - eth0/2" \
--vertical-label="bits per second" \
--slope-mode \
--base=1000 \
--height=150 \
--width=600 \
--alt-y-grid \
--rigid \
--alt-autoscale-max \
--lower-limit="0" \
--border 1 --slope-mode \
--watermark "Generated by Cacti®" \
DEF:a="C\:/xampp/htdocs/cacti/rra/tp-link_router_traffic_in_31.rrd":"traffic_in":MAX \
DEF:b="C\:/xampp/htdocs/cacti/rra/tp-link_router_traffic_in_31.rrd":"traffic_in":AVERAGE \
DEF:c="C\:/xampp/htdocs/cacti/rra/tp-link_router_traffic_in_31.rrd":"traffic_out":MAX \
DEF:d="C\:/xampp/htdocs/cacti/rra/tp-link_router_traffic_in_31.rrd":"traffic_out":AVERAGE \
CDEF:cdefa="a,8,*" \
CDEF:cdefb="b,8,*" \
CDEF:cdeff="c,8,*" \
CDEF:cdefg="d,8,*" \
LINE1:cdefa#00CF00FF:"" \
AREA:cdefb#00CF007F:"Inbound " \
GPRINT:cdefb:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefb:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdeff#002A97FF:"" \
AREA:cdefg#002A977F:"Outbound" \
GPRINT:cdefg:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefg:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefg:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says: