Hi Friends,
I'm trying to collect Wireless statistics from Access Point (AP) device and view the output using Kafka server. I've added 'madwifi' plugin in OpenWrt code using 'make menuconfig' (Utilities --> collectd --> collectd-mod-madwifi). After successful build, I flashed firmware image into AP to view the output. But I couldn't see the 'madwifi' i.e. Wireless statistics in Kafka server. Our WiFi LAN driver is Atheros only, so no dependency issue and able to see wireless data using other commands in AP.
I've configured 'network', 'madwifi' and 'syslog' plugins in '/etc/collectd.conf' file present in AP. Also I've configured '/etc/collectd/collectd.conf' where collectd and Kafka servers are running (Linux machine).
Just to make sure whether it is working or not, i've disabled 'Interface' plugin in AP, no interface statistics/data displayed in Kafka server. I'm able to see 'interface' statistics/data in Kafka server when enable 'Interface' plugin in AP.
I could see 'memory', 'cpu', 'interface' and 'load' plugins data when enable/add in AP collectd.conf file. But, I couldn't see 'madwif' or 'syslog' or any other plugin added newly in AP.
Could you please anyone help me to add new plugins and view the statistics in AP. I'll be very happy if you are able to help me to get 'madwifi' related data in Kafka server. (Or) Please guide me how to add any new plugins in our OpenWrt code and view the output without any issue. Thanks in Advance.
Please check my configuration below:
Linux (Kafka and Collectd servers are running)
==================================
/* /etc/collectd/collectd.conf */
#Hostname "localhost"
FQDNLookup true
#BaseDir "/var/lib/collectd"
LoadPlugin network
<Plugin network>
# # server setup:
<Listen "0.0.0.0" "25826">
Interface "eth0"
Interface "eth1"
Interface "wifi0"
Interface "wifi1"
</Listen>
# Listen "ff18::efc0:4a42" "25826"
</Plugin>
LoadPlugin write_kafka
<Plugin write_kafka>
Property "metadata.broker.list" "localhost:9092"
<Topic "test">
Format JSON
</Topic>
</Plugin>
AP Configuration
============
/* /etc/collectd.conf */
BaseDir "/var/run/collectd"
#Include "/etc/collectd/conf.d"
PIDFile "/var/run/collectd.pid"
PluginDir "/usr/lib/collectd"
TypesDB "/usr/share/collectd/types.db"
Interval 10
ReadThreads 2
LoadPlugin rrdtool
<Plugin rrdtool>
DataDir "/tmp/rrd"
RRARows 100
RRASingle true
RRATimespan 3600
RRATimespan 86400
RRATimespan 604800
RRATimespan 2678400
RRATimespan 31622400
</Plugin>
#LoadPlugin iwinfo
#<Plugin iwinfo>
# IgnoreSelected false
#</Plugin>
LoadPlugin madwifi
<Plugin "madwifi">
Interface "wlan0"
Interface "wlan1"
Interface "wifi0"
Interface "wifi1"
Source "SysFS"
WatchSet "None"
WatchAdd "node_octets"
WatchAdd "node_rssi"
WatchAdd "is_rx_acl"
WatchAdd "is_scan_active"
WatchAdd "ath_nodes"
WatchAdd "is_rx_assoc_bss"
WatchAdd "is_rx_assoc_notauth"
WatchAdd "is_rx_assoc_capmismatch"
WatchAdd "is_rx_assoc_norate"
WatchAdd "is_rx_assoc_badwpaie"
WatchAdd "ns_rx_disassoc"
WatchAdd "is_rx_notassoc"
WatchAdd "ns_tx_assoc"
WatchAdd "ns_tx_disassoc"
WatchAdd "is_rx_disassoc"
WatchAdd "is_ps_unassoc"
IgnoreSelected false
</Plugin>
LoadPlugin interface
<Plugin interface>
IgnoreSelected false
# Interface eth0
# Interface eth1
# Interface wifi0
Interface wifi1
# Interface ath1
</Plugin>
LoadPlugin network
<Plugin network>
Server "192.168.1.192" "25826"
Forward true
</Plugin>
#LoadPlugin load
What else I've tried
- Modified collectd.conf file in source code then flashed image (no output)
- Added plugins separately in /etc/collectd/conf.d but no output