add ADSL graphs to web interface

git-svn-id: http://www.observium.org/svn/observer/trunk@1406 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-18 08:51:18 +00:00
parent fd40717a8c
commit 9503ecd473
7 changed files with 197 additions and 3 deletions
+2 -1
View File
@@ -84,6 +84,7 @@ echo ("<a href='".$config['base_url']."/device/" . $device['device_id'] . "/inte
print_optionbar_end();
echo("<div style='margin: 5px;'>");
include("pages/device/port/".mres($_GET['optb']).".inc.php");
echo("</div>");
?>
+39
View File
@@ -0,0 +1,39 @@
<?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);
?>