diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 6fa95920b9..ee6ad127c6 100755 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -62,7 +62,7 @@ while ($port = mysql_fetch_array($port_query)) { echo(" --> " . $port['ifDescr'] . " "); - if($array[$device[device_id]][$port[ifIndex]]) { // Check to make sure Port data is cached. + if($array[$device[device_id]][$port[ifIndex]] && $port['ignore'] == "0") { // Check to make sure Port data is cached. $this_port = &$array[$device[device_id]][$port[ifIndex]]; @@ -199,9 +199,11 @@ break; } } - } else { + } elseif($port['ignore'] == "0") { echo("Port Deleted?"); // Port missing from SNMP cache? - } + } else { + echo("Port Ignored."); + } echo("\n"); }