Unifi provide sensors

Some of the unifi devices have sensors on them that you can see in the UI.

It could be useful for overall temperature tracking to report these.

Look at snmp.

I was successful using this for Synology to get temp, HDD state, etc but could not figure out MIB and whatnot for unifi.

the sensors are available from the controller however

My comment was somewhat (2) part.

First part was suggestion to fill immediate need. I thought MIB pulled from controller but I test today and realize it is checking individual device (ap, switch, etc…not controller). but it does fill immediate need with currently built component.
FOR EXAMPLE
when snmp enabled in controller.
below worked to get version for unifi switch
snmpwalk -v 2c -c <sommunity> <unifi_switch_ip> 1.3.6.1.4.1.4413.1.1.1.1.1.13.0

beleow get many thing from switch
snmpwalk -v 2c -c <community> <unifi_switch_ip> 1.3.6.1.4.1

Actually I think sensor data would be nice but python package used does not look like it include the sensor data.
Python package does include other data that would be good to include in component.

I suggest that there’s an API for querying this information from the controller directly; and it might be more conclusive than trying to pull it from SNMP.

1 Like