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

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

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-sn-day.png --imginfo '' --lazy -i -a PNG --title="Signal & Noise (Day)" -v dBm DEF:signal=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:signal:AVERAGE DEF:noise=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:noise:AVERAGE LINE2:signal#FF9900:Signal GPRINT:signal:MIN:" Min\: %4.lf" GPRINT:signal:MAX:" Max\: %4.lf" GPRINT:signal:AVERAGE:" Avg\: %6.1lf" GPRINT:signal:LAST:" Current\: %4.lf dBm\n" LINE2:noise#6F4300:Noise GPRINT:noise:MIN:" Min\: %4.lf" GPRINT:noise:MAX:" Max\: %4.lf" GPRINT:noise:AVERAGE:" Avg\: %6.1lf" GPRINT:noise:LAST:" Current\: %4.lf dBm">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-sn-week.png --imginfo '' --lazy -i -a PNG --title="Signal & Noise (Week)" -v dBm -s -1week DEF:signal=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:signal:AVERAGE DEF:noise=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:noise:AVERAGE LINE2:signal#FF9900:Signal GPRINT:signal:MIN:" Min\: %4.lf" GPRINT:signal:MAX:" Max\: %4.lf" GPRINT:signal:AVERAGE:" Avg\: %6.1lf" GPRINT:signal:LAST:" Current\: %4.lf dBm\n" LINE2:noise#6F4300:Noise GPRINT:noise:MIN:" Min\: %4.lf" GPRINT:noise:MAX:" Max\: %4.lf" GPRINT:noise:AVERAGE:" Avg\: %6.1lf" GPRINT:noise:LAST:" Current\: %4.lf dBm">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-sn-month.png --imginfo '' --lazy -i -a PNG --title="Signal & Noise (Month)" -v dBm -s -1month DEF:signal=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:signal:AVERAGE DEF:noise=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:noise:AVERAGE LINE2:signal#FF9900:Signal GPRINT:signal:MIN:" Min\: %4.lf" GPRINT:signal:MAX:" Max\: %4.lf" GPRINT:signal:AVERAGE:" Avg\: %6.1lf" GPRINT:signal:LAST:" Current\: %4.lf dBm\n" LINE2:noise#6F4300:Noise GPRINT:noise:MIN:" Min\: %4.lf" GPRINT:noise:MAX:" Max\: %4.lf" GPRINT:noise:AVERAGE:" Avg\: %6.1lf" GPRINT:noise:LAST:" Current\: %4.lf dBm">

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-sn-year.png --imginfo '' --lazy -i -a PNG --title="Signal & Noise (Year)" -v dBm -s -1year DEF:signal=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:signal:AVERAGE DEF:noise=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:noise:AVERAGE LINE2:signal#FF9900:Signal GPRINT:signal:MIN:" Min\: %4.lf" GPRINT:signal:MAX:" Max\: %4.lf" GPRINT:signal:AVERAGE:" Avg\: %6.1lf" GPRINT:signal:LAST:" Current\: %4.lf dBm\n" LINE2:noise#6F4300:Noise GPRINT:noise:MIN:" Min\: %4.lf" GPRINT:noise:MAX:" Max\: %4.lf" GPRINT:noise:AVERAGE:" Avg\: %6.1lf" GPRINT:noise:LAST:" Current\: %4.lf dBm">