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

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

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-snr-day.png --imginfo '' --lazy -i -a PNG --title="Signal/Noise Ratio (SNR) (Day)" -v dBm -l 0 DEF:s=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:signal:AVERAGE DEF:n=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:noise:AVERAGE CDEF:snr=s,n,- AREA:snr#FF1111:SNR LINE1:snr#990000 GPRINT:snr:MIN:" Min\: %2.lf" GPRINT:snr:MAX:" Max\: %2.lf" GPRINT:snr:AVERAGE:" Avg\: %4.1lf" GPRINT:snr:LAST:" Current\: %2.lf dB" HRULE:0#000000>

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-snr-week.png --imginfo '' --lazy -i -a PNG --title="Signal/Noise Ratio (SNR) (Week)" -v dBm -l 0 -s -1week DEF:s=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:signal:AVERAGE DEF:n=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:noise:AVERAGE CDEF:snr=s,n,- AREA:snr#FF1111:SNR LINE1:snr#990000 GPRINT:snr:MIN:" Min\: %2.lf" GPRINT:snr:MAX:" Max\: %2.lf" GPRINT:snr:AVERAGE:" Avg\: %4.1lf" GPRINT:snr:LAST:" Current\: %2.lf dB" HRULE:0#000000>

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-snr-month.png --imginfo '' --lazy -i -a PNG --title="Signal/Noise Ratio (SNR) (Month)" -v dBm -l 0 -s -1month DEF:s=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:signal:AVERAGE DEF:n=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:noise:AVERAGE CDEF:snr=s,n,- AREA:snr#FF1111:SNR LINE1:snr#990000 GPRINT:snr:MIN:" Min\: %2.lf" GPRINT:snr:MAX:" Max\: %2.lf" GPRINT:snr:AVERAGE:" Avg\: %4.1lf" GPRINT:snr:LAST:" Current\: %2.lf dB" HRULE:0#000000>

<RRD::GRAPH ../rrd-img/<RRD::CV::PATH ifname>-snr-year.png --imginfo '' --lazy -i -a PNG --title="Signal/Noise Ratio (SNR) (Year)" -v dBm -l 0 -s -1year DEF:s=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:signal:AVERAGE DEF:n=/var/lib/rrd/wlan-<RRD::CV::PATH ifname>.rrd:noise:AVERAGE CDEF:snr=s,n,- AREA:snr#FF1111:SNR LINE1:snr#990000 GPRINT:snr:MIN:" Min\: %2.lf" GPRINT:snr:MAX:" Max\: %2.lf" GPRINT:snr:AVERAGE:" Avg\: %4.1lf" GPRINT:snr:LAST:" Current\: %2.lf dB" HRULE:0#000000>