Ubiquity UniFi Switches showing Wrong uptime #4470

TyShawn76 opened this Issue Sep 16, 2016 · 6 comments


None yet

2 participants

TyShawn76 commented Sep 16, 2016 edited

I just added two Unifi Switches to my network and LibreNMS is showing the wrong uptime for the switches. Ob..... is showing the correct uptime along with the SNMP walk showing the right uptime. When I add the device as brand-new it shows up fine for a duration of time but after a little bit it changes and adds about 150 days to the uptime.

Version 4eb8960 - Fri Sep 16 2016 05:56:24 GMT-0400
DB Schema #133
Apache 2.4.10 (Raspbian)
PHP 5.6.24-0+deb8u1
MySQL 10.0.26-MariaDB-0+deb8u1
RRDtool 1.4.8

1so. = STRING: "USW-24P-250,, Linux 3.6.5"
iso. = OID: iso.
iso. = Timeticks: (25677000) 2 days, 23:19:30.00
iso. = ""
iso. = STRING: "CoreSwitch-US-24-250W"
iso. = ""
iso. = INTEGER: 2
screen shot 2016-09-16 at 5 14 55 pm

Obs. screenshot removed /Rosiak

crcro commented Sep 17, 2016

i think that it is a bug in the firmware? polling for snmpEngineTime.0 returns that strange value (on 2 edgeswitches that i could test, running 1.6.0 firmware) but the sysUpTime.0 return the correct value on my case (49 days)


These switches are the Unifi switch line, not the Edgeswitch line. But it is strange that you see it there. I am also lost as to how Obser..... able to gather the correct info thats what has my mind blown.

@crcro crcro added a commit to crcro/librenms that referenced this issue Sep 17, 2016
@crcro crcro fix for ubnt bad edgeswitch/edgeos uptime #4470 a5f397e
@crcro crcro referenced this issue Sep 17, 2016

fix: ubnt bad edgeswitch uptime #4473

2 of 2 tasks complete
crcro commented Sep 17, 2016

pushed some changes to ignore snmpEngineTime as valid uptime for ubnt


I did a sudo ./daily.sh but no new update any idea how long before I can test the change?

crcro commented Sep 17, 2016

it is still under Pull request, not merged into the master branch.
You can edit the file manually based on diff or wait for the merge to be done.

@laf laf closed this in #4473 Sep 18, 2016
@laf laf added a commit that referenced this issue Sep 18, 2016
@laf laf fix: ubnt bad edgeswitch uptime #4470
fix: ubnt bad edgeswitch uptime #4470

Thanks guys verified this is also fixed on the Unifi switch side too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment