This is kind of goofy with how Ubiquiti doesn’t do well at supporting SNMP. For one thing, they don’t support it through the controller, only directly to each AP. But, you have to enable it at the controller to have it flip the switch on the APs so they’ll respond. They really want you to use the API, which is great if you’re a programmer. I am not. I’m a router jockey, so I like SNMP. Anyway, after finding and downloading the MIBs I had a look through them and sorted out a couple of OIDs I was interested in. Specifically, client count per radio and Eth0 bits in and bits out. Here’s what I loaded into Telegraf. You need a separate inputs section for each AP you want to monitor. Nope, not really an “Enterprise” approach.
agents = [ “192.168.x.x:161” ] ## The IP of a single AP.
timeout = “5s”
retries = 3
version = 1
community = “RO_Community”
max_repetitions = 10
name = “UnifiWiFiOffice”
name = “Bits.Out”
oid = “184.108.40.206.4.1.41220.127.116.11.18.104.22.168”
name = “Bits.In”
oid = “22.214.171.124.4.1.41126.96.36.199.188.8.131.52”
name = “2.4.Clients”
oid = “184.108.40.206.4.1.41220.127.116.11.18.104.22.168”
name = “5.0.Clients”
oid = “22.214.171.124.4.1.41126.96.36.199.188.8.131.52”