overview improvements and smoe other fixes

git-svn-id: http://www.observium.org/svn/observer/trunk@2736 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-24 15:45:49 +00:00
parent cfd3e6d12f
commit 98630a84c4
5 changed files with 29 additions and 7 deletions

View File

@@ -16,7 +16,25 @@ foreach($entity_state['group']['c6kxbar'] as $index => $entry)
echo("<tr bgcolor=$row_colour>
<td colspan=5 width=200><strong>".$entity['entPhysicalName']."</strong></td>
<td colspan=2>".$entry['']['cc6kxbarModuleModeSwitchingMode']."</td>
<td colspan=2>");
switch ($entry['']['cc6kxbarModuleModeSwitchingMode'])
{
case "busmode":
# echo '<a title="Modules in this mode don't use fabric. Backplane is used for both lookup and data forwarding.">Bus</a>';
break;
case "crossbarmode":
echo '<a title="Modules in this mode use backplane for forwarding decision and fabric for data forwarding.">Crossbar</a>';
break;
case "dcefmode":
echo '<a title="Modules in this mode use fabric for data forwarding and local forwarding is enabled.">DCEF</a>';
break;
default:
echo $entry['']['cc6kxbarModuleModeSwitchingMode'];
}
echo("</td>
</tr>");
foreach($entity_state['group']['c6kxbar'][$index] as $subindex => $fabric)
@@ -63,7 +81,9 @@ foreach($entity_state['group']['c6kxbar'] as $index => $entry)
echo("<tr bgcolor=$row_colour>
<td width=10></td>
<td width=200><strong>Fabric ".$subindex."</strong></td>
<td><span style='font-weight: bold;' class=".$fabric['mode_class'].">".$fabric['cc6kxbarModuleChannelFabStatus']."</span></td>
<td><span style='font-weight: bold;' class=".$fabric['mode_class'].">".
$fabric['cc6kxbarModuleChannelFabStatus']."</span></td>
<td>".formatRates($fabric['cc6kxbarModuleChannelSpeed']*1000000)."</td>
<td>".overlib_link($link, $minigraph, $overlib_content)."</td>
<td>".print_percentage_bar (125, 20, $percent_in, "Ingress", "ffffff", $background['left'], $percent_in . "%", "ffffff", $background['right'])."</td>

View File

@@ -44,7 +44,7 @@ if (count($sensors))
$graph_array['from'] = $config['time']['day'];
$sensor_minigraph = generate_graph_tag($graph_array);
$sensor['sensor_descr'] = truncate($sensor['sensor_descr'], 25, '');
$sensor['sensor_descr'] = truncate($sensor['sensor_descr'], 48, '');
echo("<tr bgcolor='$row_colour'>
<td class=tablehead style='padding-left:5px;'><strong>".overlib_link($link, $sensor['sensor_descr'], $overlib_content)."</strong></td>
<td width=80 align=right class=tablehead>".overlib_link($link, $sensor_minigraph, $overlib_content)."</td>

View File

@@ -60,9 +60,9 @@ foreach ($ports as $port)
<td width=200 class=list-bold><a href='" . generate_device_url($port) . "'>".$port['hostname']."</a></td>
<td width=150 class=list-bold><a class='".$ifclass."'href='" . generate_port_url($port) . "'>".fixIfName($port['label'])." $error_img</td>
<td width=110 >$speed</td>
<td width=110 class=green>".$port['in_rate']."</td>
<td width=110 class=blue>".$port['out_rate']."</td>
<td width=200>$type</td>
<td width=100 class=green>".$port['in_rate']."</td>
<td width=100 class=blue>".$port['out_rate']."</td>
<td width=150>$type</td>
<td>" . $port['ifAlias'] . "</td>
</tr>\n");