Files

86 lines
2.9 KiB
PHP
Raw Permalink Normal View History

2010-03-14 15:21:55 +00:00
<?php
if (rrdtool_check_rrd_exists(get_port_rrdfile_path($device['hostname'], $port['port_id']))) {
$iid = $id;
2015-09-21 01:30:23 +05:30
echo '<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Interface Traffic</h3>
</div>';
$graph_type = 'port_bits';
2012-04-06 13:56:23 +00:00
2015-09-21 01:30:23 +05:30
echo '<div class="panel-body">';
2019-04-11 23:26:42 -05:00
include 'includes/html/print-interface-graphs.inc.php';
2015-09-21 01:30:23 +05:30
echo '</div></div>';
2011-03-16 23:10:10 +00:00
2015-09-21 01:30:23 +05:30
echo '<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Interface Packets</h3>
</div>';
$graph_type = 'port_upkts';
2012-04-06 13:56:23 +00:00
2015-09-21 01:30:23 +05:30
echo '<div class="panel-body">';
2019-04-11 23:26:42 -05:00
include 'includes/html/print-interface-graphs.inc.php';
2015-09-21 01:30:23 +05:30
echo '</div></div>';
2011-03-16 23:10:10 +00:00
2015-09-21 01:30:23 +05:30
echo '<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Interface Non Unicast</h3>
</div>';
$graph_type = 'port_nupkts';
2015-09-21 01:30:23 +05:30
echo '<div class="panel-body">';
2019-04-11 23:26:42 -05:00
include 'includes/html/print-interface-graphs.inc.php';
2015-09-21 01:30:23 +05:30
echo '</div></div>';
2012-04-06 13:56:23 +00:00
2015-09-21 01:30:23 +05:30
echo '<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Interface Errors</h3>
</div>';
$graph_type = 'port_errors';
2012-04-06 13:56:23 +00:00
2015-09-21 01:30:23 +05:30
echo '<div class="panel-body">';
2019-04-11 23:26:42 -05:00
include 'includes/html/print-interface-graphs.inc.php';
2015-09-21 01:30:23 +05:30
echo '</div></div>';
2011-03-16 23:10:10 +00:00
if (rrdtool_check_rrd_exists(get_port_rrdfile_path($device['hostname'], $port['port_id'], 'poe'))) {
echo '<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">PoE</h3>
</div>';
$graph_type = 'port_poe';
echo '<div class="panel-body">';
2019-04-11 23:26:42 -05:00
include 'includes/html/print-interface-graphs.inc.php';
echo '</div></div>';
}
if (rrdtool_check_rrd_exists(get_port_rrdfile_path($device['hostname'], $port['port_id'], 'dot3'))) {
2015-09-21 01:30:23 +05:30
echo '<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Ethernet Errors</h3>
</div>';
$graph_type = 'port_etherlike';
2015-09-21 01:30:23 +05:30
echo '<div class="panel-body">';
2019-04-11 23:26:42 -05:00
include 'includes/html/print-interface-graphs.inc.php';
2015-09-21 01:30:23 +05:30
echo '</div></div>';
}
/*
* CISCO-IF-EXTENSION MIB statistics
* Additional information about input and output errors as seen in `show interface` output.
*/
if (rrdtool_check_rrd_exists(get_port_rrdfile_path($device['hostname'], $port['port_id'], 'cie'))) {
echo '<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Detailed interface errors</h3>
</div>';
$graph_type = 'port_cie';
echo '<div class="panel-body">';
include 'includes/html/print-interface-graphs.inc.php';
echo '</div></div>';
}
2011-03-16 23:10:10 +00:00
}