I’m trying to collect data about my Cisco WLAN APs through SNMP. I want to know how many clients are connected per AP.
The problem I’m dealing with is that the name of the AP is in a different snmp table than the actual client count. Both tables share the same index but I can’t figure out how to add the AP name from table A as a tag for the client count from table B.
Here’s what I have so far:
[[inputs.snmp.table]]
name = "bsnAPTable"
inherit_tags = [ "hostname" ]
index_as_tag = true
[[inputs.snmp.table.field]]
name = "bsnApIfNoOfUsers"
oid = "AIRESPACE-WIRELESS-MIB::bsnApIfNoOfUsers"
[[inputs.snmp.table.field]]
name = "bsnAPName"
oid = "AIRESPACE-WIRELESS-MIB::bsnAPName"
is_tag = true
This results in a measurement “bsnAPTable” with on field “bsnApIfNoOfUsers”. But the tag “bsnAPName” is simply not there.
If I remove the is_tag = true
from the bsnAPName, it appears as a field as expected.
Any clues how to get this working? Is it even possible?
I hope this makes sense.