From a5f397ed681f81fefb7ccc0978ecaf070bb1ed91 Mon Sep 17 00:00:00 2001 From: crcro Date: Sat, 17 Sep 2016 03:49:39 +0300 Subject: [PATCH] fix for ubnt bad edgeswitch/edgeos uptime #4470 --- includes/polling/core.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/polling/core.inc.php b/includes/polling/core.inc.php index 2e55d60726..c228cc447f 100644 --- a/includes/polling/core.inc.php +++ b/includes/polling/core.inc.php @@ -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)) {