Some Wireless RRD graphs seem to be missing



  • I have three wireless interfaces (OPT1, OPT2 and Wlan) configured on my system:

    | OPT1 | ral0 |
    | OPT2 | ral0_wlan1 |
    | Wlan | run0 |

    Status -> RRD Graphs, click on Wireless tab, the Graphs pulldown gives options Allgraphs and OPT1. I expected OPT2 and Wlan to also be options.

    I'm running

    2.1-DEVELOPMENT (i386)
    built on Wed May 2 08:30:32 EDT 2012
    FreeBSD 8.3-RELEASE

    Edit: This post includes a table. Display of tables seems to be broken again. I'll report that where I last reported it (General forum, if I recall correctly).



  • Mystery solved: It appears the Wireless rrd graph is intended only for wireless interfaces operating in bss mode.

    However I noticed the following three lines in /var/db/rrd/updaterrd.sh:```

    polling wireless for interface opt1 ral0_wlan0

    WIFI=/sbin/ifconfig ral0_wlan0 list sta| /usr/bin/awk 'gsub("M", "") {getline 2;print substr($5, 0, length($5)-2) ":" $4 ":" $3}'
    /usr/bin/nice -n20 /usr/local/bin/rrdtool update /var/db/rrd/opt1-wireless.rrd N:

    
    I wonder if the last line should be```
    
    /usr/bin/nice -n20 /usr/local/bin/rrdtool update /var/db/rrd/opt1-wireless.rrd N:$WIFI
    
    


  • I think so too.

    Looking in the code it's set to ${WIFI} which should expand.



  • From other examples of ${var} in /etc/inc/rrd.inc I guess that${WIFI}should be```
    ${WIFI}



  • Done


Locked