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:
Tom Laermans
2011-10-03 15:03:35 +00:00
parent 40c52955f3
commit 9e12148dd3
3 changed files with 15 additions and 9 deletions

View File

@@ -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)
{