mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add new overview page
git-svn-id: http://www.observium.org/svn/observer/trunk@110 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
28
html/includes/dev-overview-data.inc.php
Normal file
28
html/includes/dev-overview-data.inc.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?
|
||||
|
||||
echo("<div style='font-family: courier, serif; margin: 10px';><strong>" . $device['sysDescr'] . "</strong></div>");
|
||||
|
||||
$uptime = mysql_result(mysql_query("SELECT `attrib_value` FROM `devices_attribs` WHERE `device_id` = '" . $device['device_id'] . "' AND `attrib_type` = 'uptime'"), 0);
|
||||
|
||||
# if(strtolower($device['os']) == "ios") {
|
||||
echo("
|
||||
<table width=100%>
|
||||
<tr>
|
||||
<td class=list-bold>Operating System</td>
|
||||
<td>" . $device['os'] . " " . $device['version'] . " ( " . $device['features'] . " )</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=list-bold>Hardware</td>
|
||||
<td>" . $device['hardware']. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=list-bold>Uptime</td>
|
||||
<td>" . formatUptime($uptime) . "</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>");
|
||||
|
||||
# }
|
||||
|
||||
?>
|
Reference in New Issue
Block a user