mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user