mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
56 lines
1.8 KiB
PHP
56 lines
1.8 KiB
PHP
<?php
|
|
|
|
if (file_exists($config['rrd_dir'].'/'.$device['hostname'].'/port-'.$port['ifIndex'].'.rrd')) {
|
|
$iid = $id;
|
|
echo '<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Interface Traffic</h3>
|
|
</div>';
|
|
$graph_type = 'port_bits';
|
|
|
|
echo '<div class="panel-body">';
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
echo '</div></div>';
|
|
|
|
echo '<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Interface Packets</h3>
|
|
</div>';
|
|
$graph_type = 'port_upkts';
|
|
|
|
echo '<div class="panel-body">';
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
echo '</div></div>';
|
|
|
|
echo '<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Interface Non Unicast</h3>
|
|
</div>';
|
|
$graph_type = 'port_nupkts';
|
|
echo '<div class="panel-body">';
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
echo '</div></div>';
|
|
|
|
echo '<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Interface Errors</h3>
|
|
</div>';
|
|
$graph_type = 'port_errors';
|
|
|
|
echo '<div class="panel-body">';
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
echo '</div></div>';
|
|
|
|
if (is_file($config['rrd_dir'].'/'.$device['hostname'].'/port-'.$port['ifIndex'].'-dot3.rrd')) {
|
|
echo '<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Ethernet Errors</h3>
|
|
</div>';
|
|
$graph_type = 'port_etherlike';
|
|
|
|
echo '<div class="panel-body">';
|
|
include 'includes/print-interface-graphs.inc.php';
|
|
echo '</div></div>';
|
|
}
|
|
}
|