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

## wlan statistics: <RRD::CV ifname>

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-pkg-out-day.png --imginfo '' -i --lazy -a PNG --title="Outgoing Packets (Day)" -l 0 -v "Number of Packets" DEF:pkg=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out:AVERAGE DEF:err=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out-err:AVERAGE DEF:drop=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out-drop:AVERAGE DEF:retry=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-retry:AVERAGE DEF:misc=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-misc:AVERAGE DEF:beacon=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:missed-beacon:AVERAGE AREA:pkg#006600:"Sent" GPRINT:pkg:MIN:" Min\: %4.1lf" GPRINT:pkg:MAX:" Max\: %4.1lf" GPRINT:pkg:AVERAGE:" Avg\: %4.1lf" GPRINT:pkg:LAST:" Current\: %4.1lf\n" STACK:err#FF0000:"Errors" GPRINT:err:MIN:" Min\: %4.1lf" GPRINT:err:MAX:" Max\: %4.1lf" GPRINT:err:AVERAGE:" Avg\: %4.1lf" GPRINT:err:LAST:" Current\: %4.1lf\n" STACK:drop#0000FF:"Dropped" GPRINT:drop:MIN:" Min\: %4.1lf" GPRINT:drop:MAX:" Max\: %4.1lf" GPRINT:drop:AVERAGE:" Avg\: %4.1lf" GPRINT:drop:LAST:" Current\: %4.1lf\n" STACK:retry#FF891A:"Excessive Retries" GPRINT:retry:MIN:" Min\: %4.1lf" GPRINT:retry:MAX:" Max\: %4.1lf" GPRINT:retry:AVERAGE:" Avg\: %4.1lf" GPRINT:retry:LAST:" Current\: %4.1lf\n" STACK:misc#F2FF00:"Invalid Misc" GPRINT:misc:MIN:" Min\: %4.1lf" GPRINT:misc:MAX:" Max\: %4.1lf" GPRINT:misc:AVERAGE:" Avg\: %4.1lf" GPRINT:misc:LAST:" Current\: %4.1lf\n" STACK:beacon#FF3BF5:"Missed Beacon" GPRINT:beacon:MIN:" Min\: %4.1lf" GPRINT:beacon:MAX:" Max\: %4.1lf" GPRINT:beacon:AVERAGE:" Avg\: %4.1lf" GPRINT:beacon:LAST:" Current\: %4.1lf\n">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-pkg-out-week.png --imginfo '' -i --lazy -a PNG --title="Outgoing Packets (Week)" -l 0 -v "Number of Packets" -s -1week DEF:pkg=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out:AVERAGE DEF:err=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out-err:AVERAGE DEF:drop=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out-drop:AVERAGE DEF:retry=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-retry:AVERAGE DEF:misc=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-misc:AVERAGE DEF:beacon=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:missed-beacon:AVERAGE AREA:pkg#006600:"Sent" GPRINT:pkg:MIN:" Min\: %4.1lf" GPRINT:pkg:MAX:" Max\: %4.1lf" GPRINT:pkg:AVERAGE:" Avg\: %4.1lf" GPRINT:pkg:LAST:" Current\: %4.1lf\n" STACK:err#FF0000:"Errors" GPRINT:err:MIN:" Min\: %4.1lf" GPRINT:err:MAX:" Max\: %4.1lf" GPRINT:err:AVERAGE:" Avg\: %4.1lf" GPRINT:err:LAST:" Current\: %4.1lf\n" STACK:drop#0000FF:"Dropped" GPRINT:drop:MIN:" Min\: %4.1lf" GPRINT:drop:MAX:" Max\: %4.1lf" GPRINT:drop:AVERAGE:" Avg\: %4.1lf" GPRINT:drop:LAST:" Current\: %4.1lf\n" STACK:retry#FF891A:"Excessive Retries" GPRINT:retry:MIN:" Min\: %4.1lf" GPRINT:retry:MAX:" Max\: %4.1lf" GPRINT:retry:AVERAGE:" Avg\: %4.1lf" GPRINT:retry:LAST:" Current\: %4.1lf\n" STACK:misc#F2FF00:"Invalid Misc" GPRINT:misc:MIN:" Min\: %4.1lf" GPRINT:misc:MAX:" Max\: %4.1lf" GPRINT:misc:AVERAGE:" Avg\: %4.1lf" GPRINT:misc:LAST:" Current\: %4.1lf\n" STACK:beacon#FF3BF5:"Missed Beacon" GPRINT:beacon:MIN:" Min\: %4.1lf" GPRINT:beacon:MAX:" Max\: %4.1lf" GPRINT:beacon:AVERAGE:" Avg\: %4.1lf" GPRINT:beacon:LAST:" Current\: %4.1lf\n">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-pkg-out-month.png --imginfo '' -i --lazy -a PNG --title="Outgoing Packets (Month)" -l 0 -v "Number of Packets" -s -1month DEF:pkg=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out:AVERAGE DEF:err=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out-err:AVERAGE DEF:drop=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out-drop:AVERAGE DEF:retry=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-retry:AVERAGE DEF:misc=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-misc:AVERAGE DEF:beacon=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:missed-beacon:AVERAGE AREA:pkg#006600:"Sent" GPRINT:pkg:MIN:" Min\: %4.1lf" GPRINT:pkg:MAX:" Max\: %4.1lf" GPRINT:pkg:AVERAGE:" Avg\: %4.1lf" GPRINT:pkg:LAST:" Current\: %4.1lf\n" STACK:err#FF0000:"Errors" GPRINT:err:MIN:" Min\: %4.1lf" GPRINT:err:MAX:" Max\: %4.1lf" GPRINT:err:AVERAGE:" Avg\: %4.1lf" GPRINT:err:LAST:" Current\: %4.1lf\n" STACK:drop#0000FF:"Dropped" GPRINT:drop:MIN:" Min\: %4.1lf" GPRINT:drop:MAX:" Max\: %4.1lf" GPRINT:drop:AVERAGE:" Avg\: %4.1lf" GPRINT:drop:LAST:" Current\: %4.1lf\n" STACK:retry#FF891A:"Excessive Retries" GPRINT:retry:MIN:" Min\: %4.1lf" GPRINT:retry:MAX:" Max\: %4.1lf" GPRINT:retry:AVERAGE:" Avg\: %4.1lf" GPRINT:retry:LAST:" Current\: %4.1lf\n" STACK:misc#F2FF00:"Invalid Misc" GPRINT:misc:MIN:" Min\: %4.1lf" GPRINT:misc:MAX:" Max\: %4.1lf" GPRINT:misc:AVERAGE:" Avg\: %4.1lf" GPRINT:misc:LAST:" Current\: %4.1lf\n" STACK:beacon#FF3BF5:"Missed Beacon" GPRINT:beacon:MIN:" Min\: %4.1lf" GPRINT:beacon:MAX:" Max\: %4.1lf" GPRINT:beacon:AVERAGE:" Avg\: %4.1lf" GPRINT:beacon:LAST:" Current\: %4.1lf\n">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-pkg-out-year.png --imginfo '' -i --lazy -a PNG --title="Outgoing Packets (Year)" -l 0 -v "Number of Packets" -s -1year DEF:pkg=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out:AVERAGE DEF:err=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out-err:AVERAGE DEF:drop=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-out-drop:AVERAGE DEF:retry=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-retry:AVERAGE DEF:misc=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-misc:AVERAGE DEF:beacon=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:missed-beacon:AVERAGE AREA:pkg#006600:"Sent" GPRINT:pkg:MIN:" Min\: %4.1lf" GPRINT:pkg:MAX:" Max\: %4.1lf" GPRINT:pkg:AVERAGE:" Avg\: %4.1lf" GPRINT:pkg:LAST:" Current\: %4.1lf\n" STACK:err#FF0000:"Errors" GPRINT:err:MIN:" Min\: %4.1lf" GPRINT:err:MAX:" Max\: %4.1lf" GPRINT:err:AVERAGE:" Avg\: %4.1lf" GPRINT:err:LAST:" Current\: %4.1lf\n" STACK:drop#0000FF:"Dropped" GPRINT:drop:MIN:" Min\: %4.1lf" GPRINT:drop:MAX:" Max\: %4.1lf" GPRINT:drop:AVERAGE:" Avg\: %4.1lf" GPRINT:drop:LAST:" Current\: %4.1lf\n" STACK:retry#FF891A:"Excessive Retries" GPRINT:retry:MIN:" Min\: %4.1lf" GPRINT:retry:MAX:" Max\: %4.1lf" GPRINT:retry:AVERAGE:" Avg\: %4.1lf" GPRINT:retry:LAST:" Current\: %4.1lf\n" STACK:misc#F2FF00:"Invalid Misc" GPRINT:misc:MIN:" Min\: %4.1lf" GPRINT:misc:MAX:" Max\: %4.1lf" GPRINT:misc:AVERAGE:" Avg\: %4.1lf" GPRINT:misc:LAST:" Current\: %4.1lf\n" STACK:beacon#FF3BF5:"Missed Beacon" GPRINT:beacon:MIN:" Min\: %4.1lf" GPRINT:beacon:MAX:" Max\: %4.1lf" GPRINT:beacon:AVERAGE:" Avg\: %4.1lf" GPRINT:beacon:LAST:" Current\: %4.1lf\n">