Adam Amstrong 9503ecd473 add ADSL graphs to web interface
git-svn-id: http://www.observium.org/svn/observer/trunk@1406 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-18 08:51:18 +00:00

40 lines
1.1 KiB
PHP

<?php
if(file_exists($config['rrd_dir'] . "/" . $hostname . "/port-". $ifIndex . "-adsl.rrd")) {
$iid = $id;
echo("<div class=graphhead>ADSL Line Speed</div>");
$graph_type = "port_adsl_speed";
include("includes/print-interface-graphs.inc.php");
echo("<div class=graphhead>ADSL Line Attenuation</div>");
$graph_type = "port_adsl_attenuation";
include("includes/print-interface-graphs.inc.php");
echo("<div class=graphhead>ADSL Line SNR Margin</div>");
$graph_type = "port_adsl_snr";
include("includes/print-interface-graphs.inc.php");
echo("<div class=graphhead>ADSL Output Powers</div>");
$graph_type = "port_adsl_power";
include("includes/print-interface-graphs.inc.php");
}
# $graph_array['height'] = "100";
# $graph_array['width'] = "385";
# $graph_array['to'] = $now;
# $graph_array['port'] = $ports['fileserver'];
# $graph_array['type'] = "port_bits";
# $graph_array['from'] = $day;
# $graph_array['legend'] = "no";
# $graph_array['popup_title'] = "Central Fileserver";
# print_graph_popup($graph_array);
?>