From d6902e10a296b457e39d9f2ac26f0e477b27166b Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 18 Mar 2015 20:29:59 +0000 Subject: [PATCH] This log_event would always trigger if a port was admin down, we now skip over those interfaces --- includes/polling/ports.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 6c43bf507a..0582ac0ca6 100755 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -253,7 +253,7 @@ foreach ($ports as $port) // Update IF-MIB data foreach ($data_oids as $oid) { - if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid])) + if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid]) && $this_port['ifAdminStatus'] != 'down') { $port['update'][$oid] = NULL; log_event($oid . ": ".$port[$oid]." -> NULL", $device, 'interface', $port['port_id']);