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

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

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-rate-day.png --imginfo '' --lazy -i -a PNG --title="Bit Rate (Day)" -y 1:1 -l 0 -u 11 --rigid -v "Mbps" DEF:rate=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:rate:AVERAGE AREA:rate#666666:"Link Rate" LINE1:rate#000000 GPRINT:rate:MIN:" Min\: %4.1lf" GPRINT:rate:MAX:" Max\: %4.1lf" GPRINT:rate:AVERAGE:" Avg\: %4.1lf" GPRINT:rate:LAST:" Current\: %4.1lf Mbits/s\n">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-rate-week.png --imginfo '' --lazy -i -a PNG --title="Bit Rate (Week)" -y 1:1 -l 0 -u 11 --rigid -v "Mbps" -s -1week DEF:rate=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:rate:AVERAGE AREA:rate#666666:"Link Rate" LINE1:rate#000000 GPRINT:rate:MIN:" Min\: %4.1lf" GPRINT:rate:MAX:" Max\: %4.1lf" GPRINT:rate:AVERAGE:" Avg\: %4.1lf" GPRINT:rate:LAST:" Current\: %4.1lf Mbits/s\n">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-rate-month.png --imginfo '' --lazy -i -a PNG --title="Bit Rate (Month)" -y 1:1 -l 0 -u 11 --rigid -v "Mbps" -s -1month DEF:rate=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:rate:AVERAGE AREA:rate#666666:"Link Rate" LINE1:rate#000000 GPRINT:rate:MIN:" Min\: %4.1lf" GPRINT:rate:MAX:" Max\: %4.1lf" GPRINT:rate:AVERAGE:" Avg\: %4.1lf" GPRINT:rate:LAST:" Current\: %4.1lf Mbits/s\n">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-rate-year.png --imginfo '' --lazy -i -a PNG --title="Bit Rate (Year)" -y 1:1 -l 0 -u 11 --rigid -v "Mbps" -s -1year DEF:rate=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:rate:AVERAGE AREA:rate#666666:"Link Rate" LINE1:rate#000000 GPRINT:rate:MIN:" Min\: %4.1lf" GPRINT:rate:MAX:" Max\: %4.1lf" GPRINT:rate:AVERAGE:" Avg\: %4.1lf" GPRINT:rate:LAST:" Current\: %4.1lf Mbits/s\n">