#!/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-in-day.png --imginfo '' --lazy -i -a PNG --title="Incoming Packets (Day)" -l 0 -v "Number of Packets" DEF:pkg=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in:AVERAGE DEF:err=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in-err:AVERAGE DEF:drop=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in-drop:AVERAGE DEF:nwid=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-nwid:AVERAGE DEF:crypt=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-crypt:AVERAGE DEF:frag=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-frag:AVERAGE AREA:pkg#006600:"Received" 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:nwid#FF891A:"Invalid Network" GPRINT:nwid:MIN:" Min\: %4.1lf" GPRINT:nwid:MAX:" Max\: %4.1lf" GPRINT:nwid:AVERAGE:" Avg\: %4.1lf" GPRINT:nwid:LAST:" Current\: %4.1lf\n" STACK:crypt#5CF4FF:"Invalid Crypt" GPRINT:crypt:MIN:" Min\: %4.1lf" GPRINT:crypt:MAX:" Max\: %4.1lf" GPRINT:crypt:AVERAGE:" Avg\: %4.1lf" GPRINT:crypt:LAST:" Current\: %4.1lf\n" STACK:frag#FF3BF5:"Infalid Frag" GPRINT:frag:MIN:" Min\: %4.1lf" GPRINT:frag:MAX:" Max\: %4.1lf" GPRINT:frag:AVERAGE:" Avg\: %4.1lf" GPRINT:frag:LAST:" Current\: %4.1lf\n">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-pkg-in-week.png --imginfo '' --lazy -i -a PNG --title="Incoming Packets (Week)" -l 0 -v "Number of Packets" -s -1week DEF:pkg=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in:AVERAGE DEF:err=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in-err:AVERAGE DEF:drop=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in-drop:AVERAGE DEF:nwid=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-nwid:AVERAGE DEF:crypt=/tvar/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-crypt:AVERAGE DEF:frag=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-frag:AVERAGE AREA:pkg#006600:"Received" 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:nwid#FF891A:"Invalid Network" GPRINT:nwid:MIN:" Min\: %4.1lf" GPRINT:nwid:MAX:" Max\: %4.1lf" GPRINT:nwid:AVERAGE:" Avg\: %4.1lf" GPRINT:nwid:LAST:" Current\: %4.1lf\n" STACK:crypt#5CF4FF:"Invalid Crypt" GPRINT:crypt:MIN:" Min\: %4.1lf" GPRINT:crypt:MAX:" Max\: %4.1lf" GPRINT:crypt:AVERAGE:" Avg\: %4.1lf" GPRINT:crypt:LAST:" Current\: %4.1lf\n" STACK:frag#FF3BF5:"Infalid Frag" GPRINT:frag:MIN:" Min\: %4.1lf" GPRINT:frag:MAX:" Max\: %4.1lf" GPRINT:frag:AVERAGE:" Avg\: %4.1lf" GPRINT:frag:LAST:" Current\: %4.1lf\n">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-pkg-in-month.png --imginfo '' --lazy -i -a PNG --title="Incoming Packets (Month)" -l 0 -v "Number of Packets" -s -1month DEF:pkg=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in:AVERAGE DEF:err=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in-err:AVERAGE DEF:drop=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in-drop:AVERAGE DEF:nwid=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-nwid:AVERAGE DEF:crypt=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-crypt:AVERAGE DEF:frag=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-frag:AVERAGE AREA:pkg#006600:"Received" 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:nwid#FF891A:"Invalid Network" GPRINT:nwid:MIN:" Min\: %4.1lf" GPRINT:nwid:MAX:" Max\: %4.1lf" GPRINT:nwid:AVERAGE:" Avg\: %4.1lf" GPRINT:nwid:LAST:" Current\: %4.1lf\n" STACK:crypt#5CF4FF:"Invalid Crypt" GPRINT:crypt:MIN:" Min\: %4.1lf" GPRINT:crypt:MAX:" Max\: %4.1lf" GPRINT:crypt:AVERAGE:" Avg\: %4.1lf" GPRINT:crypt:LAST:" Current\: %4.1lf\n" STACK:frag#FF3BF5:"Infalid Frag" GPRINT:frag:MIN:" Min\: %4.1lf" GPRINT:frag:MAX:" Max\: %4.1lf" GPRINT:frag:AVERAGE:" Avg\: %4.1lf" GPRINT:frag:LAST:" Current\: %4.1lf\n">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-pkg-in-year.png --imginfo '' --lazy -i -a PNG --title="Incoming Packets (Year)" -l 0 -v "Number of Packets" -s -1year DEF:pkg=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in:AVERAGE DEF:err=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in-err:AVERAGE DEF:drop=/var/lib/rrd/traffic-<RRD::CV::PATH ifname>.rrd:pkg-in-drop:AVERAGE DEF:nwid=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-nwid:AVERAGE DEF:crypt=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-crypt:AVERAGE DEF:frag=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:disc-frag:AVERAGE AREA:pkg#006600:"Received" 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:nwid#FF891A:"Invalid Network" GPRINT:nwid:MIN:" Min\: %4.1lf" GPRINT:nwid:MAX:" Max\: %4.1lf" GPRINT:nwid:AVERAGE:" Avg\: %4.1lf" GPRINT:nwid:LAST:" Current\: %4.1lf\n" STACK:crypt#5CF4FF:"Invalid Crypt" GPRINT:crypt:MIN:" Min\: %4.1lf" GPRINT:crypt:MAX:" Max\: %4.1lf" GPRINT:crypt:AVERAGE:" Avg\: %4.1lf" GPRINT:crypt:LAST:" Current\: %4.1lf\n" STACK:frag#FF3BF5:"Infalid Frag" GPRINT:frag:MIN:" Min\: %4.1lf" GPRINT:frag:MAX:" Max\: %4.1lf" GPRINT:frag:AVERAGE:" Avg\: %4.1lf" GPRINT:frag:LAST:" Current\: %4.1lf\n">