fix service graphs, add CISCO-PRODUCT-MIB

git-svn-id: http://www.observium.org/svn/observer/trunk@1655 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-08-10 12:16:00 +00:00
parent a69d2936ca
commit 8297e6aa5e
6 changed files with 1144 additions and 16 deletions

View File

@@ -0,0 +1,20 @@
<?
if(is_numeric($id))
{
$service = mysql_fetch_assoc(mysql_query("SELECT * FROM services WHERE service_id = '".mres($id)."'"));
if(is_numeric($service['device_id']) && device_permitted($service['device_id']))
{
$device = device_by_id_cache($service['device_id']);
### This doesn't quite work for all yet.
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("service-" . $service['service_type'] . "-" . $service['service_id'] . ".rrd");
$title = generate_device_link($device);
$title .= " :: Service :: " . htmlentities($service['service_type']);
$auth = TRUE;
}
}
?>