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)
1so.126.96.36.199.188.8.131.52 = STRING: "USW-24P-250, 184.108.40.20620, Linux 3.6.5"
iso.220.127.116.11.18.104.22.168 = OID: iso.22.214.171.124.1.4413
iso.126.96.36.199.188.8.131.52 = Timeticks: (25677000) 2 days, 23:19:30.00
iso.184.108.40.206.220.127.116.11 = ""
iso.18.104.22.168.22.214.171.124 = STRING: "CoreSwitch-US-24-250W"
iso.126.96.36.199.188.8.131.52 = ""
iso.184.108.40.206.220.127.116.11 = INTEGER: 2
Obs. screenshot removed /Rosiak
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.
fix for ubnt bad edgeswitch/edgeos uptime #4470
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?
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.
fix: ubnt bad edgeswitch uptime #4470
Thanks guys verified this is also fixed on the Unifi switch side too.