Open siretart opened 1 year ago
Poking a bit more at this, I see from https://github.com/nshttpd/mikrotik-exporter/blob/trunk/collector/wlanif_collector.go#L25 and https://github.com/nshttpd/mikrotik-exporter/blob/trunk/collector/wlanif_collector.go#L74 that the code is relying on the output of this command:
[admin@rb4011] > /interface/wireless/monitor 0 once
status: running-ap
wireless-protocol: 802.11
registered-clients: 4
authenticated-clients: 4
wmm-enabled: yes
notify-external-fdb: no
Unfortunately, the output on my haP ax3 device looks slightly different:
[admin@ax3] > /interface/wifiwave2/monitor 0 once
state: running
channel: 5500/ax/Ceee
registered-peers: 2
authorized-peers: 2
tx-power: 20
It seems similar enough to me that the code could attempt to cover the new wifiwave2
routers as well as old APIs to make the exporter easier to use.
What do you think?
When trying to export wireless statistics for my new haP ax3 device, the
mikrotik-exporter
just produces this error:and checking on the console, there is indeed no
/interface/wireless
menu available. All wireless operations happen in the/interface/wifiwave
menu, as described at https://help.mikrotik.com/docs/display/ROS/WifiWave2I suspect this error to happen for every router that replaces the wireless stack with wifiwave2, which includes all wifi6 capable routers from mikrotik