mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 08:02:23 +02:00
add code to remove old entries from ports_stack
git-svn-id: http://www.observium.org/svn/observer/trunk@2469 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -35,6 +35,16 @@ foreach($stack_poll_array as $interface_id_high => $entry_high)
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($stack_db_array AS $interface_id_high => $array)
|
||||
{
|
||||
foreach ($array AS $interface_id_low => $blah)
|
||||
{
|
||||
echo($device['device_id']." ".$interface_id_low." ".$interface_id_high. "\n");
|
||||
dbDelete('ports_stack', "`device_id` = ? AND interface_id_high = ? AND interface_id_low = ?", array($device['device_id'], $interface_id_high, $interface_id_low));
|
||||
echo("-");
|
||||
}
|
||||
}
|
||||
|
||||
echo("\n");
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user