do not update database/rrd for ports which are set ignored (maybe we want to update db?)

git-svn-id: http://www.observium.org/svn/observer/trunk@1187 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-06-15 22:44:34 +00:00
parent 9d4ab647ef
commit 8762cfa441

View File

@@ -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");
}