Files
librenms/html/pages/device/port/graphs.inc.php
T
Adam Amstrong baf538df88 reengineering of port rrdfile. merged ifx (will notify existance of this via database).
****** YOU MUST RUN DISCOVERY OR "php fix-port-rrd.php" AFTER THIS *******



git-svn-id: http://www.observium.org/svn/observer/trunk@1656 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-10 15:54:01 +00:00

31 lines
988 B
PHP

<?php
if(file_exists($config['rrd_dir'] . "/" . $hostname . "/port-". $ifIndex . ".rrd")) {
$iid = $id;
echo("<div class=graphhead>Interface Traffic</div>");
$graph_type = "port_bits";
include("includes/print-interface-graphs.inc.php");
echo("<div class=graphhead>Interface Packets</div>");
$graph_type = "port_upkts";
include("includes/print-interface-graphs.inc.php");
echo("<div class=graphhead>Interface Non Unicast</div>");
$graph_type = "port_nupkts";
include("includes/print-interface-graphs.inc.php");
echo("<div class=graphhead>Interface Errors</div>");
$graph_type = "port_errors";
include("includes/print-interface-graphs.inc.php");
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] . "/etherlike-" . $interface['ifIndex'] . ".rrd")) {
echo("<div class=graphhead>Ethernet Errors</div>");
$graph_type = "port_etherlike";
include("includes/print-interface-graphs.inc.php");
}
}
?>