mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix for ubnt bad edgeswitch/edgeos uptime #4470
This commit is contained in:
@@ -43,9 +43,11 @@ if (empty($uptime)) {
|
||||
}//end if
|
||||
}//end if
|
||||
|
||||
if ($snmp_uptime > $uptime && is_numeric($snmp_uptime)) {
|
||||
$uptime = $snmp_uptime;
|
||||
d_echo('hrSystemUptime or sysUpTime looks like to have rolled, using snmpEngineTime instead');
|
||||
if ($device["os"] != "edgeswitch" || $device["os"] != "edgeos") {
|
||||
if ($snmp_uptime > $uptime && is_numeric($snmp_uptime)) {
|
||||
$uptime = $snmp_uptime;
|
||||
d_echo('hrSystemUptime or sysUpTime looks like to have rolled, using snmpEngineTime instead');
|
||||
}
|
||||
}
|
||||
|
||||
if (is_numeric($uptime)) {
|
||||
|
||||
Reference in New Issue
Block a user