mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
graphing system updates
git-svn-id: http://www.observium.org/svn/observer/trunk@1599 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -2,12 +2,7 @@
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$query = mysql_query("SELECT * FROM `applications` AS A, `devices` AS D WHERE A.app_id = '".mres($_GET['id'])."'
|
||||
AND A.device_id = D.device_id");
|
||||
|
||||
$app = mysql_fetch_array($query);
|
||||
|
||||
$apache_rrd = $config['rrd_dir'] . "/" . $app['hostname'] . "/app-apache-".$app['app_id'].".rrd";
|
||||
$apache_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-apache-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($apache_rrd)) {
|
||||
$rrd_filename = $apache_rrd;
|
||||
|
@@ -2,12 +2,7 @@
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$query = mysql_query("SELECT * FROM `applications` AS A, `devices` AS D WHERE A.app_id = '".mres($_GET['id'])."'
|
||||
AND A.device_id = D.device_id");
|
||||
|
||||
$app = mysql_fetch_array($query);
|
||||
|
||||
$apache_rrd = $config['rrd_dir'] . "/" . $app['hostname'] . "/app-apache-".$app['app_id'].".rrd";
|
||||
$apache_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-apache-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($apache_rrd)) {
|
||||
$rrd_filename = $apache_rrd;
|
||||
|
@@ -2,12 +2,7 @@
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$query = mysql_query("SELECT * FROM `applications` AS A, `devices` AS D WHERE A.app_id = '".mres($_GET['id'])."'
|
||||
AND A.device_id = D.device_id");
|
||||
|
||||
$app = mysql_fetch_array($query);
|
||||
|
||||
$apache_rrd = $config['rrd_dir'] . "/" . $app['hostname'] . "/app-apache-".$app['app_id'].".rrd";
|
||||
$apache_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-apache-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($apache_rrd)) {
|
||||
$rrd_filename = $apache_rrd;
|
||||
|
@@ -2,12 +2,7 @@
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$query = mysql_query("SELECT * FROM `applications` AS A, `devices` AS D WHERE A.app_id = '".mres($_GET['id'])."'
|
||||
AND A.device_id = D.device_id");
|
||||
|
||||
$app = mysql_fetch_array($query);
|
||||
|
||||
$apache_rrd = $config['rrd_dir'] . "/" . $app['hostname'] . "/app-apache-".$app['app_id'].".rrd";
|
||||
$apache_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-apache-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($apache_rrd)) {
|
||||
$rrd_filename = $apache_rrd;
|
||||
|
12
html/includes/graphs/application/auth.inc.php
Normal file
12
html/includes/graphs/application/auth.inc.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?
|
||||
|
||||
if(is_numeric($id) && application_permitted($id))
|
||||
{
|
||||
$app = get_application_by_id($id);
|
||||
$device = device_by_id_cache($app['device_id']);
|
||||
$title = generatedevicelink($device);
|
||||
$title .= $graph_subtype;
|
||||
$auth = TRUE;
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user