2010-03-14 15:21:55 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if (file_exists($config['rrd_dir'].'/'.$device['hostname'].'/port-'.$port['ifIndex'].'.rrd')) {
|
|
|
|
$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>';
|
2015-07-10 13:36:21 +02:00
|
|
|
$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">';
|
|
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
|
|
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>';
|
2015-07-10 13:36:21 +02:00
|
|
|
$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">';
|
|
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
|
|
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>';
|
2015-07-10 13:36:21 +02:00
|
|
|
$graph_type = 'port_nupkts';
|
2015-09-21 01:30:23 +05:30
|
|
|
echo '<div class="panel-body">';
|
|
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
|
|
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>';
|
2015-07-10 13:36:21 +02:00
|
|
|
$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">';
|
|
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
|
|
echo '</div></div>';
|
2011-03-16 23:10:10 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if (is_file($config['rrd_dir'].'/'.$device['hostname'].'/port-'.$port['ifIndex'].'-dot3.rrd')) {
|
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>';
|
2015-07-10 13:36:21 +02:00
|
|
|
$graph_type = 'port_etherlike';
|
2015-09-21 01:30:23 +05:30
|
|
|
|
|
|
|
echo '<div class="panel-body">';
|
|
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
|
|
echo '</div></div>';
|
2015-07-10 13:36:21 +02:00
|
|
|
}
|
2011-03-16 23:10:10 +00:00
|
|
|
}
|