mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add tracking for port-stack
git-svn-id: http://www.observium.org/svn/observer/trunk@2185 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -165,6 +165,14 @@ function getifindexbyid($id)
|
||||
return $result;
|
||||
}
|
||||
|
||||
function get_port_by_ifIndex($device, $ifIndex)
|
||||
{
|
||||
$sql = mysql_query("SELECT * FROM `ports` WHERE `device_id` = '".$device['device_id']."' AND `ifIndex` = '$ifIndex'");
|
||||
$result = @mysql_fetch_assoc($sql);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function getifbyid($id)
|
||||
{
|
||||
$sql = mysql_query("SELECT * FROM `ports` WHERE `interface_id` = '$id'");
|
||||
|
Reference in New Issue
Block a user