delete old cef entries, disable cef-discovery (it's in poller, duh!)

git-svn-id: http://www.observium.org/svn/observer/trunk@2740 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-28 11:24:32 +00:00
parent a5e0de9c09
commit 479b932467
3 changed files with 23 additions and 2 deletions
+1
View File
@@ -29,6 +29,7 @@ if (is_array($cefs))
foreach ($paths as $path => $path_name)
{
echo(" | |-".$path.": ".$path_name['cefSwitchingPath']."\n");
$cef_exists[$device['device_id']][$entity][$afi][$path] = 1;
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `cef` WHERE `device_id` = '".$device['device_id']."' AND `entPhysicalIndex` = '".$entity."'
AND `afi` = '".$afi."' AND `cef_index` = '".$path."'"),0) != "1")