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@626 61d68cd4-352d-0410-923a-c4978735b2b8
56 lines
2.0 KiB
PHP
56 lines
2.0 KiB
PHP
<?php // vim:fenc=utf-8:filetype=php:ts=4
|
|
|
|
echo("<div style='margin:auto; text-align: center; margin-top: 0px; margin-bottom: 10px;'>
|
|
<b class='rounded'>
|
|
<b class='rounded1'></b>
|
|
<b class='rounded2'></b>
|
|
<b class='rounded3'></b>
|
|
<b class='rounded4'></b>
|
|
<b class='rounded5'></b></b>
|
|
<div class='roundedfg' style='padding: 0px 5px;'>
|
|
<div style='margin: auto; text-align: left; padding: 2px 5px; padding-left: 11px; clear: both; display:block; height:20px;'>
|
|
");
|
|
|
|
unset ($sep);
|
|
$query = mysql_query("SELECT `entSensorType` FROM `entPhysical` WHERE device_id = '".$device['device_id']."' AND entSensorType != '' AND entSensorType NOT LIKE 'No%' GROUP BY `entSensorType` ORDER BY `entSensorType`");
|
|
while($data = mysql_fetch_array($query)) {
|
|
$type = $data['entSensorType'];
|
|
if(!$_GET['opta']) { $_GET['opta'] = $type; }
|
|
echo($sep);
|
|
if($_GET['opta'] == $type) { echo("<strong>"); }
|
|
echo("<a href='".$config['base_url']."/device/" . $device['device_id'] . "/ciscosensors/" . $type . "/'>" . htmlspecialchars($type) ."</a>\n");
|
|
if($_GET['opta'] == $type) { echo("</strong>"); }
|
|
$sep = ' | ';
|
|
}
|
|
unset ($sep);
|
|
echo("</div>
|
|
</div>
|
|
<b class='rounded'>
|
|
<b class='rounded5'></b>
|
|
<b class='rounded4'></b>
|
|
<b class='rounded3'></b>
|
|
<b class='rounded2'></b>
|
|
<b class='rounded1'></b></b>
|
|
</div>
|
|
");
|
|
|
|
$query = mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$device['device_id']."' and entSensorType = '".$_GET['opta']."' ORDER BY `entPhysicalName`");
|
|
while($data = mysql_fetch_array($query)) {
|
|
|
|
if($data['entSensorMeasuredEntity']) {
|
|
$measured = mysql_fetch_array(mysql_query("SELECT * FROM entPhysical WHERE device_id = '".$device['device_id']."' AND entPhysicalIndex = '".$data['entSensorMeasuredEntity']."'"));
|
|
}
|
|
|
|
echo("<div><h3>".$measured['entPhysicalName']." ".$data['entPhysicalName']."</h3>");
|
|
$graph_type = "cisco_entity_sensor";
|
|
$args = "&a=".$data['entPhysical_id'];
|
|
|
|
include("includes/print-device-graph.php");
|
|
|
|
echo("</div>");
|
|
|
|
|
|
}
|
|
|
|
?>
|