mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
reindent a little
git-svn-id: http://www.observium.org/svn/observer/trunk@2182 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -53,9 +53,10 @@ if (is_file("pages/device/routing/".mres($_GET['opta']).".inc.php"))
|
||||
if (!is_integer($g_i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
echo('<div style="background-color: '.$row_colour.';">');
|
||||
echo('<div style="padding:4px 0px 0px 8px;" class=graphhead>'.$type_text[$type].'</div>');
|
||||
echo('<div style="padding:4px 0px 0px 8px;"><span class=graphhead>'.$type_text[$type].'</span>');
|
||||
include("pages/device/routing/overview/".mres($type).".inc.php");
|
||||
echo('</div>');
|
||||
echo('</div>');
|
||||
} else {
|
||||
$graph_title = $type_text[$type];
|
||||
$graph_type = "device_".$type;
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
<?php
|
||||
echo("<pre>");
|
||||
print_r(mysql_fetch_assoc(mysql_query("SELECT * FROM `ospf_instances` WHERE `device_id` = '".$device['device_id']."'")));
|
||||
echo("</pre>");
|
||||
|
||||
## We are assuming there will only ever be one instance, because OSPF-MIB is retarded.
|
||||
|
||||
$instance = mysql_fetch_assoc(mysql_query("SELECT * FROM `ospf_instances` WHERE `device_id` = '".$device['device_id']."'"));
|
||||
|
||||
$area_count = mysql_result(mysql_query("SELECT COUNT(*) FROM `ospf_areas` WHERE `device_id` = '".$device['device_id']."'"),0);
|
||||
$port_count = mysql_result(mysql_query("SELECT COUNT(*) FROM `ospf_ports` WHERE `device_id` = '".$device['device_id']."'"),0);
|
||||
|
||||
echo("
|
||||
<table width=100%>
|
||||
<tr>
|
||||
<th>Router ID</th>
|
||||
<th>Area Count</th>
|
||||
<th>Port Count</th>
|
||||
<th>Neighbour Count</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".$instance['ospfRouterId']."</td>
|
||||
<td>".$area_count."</td>
|
||||
<td>".$port_count."</td>
|
||||
</tr>
|
||||
</table>
|
||||
");
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user