mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-31 16:23:50 +02:00
fixes to layout. fix netstats icmp/snmp poller (specify mib name)
git-svn-id: http://www.observium.org/svn/observer/trunk@2444 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
echo("<span style='font-weight: bold;'>Apps</span> » ");
|
||||
|
||||
unset($sep);
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `applications` WHERE `device_id` = ?", array($device['device_id'])) as $app)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php print_optionbar_start();
|
||||
|
||||
echo("<span style='font-weight: bold;'>Services</span> » ");
|
||||
|
||||
$menu_options = array('basic' => 'Basic',
|
||||
'details' => 'Details');
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ if ($_POST['deleted'] || $_GET['type'] == "deleted") { $where .= " AND I.deleted
|
||||
|
||||
$query = "SELECT * FROM `ports` AS I, `devices` AS D WHERE I.device_id = D.device_id ".$where." ORDER BY D.hostname, I.ifIndex";
|
||||
|
||||
echo("<tr class=tablehead><td></td><th>Device</a></th><th>Interface</th><th>Speed</th><th>Media</th><th>Description</th></tr>");
|
||||
echo("<tr class=tablehead><td></td><th>Device</a></th><th>Interface</th><th>Speed</th><th>Down</th><th>Up</th><th>Media</th><th>Description</th></tr>");
|
||||
|
||||
$row = 1;
|
||||
|
||||
@@ -150,6 +150,10 @@ foreach (dbFetchRows($query, $param) as $interface)
|
||||
$speed = humanspeed($interface['ifSpeed']);
|
||||
$type = humanmedia($interface['ifType']);
|
||||
|
||||
$interface['in_rate'] = formatRates($interface['ifInOctets_rate'] * 8);
|
||||
$interface['out_rate'] = formatRates($interface['ifOutOctets_rate'] * 8);
|
||||
|
||||
|
||||
if ($interface['in_errors'] > 0 || $interface['out_errors'] > 0)
|
||||
{
|
||||
$error_img = generate_port_link($interface,"<img src='images/16/chart_curve_error.png' alt='Interface Errors' border=0>",errors);
|
||||
@@ -163,6 +167,8 @@ foreach (dbFetchRows($query, $param) as $interface)
|
||||
<td width=200 class=list-bold>" . generate_device_link($interface) . "</td>
|
||||
<td width=150 class=list-bold>" . generate_port_link($interface) . " $error_img</td>
|
||||
<td width=110 >$speed</td>
|
||||
<td width=110 class=green>".$interface['in_rate']."</td>
|
||||
<td width=110 class=blue>".$interface['out_rate']."</td>
|
||||
<td width=200>$type</td>
|
||||
<td>" . $interface['ifAlias'] . "</td>
|
||||
</tr>\n");
|
||||
|
||||
Reference in New Issue
Block a user