Commit version 24.12.13800
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
@ -7,25 +6,25 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
# $auth= TRUE;
|
||||
$vserver = dbFetchRow("SELECT * FROM `lb_slb_vsvrs` AS WHERE `classmap_id` = ?", array($vars['id']));
|
||||
if (!is_intnum($vars['id'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_numeric($vserver['device_id']) && ($auth || device_permitted($vserver['device_id'])))
|
||||
{
|
||||
$vserver = dbFetchRow("SELECT * FROM `lb_slb_vsvrs` AS WHERE `classmap_id` = ?", [$vars['id']]);
|
||||
|
||||
if (is_numeric($vserver['device_id']) && ($auth || device_permitted($vserver['device_id']))) {
|
||||
$device = device_by_id_cache($vserver['device_id']);
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "vserver-".$vserver['classmap_index'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "vserver-" . $vserver['classmap_index'] . ".rrd");
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: Serverfarm :: " . escape_html($vserver['classmap']);
|
||||
$auth = TRUE;
|
||||
}
|
||||
$auth = TRUE;
|
||||
|
||||
$graph_title = device_name($device, TRUE);
|
||||
$graph_title .= " :: Serverfarm :: " . $vserver['classmap'];
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,15 +5,15 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "ByteCounts";
|
||||
$ds_in = "ByteCounts";
|
||||
$ds_out = "ClientByteCounts";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,15 +5,15 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
@ -27,6 +27,6 @@ $colour_area_max = "FFEE99";
|
||||
$nototal = 1;
|
||||
$unit_text = "Conns";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,26 +5,26 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "PacketCounts";
|
||||
$ds_in = "PacketCounts";
|
||||
$ds_out = "ClientPacketCounts";
|
||||
|
||||
$colour_area_in = $config['colours']['graphs']['pkts']['in_area'];
|
||||
$colour_line_in = $config['colours']['graphs']['pkts']['in_line'];
|
||||
$colour_area_in = $config['colours']['graphs']['pkts']['in_area'];
|
||||
$colour_line_in = $config['colours']['graphs']['pkts']['in_line'];
|
||||
$colour_area_out = $config['colours']['graphs']['pkts']['out_area'];
|
||||
$colour_line_out = $config['colours']['graphs']['pkts']['out_line'];
|
||||
|
||||
$colour_area_in_max = $config['colours']['graphs']['pkts']['in_max'];
|
||||
$colour_area_in_max = $config['colours']['graphs']['pkts']['in_max'];
|
||||
$colour_area_out_max = $config['colours']['graphs']['pkts']['out_max'];
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Packets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user