Ubiquity UniFi Switches showing Wrong uptime #4470

Closed
TyShawn76 opened this Issue Sep 16, 2016 · 6 comments

Projects

None yet

2 participants

@TyShawn76
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.3.6.1.2.1.1.1.0 = STRING: "USW-24P-250, 3.7.17.5220, Linux 3.6.5"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.4413
iso.3.6.1.2.1.1.3.0 = Timeticks: (25677000) 2 days, 23:19:30.00
iso.3.6.1.2.1.1.4.0 = ""
iso.3.6.1.2.1.1.5.0 = STRING: "CoreSwitch-US-24-250W"
iso.3.6.1.2.1.1.6.0 = ""
iso.3.6.1.2.1.1.7.0 = INTEGER: 2
screen shot 2016-09-16 at 5 14 55 pm

Obs. screenshot removed /Rosiak

@crcro
Contributor
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)

@TyShawn76

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
Merged

fix: ubnt bad edgeswitch uptime #4473

2 of 2 tasks complete
@crcro
Contributor
crcro commented Sep 17, 2016

pushed some changes to ignore snmpEngineTime as valid uptime for ubnt

@TyShawn76

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

@crcro
Contributor
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
ff99f4f
@TyShawn76

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