Commit version 24.12.13800
This commit is contained in:
@ -4,10 +4,10 @@
|
||||
* Observium Network Management and Monitoring System
|
||||
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage webui
|
||||
* @author Adam Armstrong <adama@observium.org>
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage webui
|
||||
* @author Adam Armstrong <adama@observium.org>
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -15,99 +15,97 @@ echo generate_box_open();
|
||||
|
||||
?>
|
||||
|
||||
<table class="table table-striped table-condensed">
|
||||
<table class="table table-striped table-condensed">
|
||||
|
||||
<?php
|
||||
|
||||
$rrdfile = get_port_rrdfilename($port, NULL, TRUE);
|
||||
|
||||
if (is_file($rrdfile)) {
|
||||
echo('<tr><td>');
|
||||
echo('<h3>Traffic</h3>');
|
||||
$graph_array['type'] = "port_bits";
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
if (is_file(get_port_rrdfilename($port, "ipv6-octets", TRUE))) {
|
||||
echo('<tr><td>');
|
||||
echo("<h3>IPv6 Traffic</h3>");
|
||||
$graph_array['type'] = "port_ipv6_bits";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
}
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Unicast Packets</h3>");
|
||||
$graph_array['type'] = "port_upkts";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Non Unicast Packets</h3>");
|
||||
$graph_array['type'] = "port_nupkts";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Average Packet Size</h3>");
|
||||
$graph_array['type'] = "port_pktsize";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Percent Utilisation</h3>");
|
||||
$graph_array['type'] = "port_percent";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Errors</h3>");
|
||||
$graph_array['type'] = "port_errors";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Discards</h3>");
|
||||
$graph_array['type'] = "port_discards";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
if (is_file(get_port_rrdfilename($port, "dot3", TRUE))) {
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Ethernet Errors</h3>");
|
||||
$graph_array['type'] = "port_etherlike";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
}
|
||||
|
||||
if (is_file(get_port_rrdfilename($port, "fdbcount", TRUE))) {
|
||||
echo('<tr><td>');
|
||||
echo("<h3>FDB Count</h3>");
|
||||
$graph_array['type'] = "port_fdb_count";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
}
|
||||
} else {
|
||||
print_error("The port's RRD database file '" . $rrdfile . "' doesn't exist.");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</table>
|
||||
<?php
|
||||
|
||||
$rrdfile = get_port_rrdfilename($port, NULL, TRUE);
|
||||
|
||||
if (is_file($rrdfile))
|
||||
{
|
||||
echo('<tr><td>');
|
||||
echo('<h3>Traffic</h3>');
|
||||
$graph_array['type'] = "port_bits";
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
if (is_file(get_port_rrdfilename($port, "ipv6-octets", TRUE)))
|
||||
{
|
||||
echo('<tr><td>');
|
||||
echo("<h3>IPv6 Traffic</h3>");
|
||||
$graph_array['type'] = "port_ipv6_bits";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
}
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Unicast Packets</h3>");
|
||||
$graph_array['type'] = "port_upkts";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Non Unicast Packets</h3>");
|
||||
$graph_array['type'] = "port_nupkts";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Average Packet Size</h3>");
|
||||
$graph_array['type'] = "port_pktsize";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Percent Utilisation</h3>");
|
||||
$graph_array['type'] = "port_percent";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Errors</h3>");
|
||||
$graph_array['type'] = "port_errors";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Discards</h3>");
|
||||
$graph_array['type'] = "port_discards";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
if (is_file(get_port_rrdfilename($port, "dot3", TRUE)))
|
||||
{
|
||||
echo('<tr><td>');
|
||||
echo("<h3>Ethernet Errors</h3>");
|
||||
$graph_array['type'] = "port_etherlike";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
|
||||
}
|
||||
|
||||
if (is_file(get_port_rrdfilename($port, "fdbcount", TRUE)))
|
||||
{
|
||||
echo('<tr><td>');
|
||||
echo("<h3>FDB Count</h3>");
|
||||
$graph_array['type'] = "port_fdb_count";
|
||||
|
||||
print_graph_row_port($graph_array, $port);
|
||||
echo('</td></tr>');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</table>
|
||||
<?php
|
||||
|
||||
echo generate_box_close();
|
||||
echo generate_box_close();
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user