mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Cisco ACE support thanks to wez_db
git-svn-id: http://www.observium.org/svn/observer/trunk@2814 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
20
html/includes/graphs/rserver/auth.inc.php
Normal file
20
html/includes/graphs/rserver/auth.inc.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
if (is_numeric($id))
|
||||
{
|
||||
# $auth= TRUE;
|
||||
$rserver = dbFetchRow("SELECT * FROM `loadbalancer_rservers` AS I, `devices` AS D WHERE I.rserver_id = ? AND I.device_id = D.device_id", array($id));
|
||||
|
||||
if (is_numeric($rserver['device_id']) && ($config['allow_unauth_graphs'] || device_permitted($rserver['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($rserver['device_id']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("rserver-".$rserver['rserver_id'].".rrd");
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: Rserver :: " . htmlentities($rserver['farm_id']);
|
||||
$auth = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
40
html/includes/graphs/rserver/curr.inc.php
Executable file
40
html/includes/graphs/rserver/curr.inc.php
Executable file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
##$ds_in = "RserverCurrentConns";
|
||||
##$ds_out = "RserverTotalConns";
|
||||
|
||||
##include("includes/graphs/generic_bytes.inc.php");
|
||||
|
||||
#$ds = "RserverCurrentConns";
|
||||
|
||||
#$colour_area = "B0C4DE";
|
||||
#$colour_line = "191970";
|
||||
|
||||
#$colour_area_max = "FFEE99";
|
||||
|
||||
#$graph_max = 1;
|
||||
|
||||
#$unit_text = "Conns";
|
||||
|
||||
#include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
$graph_max = 1;
|
||||
|
||||
$ds = "RserverCurrentConns";
|
||||
|
||||
$colour_area = "B0C4DE";
|
||||
$colour_line = "191970";
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
|
||||
|
||||
$nototal = 1;
|
||||
$unit_text = "Conns";
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
21
html/includes/graphs/rserver/failed.inc.php
Executable file
21
html/includes/graphs/rserver/failed.inc.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
$graph_max = 1;
|
||||
|
||||
$ds = "RserverCurrentConns";
|
||||
|
||||
$colour_area = "B0C4DE";
|
||||
$colour_line = "191970";
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
|
||||
|
||||
$nototal = 1;
|
||||
$unit_text = "Conns";
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
21
html/includes/graphs/rserver/total.inc.php
Executable file
21
html/includes/graphs/rserver/total.inc.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
$graph_max = 1;
|
||||
|
||||
$ds = "RserverTotalConns";
|
||||
|
||||
$colour_area = "B0C4DE";
|
||||
$colour_line = "191970";
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
|
||||
|
||||
$nototal = 1;
|
||||
$unit_text = "Conns";
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user