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("
"); include("includes/print-interface.inc.php"); echo("
"); $pos = strpos(strtolower($ifname), "vlan"); if( $pos !== false ) { $broke = yes; } $pos = strpos(strtolower($ifname), "loopback"); if( $pos !== false ) { $broke = yes; } if(mysql_result(mysql_query("SELECT COUNT(*) FROM `interfaces` WHERE `pagpGroupIfIndex` = '".$interface['ifIndex']."' and `device_id` = '".$device['device_id']."'"),0)) { $pagp = " | PAgP"; } echo("
"); print_optionbar_start(); echo ("Graphs | ARP Table$pagp"); if(mysql_result(mysql_query("SELECT count(*) FROM mac_accounting WHERE interface_id = '".$interface['interface_id']."'"),0)){ echo(" | Mac Accounting : Bits (Mini|Top10) | Packets (Mini)"); } print_optionbar_end(); if($_GET['optb']) { include("pages/device/port/".mres($_GET['optb']).".inc.php"); } else { if(file_exists($config['rrd_dir'] . "/" . $hostname . "/". $ifIndex . ".rrd")) { $iid = $id; echo("
Interface Traffic
"); $graph_type = "port_bits"; include("includes/print-interface-graphs.inc.php"); echo("
Interface Packets
"); $graph_type = "port_upkts"; include("includes/print-interface-graphs.inc.php"); echo("
Interface Non Unicast
"); $graph_type = "port_nupkts"; include("includes/print-interface-graphs.inc.php"); echo("
Interface Errors
"); $graph_type = "port_errors"; include("includes/print-interface-graphs.inc.php"); if(is_file($config['rrd_dir'] . "/" . $device['hostname'] . "/etherlike-" . $interface['ifIndex'] . ".rrd")) { echo("
Ethernet Errors
"); $graph_type = "port_etherlike"; include("includes/print-interface-graphs.inc.php"); } } } ?>