Hi All,
I’m adding device support for some Moxa industrial access points (Initial support for Moxa AWK Industrial APs by rhinoau · Pull Request #14197 · librenms/librenms · GitHub), and have a situation were I can’t get the connected client count as a number, I only have an indexed table:
MOXA-AWK4131A-MIB::wlanDevIndex.1 = INTEGER: 1
MOXA-AWK4131A-MIB::wlanDevIndex.2 = INTEGER: 1
MOXA-AWK4131A-MIB::wlanSsidIndex.1 = INTEGER: 1
MOXA-AWK4131A-MIB::wlanSsidIndex.2 = INTEGER: 1
MOXA-AWK4131A-MIB::wlanClientIndex.1 = INTEGER: 1
MOXA-AWK4131A-MIB::wlanClientIndex.2 = INTEGER: 2
MOXA-AWK4131A-MIB::wlanClientMAC.1 = STRING: XX:XX:XX:XX:XX:XX
MOXA-AWK4131A-MIB::wlanClientMAC.2 = STRING: XX:XX:XX:XX:XX:XY
MOXA-AWK4131A-MIB::wlanClientIP.1 = STRING: N/A
MOXA-AWK4131A-MIB::wlanClientIP.2 = STRING: N/A
MOXA-AWK4131A-MIB::wlanClientSignalStrength.1 = INTEGER: -42
MOXA-AWK4131A-MIB::wlanClientSignalStrength.2 = INTEGER: -36
MOXA-AWK4131A-MIB::wlanClientSNR.1 = INTEGER: 47
MOXA-AWK4131A-MIB::wlanClientSNR.2 = INTEGER: 53
MOXA-AWK4131A-MIB::wlanClientConnectionTime.1 = INTEGER: 1627
MOXA-AWK4131A-MIB::wlanClientConnectionTime.2 = INTEGER: 11
I can hit this in LibreNMS/OS/xxx no problems, but then the polling is still not a single OID - so from the doco I then will need a custom poller, which feels dirty and shameful:
… and none have ever been done that I can see - all just base and empty:
librenms@lnms-dev:~/LibreNMS/Interfaces/Polling/Sensors$ ls -l
total 96
-rw-r--r-- 1 librenms librenms 1230 Aug 2 17:35 WirelessApCountPolling.php
-rw-r--r-- 1 librenms librenms 1251 Aug 2 17:35 WirelessCapacityPolling.php
-rw-r--r-- 1 librenms librenms 1261 Aug 2 17:35 WirelessCcqPolling.php
-rw-r--r-- 1 librenms librenms 1261 Aug 2 17:35 WirelessCellPolling.php
-rw-r--r-- 1 librenms librenms 1274 Aug 2 17:35 WirelessChannelPolling.php
-rw-r--r-- 1 librenms librenms 1245 Aug 2 17:35 WirelessClientsPolling.php
-rw-r--r-- 1 librenms librenms 1253 Aug 2 17:35 WirelessDistancePolling.php
I’ve been looking at Routeros and Stellar examples for some clues, but they all have the client count available as an OID.
Before I try and do that (will be hard for me with no examples) - is there some other way to handle this when the device won’t do the counting for us?
Thanks.