#!/usr/bin/rrdcgi <RRD::GOODFOR -600>
<RRD::INCLUDE nav.inc.html>

## traffic statistics for <RRD::CV ifname>

<RRD::GRAPH ../rrd-img/<RRD::CV ifname>-day.png --imginfo '' --lazy -i -a PNG --title="<RRD::CV ifname> (Day)" -v "Byte/sec" DEF:in=/var/lib/rrd/traffic-<RRD::CV ifname>.rrd:in:AVERAGE DEF:out=/var/lib/rrd/traffic-<RRD::CV ifname>.rrd:out:AVERAGE CDEF:out_neg=out,-1,* AREA:in#11EE11:"Incoming" LINE1:in#009900 GPRINT:in:MAX:" Max\: %3.lf %s" GPRINT:in:AVERAGE:" Avg\: %3.lf %S" GPRINT:in:LAST:" Current\: %3.lf %SByte/sec\n" AREA:out_neg#0000FF:"Outgoing" LINE1:out_neg#000088 GPRINT:out:MAX:" Max\: %3.lf %S" GPRINT:out:AVERAGE:" Avg\: %3.lf %S" GPRINT:out:LAST:" Current\: %3.lf %SByte/sec" HRULE:0#000000>

<RRD::GRAPH ../rrd-img/<RRD::CV ifname>-week.png --imginfo '' --lazy -i -a PNG --title="<RRD::CV ifname> (Week)" -v "Byte/sec" -s -1week DEF:in=/var/lib/rrd/traffic-<RRD::CV ifname>.rrd:in:AVERAGE DEF:out=/var/lib/rrd/traffic-<RRD::CV ifname>.rrd:out:AVERAGE CDEF:out_neg=out,-1,* AREA:in#11EE11:"Incoming" LINE1:in#009900 GPRINT:in:MAX:" Max\: %3.lf %s" GPRINT:in:AVERAGE:" Avg\: %3.lf %S" GPRINT:in:LAST:" Current\: %3.lf %SByte/sec\n" AREA:out_neg#0000FF:"Outgoing" LINE1:out_neg#000088 GPRINT:out:MAX:" Max\: %3.lf %S" GPRINT:out:AVERAGE:" Avg\: %3.lf %S" GPRINT:out:LAST:" Current\: %3.lf %SByte/sec" HRULE:0#000000>

<RRD::GRAPH ../rrd-img/<RRD::CV ifname>-month.png --imginfo '' --lazy -i -a PNG --title="<RRD::CV ifname> (Month)" -v "Byte/sec" -s -1month DEF:in=/var/lib/rrd/traffic-<RRD::CV ifname>.rrd:in:AVERAGE DEF:out=/var/lib/rrd/traffic-<RRD::CV ifname>.rrd:out:AVERAGE CDEF:out_neg=out,-1,* AREA:in#11EE11:"Incoming" LINE1:in#009900 GPRINT:in:MAX:" Max\: %3.lf %s" GPRINT:in:AVERAGE:" Avg\: %3.lf %S" GPRINT:in:LAST:" Current\: %3.lf %SByte/sec\n" AREA:out_neg#0000FF:"Outgoing" LINE1:out_neg#000088 GPRINT:out:MAX:" Max\: %3.lf %S" GPRINT:out:AVERAGE:" Avg\: %3.lf %S" GPRINT:out:LAST:" Current\: %3.lf %SByte/sec" HRULE:0#000000>

<RRD::GRAPH ../rrd-img/<RRD::CV ifname>-year.png --imginfo '' --lazy -i -a PNG --title="<RRD::CV ifname> (Year)" -v "Byte/sec" -s -1year DEF:in=/var/lib/rrd/traffic-<RRD::CV ifname>.rrd:in:AVERAGE DEF:out=/var/lib/rrd/traffic-<RRD::CV ifname>.rrd:out:AVERAGE CDEF:out_neg=out,-1,* AREA:in#11EE11:"Incoming" LINE1:in#009900 GPRINT:in:MAX:" Max\: %3.lf %s" GPRINT:in:AVERAGE:" Avg\: %3.lf %S" GPRINT:in:LAST:" Current\: %3.lf %SByte/sec\n" AREA:out_neg#0000FF:"Outgoing" LINE1:out_neg#000088 GPRINT:out:MAX:" Max\: %3.lf %S" GPRINT:out:AVERAGE:" Avg\: %3.lf %S" GPRINT:out:LAST:" Current\: %3.lf %SByte/sec" HRULE:0#000000>