only edgeswitch

This commit is contained in:
crcro
2016-09-17 18:06:38 +03:00
parent a5f397ed68
commit 2c5bd406ae

View File

@@ -39,11 +39,11 @@ if (empty($uptime)) {
echo 'Using hrSystemUptime ('.$uptime."s)\n";
} else {
$uptime = floor($poll_device['sysUpTime'] / 100);
echo 'Using SNMP Agent Uptime ('.$uptime."s)\n";
echo 'Using SNMP Agent Uptime ('.$uptime."s)\n ";
}//end if
}//end if
if ($device["os"] != "edgeswitch" || $device["os"] != "edgeos") {
if ($device["os"] != "edgeswitch") {
if ($snmp_uptime > $uptime && is_numeric($snmp_uptime)) {
$uptime = $snmp_uptime;
d_echo('hrSystemUptime or sysUpTime looks like to have rolled, using snmpEngineTime instead');