git-svn-id: http://www.observium.org/svn/observer/trunk@428 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-05-11 13:43:59 +00:00
parent cf1e2830cf
commit 67fc89c6e7
22 changed files with 395 additions and 106 deletions
+23 -14
View File
@@ -48,25 +48,34 @@ if( !$broke)
echo("<div style='clear: both;'>");
if(file_exists("rrd/" . $hostname . "/". $ifIndex . ".rrd")) {
if($_GET['optb']) {
$iid = $id;
echo("<div class=graphhead>Interface Traffic</div>");
$graph_type = "bits";
include("includes/print-interface-graphs.php");
include("pages/device/".mres($_GET['optb']).".php");
echo("<div class=graphhead>Interface Packets</div>");
$graph_type = "pkts";
include("includes/print-interface-graphs.php");
} else {
echo("<div class=graphhead>Interface Non Unicast</div>");
$graph_type = "nupkts";
include("includes/print-interface-graphs.php");
if(file_exists("rrd/" . $hostname . "/". $ifIndex . ".rrd")) {
echo("<div class=graphhead>Interface Errors</div>");
$graph_type = "errors";
include("includes/print-interface-graphs.php");
$iid = $id;
echo("<div class=graphhead>Interface Traffic</div>");
$graph_type = "bits";
include("includes/print-interface-graphs.php");
echo("<div class=graphhead>Interface Packets</div>");
$graph_type = "pkts";
include("includes/print-interface-graphs.php");
echo("<div class=graphhead>Interface Non Unicast</div>");
$graph_type = "nupkts";
include("includes/print-interface-graphs.php");
echo("<div class=graphhead>Interface Errors</div>");
$graph_type = "errors";
include("includes/print-interface-graphs.php");
}
}
?>