New Member
Posts: 3
Registered: ‎12-20-2014
Kudos: 1

Re: UniFi Switch temperature monitoring

can you ssh into the switch and post the output of below command

swctrl -d env

Regular Member
Posts: 534
Registered: ‎10-12-2009
Kudos: 172
Solutions: 19

Re: UniFi Switch temperature monitoring

The output on a Unifi Switch 8 Port PoE+ is:

 

US.v3.3.20# swctrl -d env
General Temperature (C): 63
Fan Duty Level: N/A
Temperature sensors:
Sensor     Temp (C)    State           Max Temp (C)
========== =========== =============== ============
TEMP-1     58          Normal          58          
TEMP-2     63          Normal          63          
PoE-01     49          Normal          49          
PoE-02     47          Normal          47

This is great… where do you get thos commands from? is there any port with a list? because asking for a manual is calling myself crazy Man Wink

 

Thanks for the info, very helpful


Victor Bottacco
 Apple Consultant

New Member
Posts: 9
Registered: ‎12-14-2015

Re: UniFi Switch temperature monitoring

I am also interested in moinitoring temperartures. But instead of logging in I would like to get this information through SNMP. I used snmpwalk on my switch (US-8-150W) but I couldn't find values resembeling my temperatures. Anyone know what OID to query?

Veteran Member
Posts: 4,966
Registered: ‎06-13-2015
Kudos: 1345
Solutions: 234

Re: UniFi Switch temperature monitoring

[ Edited ]

@jsaathof wrote:

I am also interested in moinitoring temperartures. But instead of logging in I would like to get this information through SNMP. I used snmpwalk on my switch (US-8-150W) but I couldn't find values resembeling my temperatures. Anyone know what OID to query?


I know for a fact that one of these metrics is available through the API. In my case (I also have a USW-8-150W) the "general temperature" metric is found in the 

general_temperature

attribute for the device. See my API browser tool (links are in my signature) for a quick way to verify this before you start coding your own custom collector for your monitoring platform. 

Art of WiFi
Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub.
The thread on our UniFi Device Search tool can be found here, also check out our Captive Portal solutions for UniFi.
Regular Member
Posts: 534
Registered: ‎10-12-2009
Kudos: 172
Solutions: 19

Re: UniFi Switch temperature monitoring


@slooffmaster wrote:

See my API browser tool (links are in my signature) for a quick way to verify this before you start coding your own custom collector for your monitoring platform. 


Wow, really nice utility @slooffmaster! Very good job, thank you very much. I will install it on my OS X Server machine that has the controller and I will see what I can do with it.


Victor Bottacco
 Apple Consultant

Veteran Member
Posts: 4,966
Registered: ‎06-13-2015
Kudos: 1345
Solutions: 234

Re: UniFi Switch temperature monitoring

Icon Biggrin

Art of WiFi
Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub.
The thread on our UniFi Device Search tool can be found here, also check out our Captive Portal solutions for UniFi.
New Member
Posts: 32
Registered: ‎10-09-2013
Kudos: 8

Re: UniFi Switch temperature monitoring

If you are using snmp there are two temp sensors. 

1.3.6.1.4.1.4413.1.1.43.1.8.1.5.1.0

1.3.6.1.4.1.4413.1.1.43.1.8.1.5.1.1

 

New Member
Posts: 2
Registered: ‎06-08-2018
Kudos: 1

Re: UniFi Switch temperature monitoring

I know this is quite old, can advice how to set temp sensor in PRTG?
New Member
Posts: 24
Registered: ‎03-04-2015
Kudos: 2

Re: UniFi Switch temperature monitoring

It looks like these have changed with the 4.x firmware update; I think they're now:

 

* 1.3.6.1.4.1.41112.1.1.43.1.8.1.5.1.0

* 1.3.6.1.4.1.41112.1.1.43.1.8.1.5.1.1

Emerging Member
Posts: 41
Registered: ‎05-21-2012
Kudos: 9
Solutions: 1

Re: UniFi Switch temperature monitoring

Any updated MIB that includes these new OIDs?

Member
Posts: 245
Registered: ‎01-08-2015
Kudos: 42
Solutions: 8

Re: UniFi Switch temperature monitoring

Looking for updated MIB that includes these new OIDs s well.

Regular Member
Posts: 513
Registered: ‎08-19-2016
Kudos: 182
Solutions: 26

Re: UniFi Switch temperature monitoring

[ Edited ]

@mnot wrote:

It looks like these have changed with the 4.x firmware update; I think they're now:

 

* 1.3.6.1.4.1.41112.1.1.43.1.8.1.5.1.0

* 1.3.6.1.4.1.41112.1.1.43.1.8.1.5.1.1



Thanks for sharing your knowledge, @mnot.


My US-8-150W, which is running firmware 4.0.21, is reporting under the older OIDs rather than these.  I recall reading that there was an inadverdent change in an early 4.0.x release that was corrected later, but I'll be darned if I can find the post that said it.

 

Mine is reporting values of 61 and 65. Presumably those are degrees Celsius, so those readings are 142/149 Fahrenheit.  Seems kinda high for sitting on an open shelf in a room that's about 24C/75F, but probably not unreasonable for a passively-cooled device with an integrated 150W power supply. Presumably it's designed to operate at those temperatures.

 

I think I'll try putting short (~1 cm) risers under the feet to allow additional airflow.

 

-- Pete

 

 

New Member
Posts: 24
Registered: ‎03-04-2015
Kudos: 2

Re: UniFi Switch temperature monitoring

Interesting! I can confirm that on my system, it's back to the old ones. Thanks!

New Member
Posts: 29
Registered: ‎07-12-2017
Kudos: 2

Re: UniFi Switch temperature monitoring

Trying to write some python code to do this.
Got stuck, done a fair bit of web searching, to no avail.
Got shouted at on Stack Echange for asking the question in a thread, when they say you can ONLY answer questions there!

1. SSH into the switch

2. From that SSH session, Telnet localhost

3. show info

You can see the results on screen.
I can (in Python) SSH, then telnet - the problem is, getting the data back from the telnet command.

 

Don't want to have to install the PHP API client and web server on the machines I want to use to query the switch.

 

Anyone?

Regular Member
Posts: 410
Registered: ‎09-27-2017
Kudos: 226
Solutions: 17

Re: UniFi Switch temperature monitoring

[ Edited ]

Uhm... LibreNMS does this with SNMP, no other configuration required, you even get graphs with that.

 

Screenshot_LibreNMS_USW_Temp.pngUSW-8P-150 Temps

New Member
Posts: 29
Registered: ‎07-12-2017
Kudos: 2

Re: UniFi Switch temperature monitoring

another level of application installation - not what I want to do, but thanks for the info

Regular Member
Posts: 410
Registered: ‎09-27-2017
Kudos: 226
Solutions: 17

Re: UniFi Switch temperature monitoring

You don't install any application, you download a VM or docker image. About zillion times better for monitoring your equipment than some home-made scripts.

New Member
Posts: 29
Registered: ‎07-12-2017
Kudos: 2

Re: UniFi Switch temperature monitoring

When I get the data, I want to send it to mqtt, to be used in another already running app.
If I can do that with LibreNMS - then I'll have a look.