initial commit; version 22.5.12042
This commit is contained in:
37
html/includes/graphs/lb-pool-member/auth.inc.php
Normal file
37
html/includes/graphs/lb-pool-member/auth.inc.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
$member = dbFetchRow("SELECT * FROM `lb_pool_members` AS I, `devices` AS D WHERE I.member_id = ? AND I.device_id = D.device_id", array($vars['id']));
|
||||
$pool = dbFetchRow("SELECT * FROM `lb_pools` WHERE `pool_name` = ?", array($member['pool_name']));
|
||||
|
||||
if (is_numeric($member['device_id']) && ($auth || device_permitted($member['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($member['device_id']);
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "lb-pool-member-" . $member['member_name']);
|
||||
|
||||
$title_array = array();
|
||||
$title_array[] = array('text' => $device['hostname'], 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'])));
|
||||
$title_array[] = array('text' => 'F5 Pools', 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'loadbalancer', 'type' => 'lb_pools')));
|
||||
$title_array[] = array('text' => $member['pool_name'], 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'loadbalancer', 'type' => 'lb_pools', 'pool' => $pool['pool_id'])));
|
||||
$title_array[] = array('text' => 'Pool Members', 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'loadbalancer', 'type' => 'lb_pools', 'pool' => $pool['pool_id'])));
|
||||
$title_array[] = array('text' => $member['member_name'], 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'loadbalancer', 'type' => 'lb_pools', 'pool' => $pool['pool_id'])));
|
||||
|
||||
$auth = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
19
html/includes/graphs/lb-pool-member/bits.inc.php
Normal file
19
html/includes/graphs/lb-pool-member/bits.inc.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "BytesIn";
|
||||
$ds_out = "BytesOut";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
32
html/includes/graphs/lb-pool-member/conns.inc.php
Normal file
32
html/includes/graphs/lb-pool-member/conns.inc.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$ds = "TotConns";
|
||||
|
||||
$colour_area = "B0C4DE";
|
||||
$colour_line = "191970";
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
|
||||
$nototal = 1;
|
||||
$unit_text = "Conns";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user