mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
save some more sql queries, remove automatic syslog refresh
git-svn-id: http://www.observium.org/svn/observer/trunk@2641 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -120,6 +120,13 @@ function get_port_by_ifIndex($device_id, $ifIndex)
|
||||
return dbFetchRow("SELECT * FROM `ports` WHERE `device_id` = ? AND `ifIndex` = ?", array($device_id, $ifIndex));
|
||||
}
|
||||
|
||||
function get_all_devices($device, $type = "")
|
||||
{
|
||||
global $cache;
|
||||
|
||||
# FIXME respect $type (server, network, etc) -- needs an array fill in topnav.
|
||||
return array_keys($cache['devices']['hostname']);
|
||||
}
|
||||
|
||||
function port_by_id_cache($port_id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user