initial commit; version 22.5.12042
This commit is contained in:
38
html/includes/graphs/netscalervsvr/auth.inc.php
Normal file
38
html/includes/graphs/netscalervsvr/auth.inc.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?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']))
|
||||
{
|
||||
|
||||
$vsvr = dbFetchRow("SELECT * FROM `netscaler_vservers` AS I, `devices` AS D WHERE I.vsvr_id = ? AND I.device_id = D.device_id", array($vars['id']));
|
||||
|
||||
if (is_numeric($vsvr['device_id']) && ($auth || device_permitted($vsvr['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($vsvr['device_id']);
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-vsvr-".$vsvr['vsvr_name'].".rrd");
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: Netscaler VServer :: " . escape_html($vsvr['vsvr_name']);
|
||||
|
||||
$title_array = array();
|
||||
$title_array[] = array('text' => $device['hostname'], 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'])));
|
||||
$title_array[] = array('text' => 'Netscaler vServer', 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'loadbalancer', 'type' => 'netscaler_vsvr')));
|
||||
$title_array[] = array('text' => $vsvr['vsvr_name'] , 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'loadbalancer', 'type' => 'netscaler_vsvr', 'vsvr' => $vsvr['vsvr_id'])));
|
||||
|
||||
|
||||
$auth = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
19
html/includes/graphs/netscalervsvr/bits.inc.php
Normal file
19
html/includes/graphs/netscalervsvr/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 = "TotalRequestBytes";
|
||||
$ds_out = "TotalResponseBytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
33
html/includes/graphs/netscalervsvr/conns.inc.php
Normal file
33
html/includes/graphs/netscalervsvr/conns.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?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 = "CurClntConnections";
|
||||
$ds_out = "CurSrvrConnections";
|
||||
|
||||
$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_out_max = $config['colours']['graphs']['pkts']['out_max'];
|
||||
|
||||
$in_text = "Client";
|
||||
$out_text = "Server";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Connections";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
34
html/includes/graphs/netscalervsvr/hitmiss.inc.php
Normal file
34
html/includes/graphs/netscalervsvr/hitmiss.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$oids = array('TotMiss' => 'Misses', 'TotHits' => 'Hits');
|
||||
|
||||
$i = 0;
|
||||
|
||||
foreach ($oids as $oid => $descr)
|
||||
{
|
||||
$oid_ds = truncate($oid, 19, '');
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $descr;
|
||||
$rrd_list[$i]['ds'] = $oid_ds;
|
||||
$i++;
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Hit/Miss";
|
||||
$simple_rrd = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
?>
|
30
html/includes/graphs/netscalervsvr/pkts.inc.php
Normal file
30
html/includes/graphs/netscalervsvr/pkts.inc.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?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 = "TotalPktsRecvd";
|
||||
$ds_out = "TotalPktsSent";
|
||||
|
||||
$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_out_max = $config['colours']['graphs']['pkts']['out_max'];
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Packets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
35
html/includes/graphs/netscalervsvr/reqs.inc.php
Normal file
35
html/includes/graphs/netscalervsvr/reqs.inc.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?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 = "TotalRequests";
|
||||
$ds_out = "TotalResponses";
|
||||
|
||||
$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_out_max = $config['colours']['graphs']['pkts']['out_max'];
|
||||
|
||||
$unit_text = "Requests";
|
||||
|
||||
$in_text = "Requests";
|
||||
$out_text = "Responses";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Req/Resp";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user