fix for ubnt bad edgeswitch/edgeos uptime #4470

This commit is contained in:
crcro
2016-09-17 03:49:39 +03:00
parent 4eb8960050
commit a5f397ed68
+5 -3
View File
@@ -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)) {