Fixes #1426 and in some way #1017
snmpEngineTime is good for 135 years uptime. The issue with hrSystemUptime and sysUptime is they roll at around 496 days which then marks a device as rebooted.
If uptime is less than snmpEngineTime and it's numeric then we use snmpEngineTime as uptime value and carry on.
Use snmpEngineTime as primary uptime value
Auto-Deploy finished, Test PR at http://1477.ci.librenms.org or https://1477.ci.librenms.org
Hang fire with this one.
All good. Thought the uptime graph wasn't working but as I rebooted a box with over 400 days of uptime you can't see the data in the graph at the moment.
Fall back to using snmpEngineTime rather than be the default
We have a couple Cisco routers with more than 496 days uptime. Is this supposed to start working automatically or do we need to do anything like rediscover or whatever?
The event log is getting spammed with "Device rebooted after 1 years, 131 days, 21h" every 5 minutes now.
Hi @adammmmm should be automatic - especially on Cisco stuff - assuming you've updated.
run ./poller.php -h HOSTNAME -d -r -m system
Post a link to the debug on dpaste.de in another issue so we can track this.