mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02: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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Executable
+40
@@ -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");
|
||||
|
||||
?>
|
||||
Executable
+21
@@ -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");
|
||||
|
||||
?>
|
||||
Executable
+21
@@ -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");
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
if (is_numeric($id))
|
||||
{
|
||||
# $auth= TRUE;
|
||||
$vserver = dbFetchRow("SELECT * FROM `loadbalancer_vservers` AS I, `devices` AS D WHERE I.classmap_id = ? AND I.device_id = D.device_id", array($id));
|
||||
|
||||
if (is_numeric($vserver['device_id']) && ($config['allow_unauth_graphs'] || device_permitted($vserver['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($vserver['device_id']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("vserver-".$vserver['classmap_id'].".rrd");
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: Serverfarm :: " . htmlentities($vserver['classmap_id']);
|
||||
$auth = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
#include("includes/graphs/common.inc.php");
|
||||
|
||||
|
||||
$ds_in = "ByteCounts";
|
||||
$ds_out = "ClientByteCounts";
|
||||
|
||||
include("includes/graphs/generic_bytes.inc.php");
|
||||
#include("includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
$graph_max = 1;
|
||||
|
||||
$ds = "NumberOfConnections";
|
||||
|
||||
$colour_area = "B0C4DE";
|
||||
$colour_line = "191970";
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
|
||||
|
||||
$nototal = 1;
|
||||
$unit_text = "Conns";
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
$ds_in = "PacketCounts";
|
||||
$ds_out = "ClientPacketCounts";
|
||||
|
||||
$colour_area_in = "AA66AA";
|
||||
$colour_line_in = "330033";
|
||||
$colour_area_out = "FFDD88";
|
||||
$colour_line_out = "FF6600";
|
||||
|
||||
$colour_area_in_max = "cc88cc";
|
||||
$colour_area_out_max = "FFefaa";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Packets";
|
||||
|
||||
include("includes/graphs/generic_duplex.inc.php");
|
||||
?>
|
||||
Reference in New Issue
Block a user