git-svn-id: http://www.observium.org/svn/observer/trunk@1899 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-17 11:12:32 +00:00
parent 6708b67694
commit 9f24ca4248
5 changed files with 57 additions and 51 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ $query = mysql_query($sql);
while ($device = mysql_fetch_array($query))
{
echo($device['hostname'] . " \n\n");
$oids = snmp_walk($device, "ipAddressIfIndex.ipv6", "-Osq");
$oids = str_replace("ipAddressIfIndex.ipv6.", "", $oids);
$oids = str_replace("\"", "", $oids); $oids = trim($oids);
@@ -134,7 +134,7 @@ while ($link = mysql_fetch_array($link_query))
mysql_query("delete from adjacencies where `adj_id` = '$id'");
echo("Deleting link $id (".$link['cidr']." - ". $link['hostname'] ." - ". $link['ifDescr'] .")\n");
}
unset($remove);
}