mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@1094 61d68cd4-352d-0410-923a-c4978735b2b8
28 lines
875 B
PHP
28 lines
875 B
PHP
<?php
|
|
|
|
$device_query = mysql_query("select * from devices WHERE `device_id` = '$_GET[id]'");
|
|
while ($device = mysql_fetch_array($device_query))
|
|
{
|
|
$hostname = $device[hostname];
|
|
$bg="#ffffff";
|
|
|
|
echo('<div style="clear: both;">');
|
|
|
|
if ($os_groups[$device['os']]) { $os_group = $os_groups[$device['os']]; }
|
|
|
|
if (is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php")) {
|
|
/// OS Specific
|
|
include($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php");
|
|
} elseif ($os_group && is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$os_group.".inc.php")) {
|
|
/// OS Group Specific
|
|
include($config['install_dir'] . "/html/pages/device/graphs/os-".$os_group.".inc.php");
|
|
} else {
|
|
echo("No graph definitions found for OS " . $device['os'] . "!");
|
|
}
|
|
|
|
echo("</div>");
|
|
}
|
|
|
|
?>
|
|
|