[collectd] Bug#471788: collectd: wireless plugin shows wrong signal power levels

Ondřej Válek ondrej at valek.net
Thu Mar 20 10:21:41 CET 2008


# cat /proc/net/wireless; iwconfig wlan0
Inter-| sta-|   Quality        |   Discarded packets               | 
Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | 
beacon | 19
 wlan0: 0000   19.  -79.  -98.       0 1232722      0     15 
20804583        0
wlan0     IEEE 802.11b  ESSID:"tovar" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 
00:19:5B:1D:89:8C  
          Bit Rate:11 Mb/s   Sensitivity=1/3 
          Retry limit:20   RTS thr:off   Fragment thr:off
          Encryption key:****-****-**   Security mode:restricted
          Power Management:off
          Link Quality=19/70  Signal level=-79 dBm  Noise level=-98 dBm
          Rx invalid nwid:0  Rx invalid crypt:1232722  Rx invalid frag:0
          Tx excessive retries:15  Invalid misc:20804583   Missed beacon:0


Florian Forster wrote:
> Hi Ondřej,
>
> On Thu, Mar 20, 2008 at 08:25:02AM +0100, Ondrej Valek wrote:
>   
>> output of iwconfig wlan0 is like:
>>     
>
> the plugin used the file `/proc/net/wireless' to get the information.
> Could you please provide the contents of this file and the output of
> `iwconfig' at (as far as possible) the same time? Ideally by doing
> something like:
>  # cat /proc/net/wireless; iwconfig wlan0
>
> Obviously the wrong index is used in an array when reading this file, so
> that the value for `power' ends up in `noise'. It should be a trivial
> fix..
>
> Regards,
> -octo
>   




More information about the collectd mailing list