2010-03-14 15:21:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
2010-08-10 15:54:01 +00:00
|
|
|
if(file_exists($config['rrd_dir'] . "/" . $hostname . "/port-". $ifIndex . ".rrd")) {
|
2010-03-14 15:21:55 +00:00
|
|
|
|
|
|
|
|
$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");
|
|
|
|
|
|
2010-08-12 12:51:59 +00:00
|
|
|
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] . "/port-" . $interface['ifIndex'] . "-dot3.rrd")) {
|
2010-03-14 15:21:55 +00:00
|
|
|
echo("<div class=graphhead>Ethernet Errors</div>");
|
|
|
|
|
$graph_type = "port_etherlike";
|
|
|
|
|
include("includes/print-interface-graphs.inc.php");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|