diff --git a/html/pages/device/port/graphs.inc.php b/html/pages/device/port/graphs.inc.php new file mode 100644 index 0000000000..fdcb4932dc --- /dev/null +++ b/html/pages/device/port/graphs.inc.php @@ -0,0 +1,30 @@ +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"); + } + } + + +?> diff --git a/html/pages/device/port/junose-atm-vp.inc.php b/html/pages/device/port/junose-atm-vp.inc.php new file mode 100644 index 0000000000..e261aa70db --- /dev/null +++ b/html/pages/device/port/junose-atm-vp.inc.php @@ -0,0 +1,64 @@ +"; + +} + + + echo(""); + + $vps = mysql_query("SELECT * FROM juniAtmVp WHERE interface_id = '".$interface['interface_id']."'"); + while($vp = mysql_fetch_array($vps)) { + echo(''); + echo(''); + echo(''); + + $graph_array['height'] = "150"; + $graph_array['width'] = "150"; + $graph_array['to'] = $now; + $graph_array['id'] = $vp['juniAtmVp_id']; + $graph_array['type'] = "juniAtmVp_".$_GET['optc']; + + + + + if(!$graph_type) { $graph_type = "pagp_bits"; } + + $daily_traffic = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&type=$graph_type&from=$day&to=$now&width=215&height=100"; + $daily_url = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&type=$graph_type&from=$day&to=$now&width=500&height=150"; + + $weekly_traffic = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&type=$graph_type&from=$week&to=$now&width=215&height=100"; + $weekly_url = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&type=$graph_type&from=$week&to=$now&width=500&height=150"; + + $monthly_traffic = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&type=$graph_type&from=$month&to=$now&width=215&height=100"; + $monthly_url = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&type=$graph_type&from=$month&to=$now&width=500&height=150"; + + $yearly_traffic = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&type=$graph_type&from=$year&to=$now&width=215&height=100"; + $yearly_url = $config['base_url'] . "/graph.php?port=" . $interface['interface_id'] . "&type=$graph_type&from=$year&to=$now&width=500&height=150"; + + echo("', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"> + "); + echo("', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"> + "); + echo("', LEFT".$config['overlib_defaults'].", WIDTH, 350);\" onmouseout=\"return nd();\"> + "); + echo("', LEFT".$config['overlib_defaults'].", WIDTH, 350);\" onmouseout=\"return nd();\"> + "); + + + + } + + echo("
VP'.$vp['vp_id'].' '.$vp['vp_descr'].'
"); + +?>