mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
other workaround for broken v4 address devices
git-svn-id: http://www.observium.org/svn/observer/trunk@3011 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -13,7 +13,7 @@ foreach (explode("\n", $oids) as $data)
|
||||
$network = $addr->network . "/" . $addr->bitmask;
|
||||
$cidr = $addr->bitmask;
|
||||
|
||||
if (mysql_result(mysql_query("SELECT count(*) FROM `ports` WHERE device_id = '".$device['device_id']."' AND `ifIndex` = '$ifIndex'"), 0) != '0' && $oid != "0.0.0.0")
|
||||
if (mysql_result(mysql_query("SELECT count(*) FROM `ports` WHERE device_id = '".$device['device_id']."' AND `ifIndex` = '$ifIndex'"), 0) != '0' && $oid != "0.0.0.0" && $oid != 'ipAdEntIfIndex')
|
||||
{
|
||||
$i_query = "SELECT interface_id FROM `ports` WHERE device_id = '".$device['device_id']."' AND `ifIndex` = '$ifIndex'";
|
||||
$interface_id = mysql_result(mysql_query($i_query), 0);
|
||||
|
Reference in New Issue
Block a user