Disabled"; }
if ($interface['ifAdminStatus'] == "up" && $interface['ifOperStatus'] == "down") { $status = "Enabled / Disconnected"; }
if ($interface['ifAdminStatus'] == "up" && $interface['ifOperStatus'] == "up") { $status = "Enabled / Connected"; }
$i = 1;
$inf = fixifName($ifname);
$bg="#ffffff";
$show_all = 1;
echo("
");
if($_GET['optb']) {
include("pages/device/".mres($_GET['optb']).".php");
} else {
if(file_exists("rrd/" . $hostname . "/". $ifIndex . ".rrd")) {
$iid = $id;
echo("
Interface Traffic
");
$graph_type = "bits";
include("includes/print-interface-graphs.php");
echo("
Interface Packets
");
$graph_type = "pkts";
include("includes/print-interface-graphs.php");
echo("
Interface Non Unicast
");
$graph_type = "nupkts";
include("includes/print-interface-graphs.php");
echo("
Interface Errors
");
$graph_type = "errors";
include("includes/print-interface-graphs.php");
}
}
?>