mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-31 16:23:50 +02:00
Updates
git-svn-id: http://www.observium.org/svn/observer/trunk@501 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user