git-svn-id: http://www.observium.org/svn/observer/trunk@501 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-11-03 20:03:26 +00:00
parent 5a6b6dcf3e
commit e55c2286f1
7 changed files with 14 additions and 16 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
<?php
if($_GET['if']) { $interfaces = $_GET['if']; }
if($_GET['port']) { $interfaces = $_GET['port']; }
if($_GET['interfaces']) { $interfaces = $_GET['interfaces']; }
$i = 1;
foreach(explode(",", $interfaces) as $ifid) {
$query = mysql_query("SELECT `ifIndex`, `hostname` FROM `interfaces` AS I, devices as D WHERE I.interface_id = '" . $ifid . "' AND I.device_id = D.device_id");
+1 -1
View File
@@ -144,7 +144,7 @@ while($device = mysql_fetch_array($device_query)) {
$graph_type = "device_users"; include ("includes/print-device-graph.php");
echo("<br />");
echo("<div class=graphhead>Running Processes</div>");
$graph_type = "device_procs"; include ("includes/print-device-graph.php");
$graph_type = "device_processes"; include ("includes/print-device-graph.php");
echo("<br />");
break;
+1 -1
View File
@@ -51,7 +51,7 @@ echo("<table cellpadding=7 cellspacing=0 class=devicetable width=100%>");
if(file_exists($config['rrd_dir'] . "/" . $interface['hostname'] . "/" . $interface['ifIndex'] . ".rrd")) {
$graph_type = "bits";
$graph_type = "port_bits";
include("includes/print-interface-graphs.inc.php");
}