2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-04-04 10:15:07 +00:00
|
|
|
|
2007-04-08 14:34:19 +00:00
|
|
|
$device_query = mysql_query("select * from devices WHERE `device_id` = '$_GET[id]'");
|
2010-01-08 00:01:26 +00:00
|
|
|
while ($device = mysql_fetch_array($device_query))
|
|
|
|
{
|
|
|
|
$hostname = $device[hostname];
|
|
|
|
$bg="#ffffff";
|
|
|
|
|
|
|
|
echo('<div style="clear: both;">');
|
|
|
|
|
|
|
|
if (is_file($config['install_dir'] . "/html/pages/device/graphs/os-$os.inc.php")) {
|
|
|
|
include($config['install_dir'] . "/html/pages/device/graphs/os-$os.inc.php");
|
|
|
|
}
|
|
|
|
|
|
|
|
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'] . "!");
|
|
|
|
}
|
|
|
|
|
2010-02-08 00:36:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($memgraph) {
|
|
|
|
echo("<img src=\"$memgraph\"> <img src=\"$memgraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($storagegraph) {
|
2007-04-04 10:15:07 +00:00
|
|
|
echo("$storagegraph");
|
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($loadgraph) {
|
|
|
|
echo("<img src=\"$loadgraph\"> <img src=\"$loadgraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($tempgraph) {
|
|
|
|
echo("<img src=\"$tempgraph\"> <img src=\"$tempgraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($mailsgraph) {
|
|
|
|
echo("<img src=\"$mailsgraph\"> <img src=\"$mailsgraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($mailerrorgraph) {
|
|
|
|
echo("<img src=\"$mailerrorgraph\"> <img src=\"$mailerrorgraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($couriergraph) {
|
|
|
|
echo("<img src=\"$couriergraph\"> <img src=\"$couriergraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($ahitsgraph) {
|
|
|
|
echo("<img src=\"$ahitsgraph\"> <img src=\"$ahitsgraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($abitsgraph) {
|
|
|
|
echo("<img src=\"$abitsgraph\"> <img src=\"$abitsgraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($usersgraph) {
|
|
|
|
echo("<img src=\"$usersgraph\"> <img src=\"$usersgraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($procsgraph) {
|
|
|
|
echo("<img src=\"$procsgraph\"> <img src=\"$procsgraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-01-08 00:01:26 +00:00
|
|
|
if ($uptimegraph) {
|
|
|
|
echo("<img src=\"$uptimegraph\"> <img src=\"$uptimegraphm\">");
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
2010-02-08 00:36:28 +00:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
2007-04-04 10:15:07 +00:00
|
|
|
echo("</div>");
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|