Commit version 24.12.13800
This commit is contained in:
@ -5,19 +5,17 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp-mib_misc.rrd");
|
||||
|
||||
$ds_in = "DiskReadBytes";
|
||||
$ds_in = "DiskReadBytes";
|
||||
$ds_out = "DiskWriteBytes";
|
||||
|
||||
$format = "octets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
@ -5,17 +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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp-mib_misc.rrd");
|
||||
|
||||
$ds_in = "NetRcvdBytes";
|
||||
$ds_in = "NetRcvdBytes";
|
||||
$ds_out = "NetSentBytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
@ -5,19 +5,17 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp-mib_misc.rrd");
|
||||
|
||||
$ds_in = "TapeReadBytes";
|
||||
$ds_in = "TapeReadBytes";
|
||||
$ds_out = "TapeWriteBytes";
|
||||
|
||||
$format = "octets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
@ -4,12 +4,12 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
*
|
||||
* @author Jens Brueckner <Discord: JTC#3678>
|
||||
* @copyright 'aruba-cppm.inc.php' (C) 2022 Jens Brueckner
|
||||
* @copyright 'Observium' (C) 2006-2013 Adam Armstrong, (C) 2013-2022 Observium Limited
|
||||
* @author Jens Brueckner <Discord: JTC#3678>
|
||||
* @copyright 'aruba-cppm.inc.php' (C) 2022 Jens Brueckner
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -17,26 +17,26 @@
|
||||
$rrd_filename = get_rrd_path($device, "graphs-aruba-cppm-mib-radiusServerTable-0.rrd");
|
||||
|
||||
// define variables
|
||||
$i=0;
|
||||
$i = 0;
|
||||
|
||||
// foreach the rrd data field
|
||||
foreach (array('radAuthRequestTime', 'radPolicyEvalTime') as $timeStat) {
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $timeStat;
|
||||
$rrd_list[$i]['ds'] = $timeStat;
|
||||
$rrd_list[$i]['area'] = 1;
|
||||
foreach (['radAuthRequestTime', 'radPolicyEvalTime'] as $timeStat) {
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $timeStat;
|
||||
$rrd_list[$i]['ds'] = $timeStat;
|
||||
$rrd_list[$i]['area'] = 1;
|
||||
}
|
||||
|
||||
// graph look
|
||||
$unit_text = 'Milliseconds';
|
||||
$units = 'ms';
|
||||
$unit_text = 'Milliseconds';
|
||||
$units = 'ms';
|
||||
$total_units = 'ms';
|
||||
$colours ='mixed';
|
||||
$nototal = 1;
|
||||
$scale_min = "0";
|
||||
$simple_rrd = TRUE;
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$scale_min = "0";
|
||||
$simple_rrd = TRUE;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -5,22 +5,22 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "aruba-controller.rrd");
|
||||
|
||||
$ds = "NUMAPS";
|
||||
$colour_line = "8C0000";
|
||||
$colour_area = "EBCD8B";
|
||||
$ds = "NUMAPS";
|
||||
$colour_line = "8C0000";
|
||||
$colour_area = "EBCD8B";
|
||||
$colour_area_max = "cc9999";
|
||||
$unit_text = "APs";
|
||||
$line_text = 'Active APs';
|
||||
$scale_min = 0;
|
||||
$unit_text = "APs";
|
||||
$line_text = 'Active APs';
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "aruba-controller.rrd");
|
||||
|
||||
$ds = "NUMCLIENTS";
|
||||
$ds = "NUMCLIENTS";
|
||||
$colour_line = "008C00";
|
||||
$colour_area = "CDEB8B";
|
||||
//$colour_area_max = "cc9999";
|
||||
@ -21,6 +21,6 @@ $unit_text = "Clients";
|
||||
$line_text = 'Clients';
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "asyncos_workq.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$ds = "DEPTH";
|
||||
|
||||
@ -24,6 +24,6 @@ $colour_area_max = "9999cc";
|
||||
|
||||
$unit_text = "Messages";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
@ -7,15 +6,13 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
if ($auth || device_permitted($device['device_id']))
|
||||
{
|
||||
$title = generate_device_link($device);
|
||||
$graph_title = $device['hostname'];
|
||||
$auth = TRUE; ///FIXME. Who? --mike
|
||||
if ($auth || device_permitted($device['device_id'])) {
|
||||
$graph_title = device_name($device, TRUE);
|
||||
$auth = TRUE; ///FIXME. Who? --mike
|
||||
}
|
||||
|
||||
//EOL
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
@ -7,7 +6,7 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -16,7 +15,7 @@ $scale_max = "1";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "status.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' '";
|
||||
$rrd_options .= " COMMENT:'Current'";
|
||||
|
@ -4,9 +4,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -17,46 +17,62 @@ $ds_out = "OUTOCTETS";
|
||||
|
||||
$graph_return['descr'] = 'Device total traffic in bits/sec.';
|
||||
|
||||
$filtered_ports = [];
|
||||
$unfiltered_ports = [];
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ? AND `deleted` != ? ORDER BY (ifInOctets_rate + ifOutOctets_rate) DESC", [$device['device_id'], '1']) as $port) {
|
||||
$debug_msg = '[Port (id=' . $port['port_id'] . ', ifIndex=' . $port['ifIndex'] . ') ignored by ';
|
||||
$filtered = false;
|
||||
|
||||
if (is_array($config['device_traffic_iftype'])) {
|
||||
foreach ($config['device_traffic_iftype'] as $iftype) {
|
||||
if (preg_match($iftype . "i", $port['ifType'])) {
|
||||
print_debug($debug_msg . 'ifType=' . $port['ifType'] . ']');
|
||||
$filtered = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$filtered && !$config['os'][$device['os']]['ports_unignore_descr'] && is_array($config['device_traffic_descr'])) {
|
||||
foreach ($config['device_traffic_descr'] as $ifdescr) {
|
||||
if (preg_match($ifdescr . "i", $port['ifDescr']) ||
|
||||
preg_match($ifdescr . "i", $port['ifName']) ||
|
||||
preg_match($ifdescr . "i", $port['port_label'])) {
|
||||
print_debug($debug_msg . 'ifDescr=' . $port['ifDescr'] . ' or ifName=' . $port['ifName'] . ' or port_label=' . $port['port_label'] . ']');
|
||||
$filtered = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($filtered) {
|
||||
$filtered_ports[] = $port;
|
||||
} else {
|
||||
$unfiltered_ports[] = $port;
|
||||
}
|
||||
}
|
||||
|
||||
$ports_to_use = empty($unfiltered_ports) ? $filtered_ports : $unfiltered_ports;
|
||||
|
||||
|
||||
// init
|
||||
$i = 0;
|
||||
$rrd_list = [];
|
||||
$i = 0;
|
||||
$rrd_list = [];
|
||||
$rrd_filenames = [];
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ? AND `deleted` != ? ORDER BY (ifInOctets_rate + ifOutOctets_rate) DESC", [ $device['device_id'], '1' ]) as $port) {
|
||||
$debug_msg = '[Port (id=' . $port['port_id'] . ', ifIndex=' . $port['ifIndex'] . ') ignored by ';
|
||||
foreach ($ports_to_use as $port) {
|
||||
$rrd_filename = get_port_rrdfilename($port, NULL, TRUE);
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_filenames[] = $rrd_filename;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $port['port_label_short'];
|
||||
$rrd_list[$i]['descr_in'] = $port['port_label_short'];
|
||||
$rrd_list[$i]['descr_out'] = $port['ifAlias'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
|
||||
if (is_array($config['device_traffic_iftype'])) {
|
||||
foreach ($config['device_traffic_iftype'] as $iftype) {
|
||||
if (preg_match($iftype ."i", $port['ifType'])) {
|
||||
print_debug($debug_msg . 'ifType=' . $port['ifType'] . ']');
|
||||
continue 2;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
if (!$config['os'][$device['os']]['ports_unignore_descr'] && is_array($config['device_traffic_descr'])) {
|
||||
foreach ($config['device_traffic_descr'] as $ifdescr) {
|
||||
if (preg_match($ifdescr."i", $port['ifDescr']) ||
|
||||
preg_match($ifdescr."i", $port['ifName']) ||
|
||||
preg_match($ifdescr."i", $port['port_label'])) {
|
||||
print_debug($debug_msg . 'ifDescr=' . $port['ifDescr'] . ' or ifName=' . $port['ifName'] . ' or port_label=' . $port['port_label'] . ']');
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$rrd_filename = get_port_rrdfilename($port, NULL, TRUE);
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_filenames[] = $rrd_filename;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $port['port_label_short'];
|
||||
$rrd_list[$i]['descr_in'] = $port['port_label_short'];
|
||||
$rrd_list[$i]['descr_out'] = $port['ifAlias'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$units = 'b';
|
||||
|
@ -5,39 +5,39 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$file = get_rrd_path($device, "bluecoat-sg-proxy-mib_sgproxyhttpperf.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $file;
|
||||
$rrd_list[0]['descr'] = "ClientRequests";
|
||||
$rrd_list[0]['ds'] = "ClientRequests";
|
||||
$rrd_list[0]['descr'] = "ClientRequests";
|
||||
$rrd_list[0]['ds'] = "ClientRequests";
|
||||
|
||||
$rrd_list[1]['filename'] = $file;
|
||||
$rrd_list[1]['descr'] = "ClientHits";
|
||||
$rrd_list[1]['ds'] = "ClientHits";
|
||||
$rrd_list[1]['descr'] = "ClientHits";
|
||||
$rrd_list[1]['ds'] = "ClientHits";
|
||||
|
||||
$rrd_list[2]['filename'] = $file;
|
||||
$rrd_list[2]['descr'] = "ClientPartialHits";
|
||||
$rrd_list[2]['ds'] = "ClientPartialHits";
|
||||
$rrd_list[2]['descr'] = "ClientPartialHits";
|
||||
$rrd_list[2]['ds'] = "ClientPartialHits";
|
||||
|
||||
$rrd_list[3]['filename'] = $file;
|
||||
$rrd_list[3]['descr'] = "ClientMisses";
|
||||
$rrd_list[3]['ds'] = "ClientMisses";
|
||||
$rrd_list[3]['descr'] = "ClientMisses";
|
||||
$rrd_list[3]['ds'] = "ClientMisses";
|
||||
|
||||
$rrd_list[4]['filename'] = $file;
|
||||
$rrd_list[4]['descr'] = "ClientErrors";
|
||||
$rrd_list[4]['ds'] = "ClientErrors";
|
||||
$rrd_list[4]['descr'] = "ClientErrors";
|
||||
$rrd_list[4]['ds'] = "ClientErrors";
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Requests/sec";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,29 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$file = get_rrd_path($device, "bluecoat-sg-proxy-mib_sgproxyhttpperf.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $file;
|
||||
$rrd_list[0]['descr'] = "ClientConn";
|
||||
$rrd_list[0]['ds'] = "ClientConn";
|
||||
$rrd_list[0]['descr'] = "ClientConn";
|
||||
$rrd_list[0]['ds'] = "ClientConn";
|
||||
|
||||
$rrd_list[1]['filename'] = $file;
|
||||
$rrd_list[1]['descr'] = "ClientConnAc";
|
||||
$rrd_list[1]['ds'] = "ClientConnAc";
|
||||
$rrd_list[1]['descr'] = "ClientConnAc";
|
||||
$rrd_list[1]['ds'] = "ClientConnAc";
|
||||
|
||||
$rrd_list[2]['filename'] = $file;
|
||||
$rrd_list[2]['descr'] = "ClientConnId";
|
||||
$rrd_list[2]['ds'] = "ClientConnId";
|
||||
$rrd_list[2]['descr'] = "ClientConnId";
|
||||
$rrd_list[2]['ds'] = "ClientConnId";
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Connections/sec";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
@ -5,29 +5,29 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$file = get_rrd_path($device, "bluecoat-sg-proxy-mib_sgproxyhttpperf.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $file;
|
||||
$rrd_list[0]['descr'] = "ServerConn";
|
||||
$rrd_list[0]['ds'] = "ServerConn";
|
||||
$rrd_list[0]['descr'] = "ServerConn";
|
||||
$rrd_list[0]['ds'] = "ServerConn";
|
||||
|
||||
$rrd_list[1]['filename'] = $file;
|
||||
$rrd_list[1]['descr'] = "ServerConnAc";
|
||||
$rrd_list[1]['ds'] = "ServerConnAc";
|
||||
$rrd_list[1]['descr'] = "ServerConnAc";
|
||||
$rrd_list[1]['ds'] = "ServerConnAc";
|
||||
|
||||
$rrd_list[2]['filename'] = $file;
|
||||
$rrd_list[2]['descr'] = "ServerConnId";
|
||||
$rrd_list[2]['ds'] = "ServerConnId";
|
||||
$rrd_list[2]['descr'] = "ServerConnId";
|
||||
$rrd_list[2]['ds'] = "ServerConnId";
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Connections/sec";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
@ -5,27 +5,27 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$file = get_rrd_path($device, "bluecoat-sg-proxy-mib_sgproxyhttpperf.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $file;
|
||||
$rrd_list[0]['descr'] = "ServerRequests";
|
||||
$rrd_list[0]['ds'] = "ServerRequests";
|
||||
$rrd_list[0]['descr'] = "ServerRequests";
|
||||
$rrd_list[0]['ds'] = "ServerRequests";
|
||||
|
||||
$rrd_list[1]['filename'] = $file;
|
||||
$rrd_list[1]['descr'] = "ServerErrors";
|
||||
$rrd_list[1]['ds'] = "ServerErrors";
|
||||
$rrd_list[1]['descr'] = "ServerErrors";
|
||||
$rrd_list[1]['ds'] = "ServerErrors";
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Requests/sec";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,33 +5,33 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$file = get_rrd_path($device, "bluecoat-tcp-stats.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $file;
|
||||
$rrd_list[0]['descr'] = "tcpActiveOpens";
|
||||
$rrd_list[0]['ds'] = "tcpActiveOpens";
|
||||
$rrd_list[0]['descr'] = "tcpActiveOpens";
|
||||
$rrd_list[0]['ds'] = "tcpActiveOpens";
|
||||
|
||||
$rrd_list[1]['filename'] = $file;
|
||||
$rrd_list[1]['descr'] = "tcpPassiveOpens";
|
||||
$rrd_list[1]['ds'] = "tcpPassiveOpens";
|
||||
$rrd_list[1]['descr'] = "tcpPassiveOpens";
|
||||
$rrd_list[1]['ds'] = "tcpPassiveOpens";
|
||||
|
||||
$rrd_list[2]['filename'] = $file;
|
||||
$rrd_list[2]['descr'] = "tcpAttemptFails";
|
||||
$rrd_list[2]['ds'] = "tcpAttemptFails";
|
||||
$rrd_list[2]['descr'] = "tcpAttemptFails";
|
||||
$rrd_list[2]['ds'] = "tcpAttemptFails";
|
||||
|
||||
$rrd_list[3]['filename'] = $file;
|
||||
$rrd_list[3]['descr'] = "tcpEstabResets";
|
||||
$rrd_list[3]['ds'] = "tcpEstabResets";
|
||||
$rrd_list[3]['descr'] = "tcpEstabResets";
|
||||
$rrd_list[3]['ds'] = "tcpEstabResets";
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "TCP Connections/sec";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
@ -5,22 +5,22 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$file = get_rrd_path($device, "bluecoat-tcp-stats.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $file;
|
||||
$rrd_list[0]['descr'] = "tcpCurrEstab";
|
||||
$rrd_list[0]['ds'] = "tcpCurrEstab";
|
||||
$rrd_list[0]['descr'] = "tcpCurrEstab";
|
||||
$rrd_list[0]['ds'] = "tcpCurrEstab";
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Established Sessions";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -15,9 +15,9 @@ $scale_min = "0";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "bng-active-sessions.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " DEF:value=".$rrd_filename_escape.":value:AVERAGE";
|
||||
$rrd_options .= " DEF:value=" . $rrd_filename_escape . ":value:AVERAGE";
|
||||
$rrd_options .= " 'COMMENT:Sessions Current Minimum Maximum Average\\l'";
|
||||
$rrd_options .= " AREA:value#EEEEEE:'Subscribers '";
|
||||
$rrd_options .= " LINE1.25:value#36393D:";
|
||||
|
@ -5,17 +5,17 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "cipsec_flow.rrd");
|
||||
|
||||
$ds_in = "InOctets";
|
||||
$ds_in = "InOctets";
|
||||
$ds_out = "OutOctets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,28 +5,28 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "cipsec_flow.rrd");
|
||||
|
||||
$ds_in = "InPkts";
|
||||
$ds_in = "InPkts";
|
||||
$ds_out = "OutPkts";
|
||||
|
||||
$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 = "Pkts ";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,90 +5,90 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "cipsec_flow.rrd");
|
||||
|
||||
$i=0;
|
||||
$i = 0;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InAuths";
|
||||
$rrd_list[$i]['ds'] = "InAuths";
|
||||
$rrd_list[$i]['descr'] = "InAuths";
|
||||
$rrd_list[$i]['ds'] = "InAuths";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutAuths";
|
||||
$rrd_list[$i]['ds'] = "OutAuths";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = "OutAuths";
|
||||
$rrd_list[$i]['ds'] = "OutAuths";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InDecrypts";
|
||||
$rrd_list[$i]['ds'] = "InDencrypts";
|
||||
$rrd_list[$i]['descr'] = "InDecrypts";
|
||||
$rrd_list[$i]['ds'] = "InDencrypts";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutEncrypts";
|
||||
$rrd_list[$i]['ds'] = "OutEncrypts";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = "OutEncrypts";
|
||||
$rrd_list[$i]['ds'] = "OutEncrypts";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InDrops";
|
||||
$rrd_list[$i]['ds'] = "InDrops";
|
||||
$rrd_list[$i]['descr'] = "InDrops";
|
||||
$rrd_list[$i]['ds'] = "InDrops";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InReplayDrops";
|
||||
$rrd_list[$i]['ds'] = "InReplayDrops";
|
||||
$rrd_list[$i]['descr'] = "InReplayDrops";
|
||||
$rrd_list[$i]['ds'] = "InReplayDrops";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutDrops";
|
||||
$rrd_list[$i]['ds'] = "OutDrops";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = "OutDrops";
|
||||
$rrd_list[$i]['ds'] = "OutDrops";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InAuthFail";
|
||||
$rrd_list[$i]['ds'] = "InAuthFails";
|
||||
$rrd_list[$i]['descr'] = "InAuthFail";
|
||||
$rrd_list[$i]['ds'] = "InAuthFails";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutAuthFail";
|
||||
$rrd_list[$i]['ds'] = "OutAuthFails";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = "OutAuthFail";
|
||||
$rrd_list[$i]['ds'] = "OutAuthFails";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InDecryptFails";
|
||||
$rrd_list[$i]['ds'] = "InDecryptFails";
|
||||
$rrd_list[$i]['descr'] = "InDecryptFails";
|
||||
$rrd_list[$i]['ds'] = "InDecryptFails";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutEncryptFails";
|
||||
$rrd_list[$i]['ds'] = "OutEncryptFails";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = "OutEncryptFails";
|
||||
$rrd_list[$i]['ds'] = "OutEncryptFails";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "ProtocolUseFails";
|
||||
$rrd_list[$i]['ds'] = "ProtocolUseFails";
|
||||
$rrd_list[$i]['descr'] = "ProtocolUseFails";
|
||||
$rrd_list[$i]['ds'] = "ProtocolUseFails";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "NoSaFails";
|
||||
$rrd_list[$i]['ds'] = "NoSaFails";
|
||||
$rrd_list[$i]['descr'] = "NoSaFails";
|
||||
$rrd_list[$i]['ds'] = "NoSaFails";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "SysCapFails";
|
||||
$rrd_list[$i]['ds'] = "SysCapFails";
|
||||
$rrd_list[$i]['descr'] = "SysCapFails";
|
||||
$rrd_list[$i]['ds'] = "SysCapFails";
|
||||
|
||||
#$units='%';
|
||||
#$total_units='%';
|
||||
$colours='mixed';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
#$scale_max = "100";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,22 +5,22 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "cipsec_flow.rrd");
|
||||
$ds = "Tunnels";
|
||||
$colour_area = "9999cc";
|
||||
$colour_line = "0000cc";
|
||||
$rrd_filename = get_rrd_path($device, "cipsec_flow.rrd");
|
||||
$ds = "Tunnels";
|
||||
$colour_area = "9999cc";
|
||||
$colour_line = "0000cc";
|
||||
$colour_area_max = "aaaaacc";
|
||||
$scale_min = 0;
|
||||
$unit_text = "Active Tunnels";
|
||||
$scale_min = 0;
|
||||
$unit_text = "Active Tunnels";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -19,94 +19,109 @@
|
||||
require('includes/collectd/config.php');
|
||||
require_once('includes/collectd/functions.php');
|
||||
require_once('includes/collectd/definitions.php');
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
|
||||
// Process input arguments
|
||||
#$host = read_var('host', $vars, null);
|
||||
$host = $device['hostname'];
|
||||
if (is_null($host))
|
||||
return error400("?/?-?/?", "Missing host name");
|
||||
else if (!is_string($host))
|
||||
return error400("?/?-?/?", "Expecting exactly 1 host name");
|
||||
else if (strlen($host) == 0)
|
||||
return error400("?/?-?/?", "Host name may not be blank");
|
||||
$host = $device['hostname'];
|
||||
if (is_null($host)) {
|
||||
return error400("?/?-?/?", "Missing host name");
|
||||
} elseif (!is_string($host)) {
|
||||
return error400("?/?-?/?", "Expecting exactly 1 host name");
|
||||
} elseif (strlen($host) == 0) {
|
||||
return error400("?/?-?/?", "Host name may not be blank");
|
||||
}
|
||||
|
||||
$plugin = read_var('c_plugin', $vars, null);
|
||||
if (is_null($plugin))
|
||||
return error400($host.'/?-?/?', "Missing plugin name");
|
||||
else if (!is_string($plugin))
|
||||
return error400($host.'/?-?/?', "Plugin name must be a string");
|
||||
else if (strlen($plugin) == 0)
|
||||
return error400($host.'/?-?/?', "Plugin name may not be blank");
|
||||
$plugin = read_var('c_plugin', $vars, NULL);
|
||||
if (is_null($plugin)) {
|
||||
return error400($host . '/?-?/?', "Missing plugin name");
|
||||
} elseif (!is_string($plugin)) {
|
||||
return error400($host . '/?-?/?', "Plugin name must be a string");
|
||||
} elseif (strlen($plugin) == 0) {
|
||||
return error400($host . '/?-?/?', "Plugin name may not be blank");
|
||||
}
|
||||
|
||||
$pinst = read_var('c_plugin_instance', $vars, '');
|
||||
if (!is_string($pinst))
|
||||
return error400($host.'/'.$plugin.'-?/?', "Plugin instance name must be a string");
|
||||
$pinst = read_var('c_plugin_instance', $vars, '');
|
||||
if (!is_string($pinst)) {
|
||||
return error400($host . '/' . $plugin . '-?/?', "Plugin instance name must be a string");
|
||||
}
|
||||
|
||||
$type = read_var('c_type', $vars, '');
|
||||
if (is_null($type))
|
||||
return error400($host.'/'.$plugin.(strlen($pinst) ? '-'.$pinst : '').'/?', "Missing type name");
|
||||
else if (!is_string($type))
|
||||
return error400($host.'/'.$plugin.(strlen($pinst) ? '-'.$pinst : '').'/?', "Type name must be a string");
|
||||
else if (strlen($type) == 0)
|
||||
return error400($host.'/'.$plugin.(strlen($pinst) ? '-'.$pinst : '').'/?', "Type name may not be blank");
|
||||
$type = read_var('c_type', $vars, '');
|
||||
if (is_null($type)) {
|
||||
return error400($host . '/' . $plugin . (strlen($pinst) ? '-' . $pinst : '') . '/?', "Missing type name");
|
||||
} elseif (!is_string($type)) {
|
||||
return error400($host . '/' . $plugin . (strlen($pinst) ? '-' . $pinst : '') . '/?', "Type name must be a string");
|
||||
} elseif (strlen($type) == 0) {
|
||||
return error400($host . '/' . $plugin . (strlen($pinst) ? '-' . $pinst : '') . '/?', "Type name may not be blank");
|
||||
}
|
||||
|
||||
$tinst = read_var('c_type_instance', $vars, '');
|
||||
$tinst = read_var('c_type_instance', $vars, '');
|
||||
|
||||
$graph_identifier = $host.'/'.$plugin.(strlen($pinst) ? '-'.$pinst : '').'/'.$type.(strlen($tinst) ? '-'.$tinst : '-*');
|
||||
$timespan = read_var('timespan', $vars, $config['timespan'][0]['name']);
|
||||
$timespan_ok = false;
|
||||
foreach ($config['timespan'] as &$ts)
|
||||
if ($ts['name'] == $timespan)
|
||||
$timespan_ok = true;
|
||||
if (!$timespan_ok)
|
||||
return error400($graph_identifier, "Unknown timespan requested");
|
||||
$graph_identifier = $host . '/' . $plugin . (strlen($pinst) ? '-' . $pinst : '') . '/' . $type . (strlen($tinst) ? '-' . $tinst : '-*');
|
||||
$timespan = read_var('timespan', $vars, $config['timespan'][0]['name']);
|
||||
$timespan_ok = FALSE;
|
||||
foreach ($config['timespan'] as &$ts) {
|
||||
if ($ts['name'] == $timespan) {
|
||||
$timespan_ok = TRUE;
|
||||
}
|
||||
}
|
||||
if (!$timespan_ok) {
|
||||
return error400($graph_identifier, "Unknown timespan requested");
|
||||
}
|
||||
|
||||
$logscale = (boolean)read_var('logarithmic', $vars, false);
|
||||
$tinylegend = (boolean)read_var('tinylegend', $vars, false);
|
||||
$logscale = (boolean)read_var('logarithmic', $vars, FALSE);
|
||||
$tinylegend = (boolean)read_var('tinylegend', $vars, FALSE);
|
||||
|
||||
// Check that at least 1 RRD exists for the specified request
|
||||
$all_tinst = collectd_list_tinsts($host, $plugin, $pinst, $type);
|
||||
if (safe_count($all_tinst) == 0)
|
||||
return error404($graph_identifier, "No rrd file found for graphing");
|
||||
if (safe_count($all_tinst) == 0) {
|
||||
return error404($graph_identifier, "No rrd file found for graphing");
|
||||
}
|
||||
|
||||
// Now that we are read, do the bulk work
|
||||
load_graph_definitions($logscale, $tinylegend);
|
||||
|
||||
$pinst = strlen($pinst) == 0 ? null : $pinst;
|
||||
$tinst = strlen($tinst) == 0 ? null : $tinst;
|
||||
$pinst = strlen($pinst) == 0 ? NULL : $pinst;
|
||||
$tinst = strlen($tinst) == 0 ? NULL : $tinst;
|
||||
|
||||
$opts = array();
|
||||
$opts = [];
|
||||
$opts['timespan'] = $timespan;
|
||||
if ($logscale)
|
||||
$opts['logarithmic'] = 1;
|
||||
if ($tinylegend)
|
||||
$opts['tinylegend'] = 1;
|
||||
|
||||
$rrd_cmd = false;
|
||||
if (isset($MetaGraphDefs[$type])) {
|
||||
$identifiers = array();
|
||||
foreach ($all_tinst as &$atinst)
|
||||
$identifiers[] = collectd_identifier($host, $plugin, is_null($pinst) ? '' : $pinst, $type, $atinst);
|
||||
collectd_flush($identifiers);
|
||||
$rrd_cmd = $MetaGraphDefs[$type]($host, $plugin, $pinst, $type, $all_tinst, $opts);
|
||||
} else {
|
||||
if (!in_array(is_null($tinst) ? '' : $tinst, $all_tinst))
|
||||
return error404($host.'/'.$plugin.(!is_null($pinst) ? '-'.$pinst : '').'/'.$type.(!is_null($tinst) ? '-'.$tinst : ''), "No rrd file found for graphing");
|
||||
collectd_flush(collectd_identifier($host, $plugin, is_null($pinst) ? '' : $pinst, $type, is_null($tinst) ? '' : $tinst));
|
||||
if (isset($GraphDefs[$type]))
|
||||
$rrd_cmd = collectd_draw_generic($timespan, $host, $plugin, $pinst, $type, $tinst);
|
||||
else
|
||||
$rrd_cmd = collectd_draw_rrd($host, $plugin, $pinst, $type, $tinst);
|
||||
if ($logscale) {
|
||||
$opts['logarithmic'] = 1;
|
||||
}
|
||||
if ($tinylegend) {
|
||||
$opts['tinylegend'] = 1;
|
||||
}
|
||||
|
||||
if(isset($rrd_cmd))
|
||||
{
|
||||
if ($vars['from']) { $from = $vars['from']; }
|
||||
if ($vars['to']) { $to = $vars['to']; }
|
||||
$rrd_cmd .= " -s " . escapeshellarg($from) . " -e " . escapeshellarg($to);
|
||||
$rrd_cmd = FALSE;
|
||||
if (isset($MetaGraphDefs[$type])) {
|
||||
$identifiers = [];
|
||||
foreach ($all_tinst as &$atinst) {
|
||||
$identifiers[] = collectd_identifier($host, $plugin, is_null($pinst) ? '' : $pinst, $type, $atinst);
|
||||
}
|
||||
collectd_flush($identifiers);
|
||||
$rrd_cmd = $MetaGraphDefs[$type]($host, $plugin, $pinst, $type, $all_tinst, $opts);
|
||||
} else {
|
||||
if (!in_array(is_null($tinst) ? '' : $tinst, $all_tinst)) {
|
||||
return error404($host . '/' . $plugin . (!is_null($pinst) ? '-' . $pinst : '') . '/' . $type . (!is_null($tinst) ? '-' . $tinst : ''), "No rrd file found for graphing");
|
||||
}
|
||||
collectd_flush(collectd_identifier($host, $plugin, is_null($pinst) ? '' : $pinst, $type, is_null($tinst) ? '' : $tinst));
|
||||
if (isset($GraphDefs[$type])) {
|
||||
$rrd_cmd = collectd_draw_generic($timespan, $host, $plugin, $pinst, $type, $tinst);
|
||||
} else {
|
||||
$rrd_cmd = collectd_draw_rrd($host, $plugin, $pinst, $type, $tinst);
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($rrd_cmd)) {
|
||||
if ($vars['from']) {
|
||||
$from = $vars['from'];
|
||||
}
|
||||
if ($vars['to']) {
|
||||
$to = $vars['to'];
|
||||
}
|
||||
$rrd_cmd .= " -s " . escapeshellarg($from) . " -e " . escapeshellarg($to);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -116,7 +131,7 @@ if ($vars['height'] < "99") { $rrd_cmd .= " --only-graph "; }
|
||||
if ($vars['width'] <= "300") { $rrd_cmd .= " --font LEGEND:7:" . $config['mono_font'] . " --font AXIS:6:" . $config['mono_font'] . " "; }
|
||||
else { $rrd_cmd .= " --font LEGEND:8:" . $config['mono_font'] . " --font AXIS:7:" . $config['mono_font'] . " "; }
|
||||
*/
|
||||
$rt = 0;
|
||||
$rt = 0;
|
||||
$rrd_options .= $rrd_cmd;
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -15,36 +15,33 @@
|
||||
|
||||
$i = 0;
|
||||
|
||||
$where = '`device_id` = ? AND `counter_deleted` = ?';
|
||||
$params = array($device['device_id'], '0');
|
||||
if ($class && isset($config['counter_types'][$class]))
|
||||
{
|
||||
$where .= ' AND `counter_class` = ?';
|
||||
$params[] = $class;
|
||||
$where = '`device_id` = ? AND `counter_deleted` = ?';
|
||||
$params = [$device['device_id'], '0'];
|
||||
if ($class && isset($config['counter_types'][$class])) {
|
||||
$where .= ' AND `counter_class` = ?';
|
||||
$params[] = $class;
|
||||
}
|
||||
foreach (dbFetchRows("SELECT * FROM `counters` WHERE $where ORDER BY `counter_index`", $params) as $counter)
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, get_counter_rrd($device, $counter));
|
||||
foreach (dbFetchRows("SELECT * FROM `counters` WHERE $where ORDER BY `counter_index`", $params) as $counter) {
|
||||
$rrd_filename = get_rrd_path($device, get_counter_rrd($device, $counter));
|
||||
|
||||
if (($config['allow_unauth_graphs'] == TRUE || is_entity_permitted($counter['counter_id'], 'counter')) && rrd_is_file($rrd_filename))
|
||||
{
|
||||
$descr = rewrite_entity_name($counter['counter_descr']);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $descr;
|
||||
$rrd_list[$i]['ds'] = "counter";
|
||||
//$rrd_list[$i]['ds'] = "sensor";
|
||||
$i++;
|
||||
}
|
||||
if (($config['allow_unauth_graphs'] == TRUE || is_entity_permitted($counter['counter_id'], 'counter')) && rrd_is_file($rrd_filename)) {
|
||||
$descr = rewrite_entity_name($counter['counter_descr']);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $descr;
|
||||
$rrd_list[$i]['ds'] = "counter";
|
||||
//$rrd_list[$i]['ds'] = "sensor";
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
$unit_text = $unit_long;
|
||||
|
||||
$units = '%';
|
||||
$units = '%';
|
||||
$total_units = '%';
|
||||
$colours ='mixed-10c';
|
||||
$nototal = 1;
|
||||
$colours = 'mixed-10c';
|
||||
$nototal = 1;
|
||||
$scale_rigid = FALSE;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -15,7 +15,7 @@ $scale_min = "0";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "cras_sessions.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " DEF:email=$rrd_filename_escape:email:AVERAGE";
|
||||
$rrd_options .= " DEF:ipsec=$rrd_filename_escape:ipsec:AVERAGE";
|
||||
|
@ -5,16 +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
|
||||
*
|
||||
*/
|
||||
|
||||
// NOTE. This used together with graphs defined from definitions ONLY
|
||||
|
||||
switch ($subtype)
|
||||
{
|
||||
switch ($subtype) {
|
||||
}
|
||||
|
||||
// EOL
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -5,17 +5,17 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$units = '';
|
||||
$unit_text = 'Bits/sec';
|
||||
$units = '';
|
||||
$unit_text = 'Bits/sec';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
$multiplier = "1";
|
||||
$colours_in = 'greens';
|
||||
$multiplier = "1";
|
||||
$colours_out = 'blues';
|
||||
|
||||
$ds_in = "read";
|
||||
@ -23,8 +23,8 @@ $ds_out = "written";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/diskio_common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/device/diskio_common.inc.php");
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_bits_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_bits_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,25 +5,23 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$i = 1;
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `ucd_diskio` AS U, `devices` AS D WHERE D.device_id = ? AND U.device_id = D.device_id", array($device['device_id'])) as $disk)
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, "ucd_diskio-" . $disk['diskio_descr'] . ".rrd");
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $disk['diskio_descr'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
}
|
||||
foreach (dbFetchRows("SELECT * FROM `ucd_diskio` AS U, `devices` AS D WHERE D.device_id = ? AND U.device_id = D.device_id", [$device['device_id']]) as $disk) {
|
||||
$rrd_filename = get_rrd_path($device, "ucd_diskio-" . $disk['diskio_descr'] . ".rrd");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $disk['diskio_descr'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -5,17 +5,17 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$units = '';
|
||||
$unit_text = 'Operations/sec';
|
||||
$units = '';
|
||||
$unit_text = 'Operations/sec';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'reds';
|
||||
$multiplier = "1";
|
||||
$colours_in = 'reds';
|
||||
$multiplier = "1";
|
||||
$colours_out = 'oranges';
|
||||
|
||||
$ds_in = "reads";
|
||||
@ -23,8 +23,8 @@ $ds_out = "writes";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/diskio_common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/device/diskio_common.inc.php");
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -4,66 +4,63 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$unit_text = "Errors";
|
||||
$nototal = 1;
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
$colourset = "mixed";
|
||||
|
||||
$rownames = safe_unserialize(get_dev_attrib($device, 'edac_rownames'));
|
||||
$rownames = safe_unserialize(get_dev_attrib($device, 'edac_rownames'));
|
||||
|
||||
foreach ($rownames as $mc => $data)
|
||||
{
|
||||
$data['rowname']['unknown']['unknown'] = 'unknown'; // Add 'unknown' line to every memory controller; we don't have unknown-unknown but unknown-all is added below
|
||||
foreach ($rownames as $mc => $data) {
|
||||
$data['rowname']['unknown']['unknown'] = 'unknown'; // Add 'unknown' line to every memory controller; we don't have unknown-unknown but unknown-all is added below
|
||||
|
||||
foreach ($data['rowname'] as $row => $channels)
|
||||
{
|
||||
array_unshift($channels, 'all'); // Add 'all' to front of array
|
||||
foreach ($channels as $channel)
|
||||
{
|
||||
foreach (array('ue','ce') as $errortype)
|
||||
{
|
||||
switch ((string)$row) // Need to cast, or PHP thinks string 'unknown' means 0. Dafuq.
|
||||
{
|
||||
case 'unknown':
|
||||
case 'all':
|
||||
$row_id = $row;
|
||||
break;
|
||||
default:
|
||||
$row_id = "csrow$row";
|
||||
break;
|
||||
foreach ($data['rowname'] as $row => $channels) {
|
||||
array_unshift($channels, 'all'); // Add 'all' to front of array
|
||||
foreach ($channels as $channel) {
|
||||
foreach (['ue', 'ce'] as $errortype) {
|
||||
switch ((string)$row) // Need to cast, or PHP thinks string 'unknown' means 0. Dafuq.
|
||||
{
|
||||
case 'unknown':
|
||||
case 'all':
|
||||
$row_id = $row;
|
||||
break;
|
||||
default:
|
||||
$row_id = "csrow$row";
|
||||
break;
|
||||
}
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "edac-errors-$mc-$row_id-$channel-$errortype.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = strtoupper($errortype) . " $mc $row_id" . ($channel != 'all' ? " $channel" : "");
|
||||
$rrd_list[$i]['ds'] = "errors";
|
||||
|
||||
if (!isset($config['graph_colours'][$colourset][$iter])) {
|
||||
$iter = 0;
|
||||
}
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colourset][$iter];
|
||||
$iter++;
|
||||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "edac-errors-$mc-$row_id-$channel-$errortype.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = strtoupper($errortype) . " $mc $row_id" . ($channel != 'all' ? " $channel" : "");
|
||||
$rrd_list[$i]['ds'] = "errors";
|
||||
|
||||
if (!isset($config['graph_colours'][$colourset][$iter])) { $iter = 0; }
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colourset][$iter];
|
||||
$iter++;
|
||||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -15,9 +15,9 @@ $scale_min = "0";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "firewall-sessions-ipv4.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " DEF:value=".$rrd_filename_escape.":value:AVERAGE";
|
||||
$rrd_options .= " DEF:value=" . $rrd_filename_escape . ":value:AVERAGE";
|
||||
$rrd_options .= " 'COMMENT:Sessions Current Minimum Maximum Average\\l'";
|
||||
$rrd_options .= " AREA:value#EEEEEE:'IPv4 '";
|
||||
$rrd_options .= " LINE1.25:value#36393D:";
|
||||
|
@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "fortigate_cpu.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$ds = "LOAD";
|
||||
|
||||
@ -26,6 +26,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "% CPU";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,27 +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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "fuser.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -l 0 -E ";
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_options .= " COMMENT:' Cur Min Max\\n'";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_options .= " COMMENT:' Cur Min Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:level=".$rrd_filename_escape.":level:AVERAGE ";
|
||||
$rrd_options .= " LINE1:level#CC0000:'Fuser ' ";
|
||||
$rrd_options .= " GPRINT:level:LAST:%3.0lf%% ";
|
||||
$rrd_options .= " GPRINT:level:MIN:%3.0lf%% ";
|
||||
$rrd_options .= " GPRINT:level:MAX:%3.0lf%%\\\l ";
|
||||
$rrd_options .= " DEF:level=" . $rrd_filename_escape . ":level:AVERAGE ";
|
||||
$rrd_options .= " LINE1:level#CC0000:'Fuser ' ";
|
||||
$rrd_options .= " GPRINT:level:LAST:%3.0lf%% ";
|
||||
$rrd_options .= " GPRINT:level:MIN:%3.0lf%% ";
|
||||
$rrd_options .= " GPRINT:level:MAX:%3.0lf%%\\\l ";
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,20 +5,21 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
if (isset($config['sensor_types'][$subtype]))
|
||||
{
|
||||
$class = $subtype;
|
||||
$unit = $config['sensor_types'][$subtype]['symbol'];
|
||||
if ($unit == '%') { $unit = '%%'; }
|
||||
$unit_long = $config['sensor_types'][$subtype]['text'];
|
||||
if (isset($config['sensor_types'][$subtype])) {
|
||||
$class = $subtype;
|
||||
$unit = $config['sensor_types'][$subtype]['symbol'];
|
||||
if ($unit == '%') {
|
||||
$unit = '%%';
|
||||
}
|
||||
$unit_long = $config['sensor_types'][$subtype]['text'];
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/sensor.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/device/sensor.inc.php");
|
||||
} else {
|
||||
// graph_error($type.'_'.$subtype); // Graph Template Missing;
|
||||
}
|
||||
|
@ -5,27 +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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "drum.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -l 0 -E ";
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_options .= " COMMENT:' Cur Min Max\\n'";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_options .= " COMMENT:' Cur Min Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:drum=".$rrd_filename_escape.":drum:AVERAGE ";
|
||||
$rrd_options .= " LINE1:drum#CC0000:'Imaging Drum ' ";
|
||||
$rrd_options .= " GPRINT:drum:LAST:%3.0lf%% ";
|
||||
$rrd_options .= " GPRINT:drum:MIN:%3.0lf%% ";
|
||||
$rrd_options .= " GPRINT:drum:MAX:%3.0lf%%\\\l ";
|
||||
$rrd_options .= " DEF:drum=" . $rrd_filename_escape . ":drum:AVERAGE ";
|
||||
$rrd_options .= " LINE1:drum#CC0000:'Imaging Drum ' ";
|
||||
$rrd_options .= " GPRINT:drum:LAST:%3.0lf%% ";
|
||||
$rrd_options .= " GPRINT:drum:MIN:%3.0lf%% ";
|
||||
$rrd_options .= " GPRINT:drum:MAX:%3.0lf%%\\\l ";
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,45 +5,44 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -l 0 -E ";
|
||||
|
||||
$iter = "1";
|
||||
$iter = "1";
|
||||
$rrd_options .= " COMMENT:'Imaging Drum level Cur Min Max\\n'";
|
||||
|
||||
$drums = array(
|
||||
'Cyan' => 'c',
|
||||
$drums = [
|
||||
'Cyan' => 'c',
|
||||
'Magenta' => 'm',
|
||||
'Yellow' => 'y',
|
||||
'Black' => 'k',
|
||||
);
|
||||
'Yellow' => 'y',
|
||||
'Black' => 'k',
|
||||
];
|
||||
|
||||
foreach ($drums as $drum => $letter)
|
||||
{
|
||||
$descr = rrdtool_escape("$drum Drum",16);
|
||||
$colour = toner_to_colour($descr);
|
||||
foreach ($drums as $drum => $letter) {
|
||||
$descr = rrdtool_escape("$drum Drum", 16);
|
||||
$colour = toner_to_colour($descr);
|
||||
|
||||
// Not sure for what this used
|
||||
//$hostname = get_device_hostname_by_device_id($supply['device_id']);
|
||||
$hostname = $device['hostname'];
|
||||
// Not sure for what this used
|
||||
//$hostname = get_device_hostname_by_device_id($supply['device_id']);
|
||||
$hostname = $device['hostname'];
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "drum-$letter.rrd");
|
||||
$rrd_filename_escape = rrdtool_escape($rrd_filename);
|
||||
$rrd_filename = get_rrd_path($device, "drum-$letter.rrd");
|
||||
$rrd_filename_escape = rrdtool_escape($rrd_filename);
|
||||
|
||||
$rrd_options .= " DEF:drum$iter=$rrd_filename_escape:drum:AVERAGE";
|
||||
$rrd_options .= " LINE2:drum$iter#".$colour['left'].":'" . $descr . "'";
|
||||
$rrd_options .= " GPRINT:drum$iter:LAST:'%5.0lf%%'";
|
||||
$rrd_options .= " GPRINT:drum$iter:MIN:'%5.0lf%%'";
|
||||
$rrd_options .= " GPRINT:drum$iter:MAX:%5.0lf%%\\l";
|
||||
$rrd_options .= " DEF:drum$iter=$rrd_filename_escape:drum:AVERAGE";
|
||||
$rrd_options .= " LINE2:drum$iter#" . $colour['left'] . ":'" . $descr . "'";
|
||||
$rrd_options .= " GPRINT:drum$iter:LAST:'%5.0lf%%'";
|
||||
$rrd_options .= " GPRINT:drum$iter:MIN:'%5.0lf%%'";
|
||||
$rrd_options .= " GPRINT:drum$iter:MAX:%5.0lf%%\\l";
|
||||
|
||||
$iter++;
|
||||
$iter++;
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,13 +5,13 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename_4 = rrdtool_escape(get_rrd_path($device, "ipSystemStats-ipv4.rrd"));
|
||||
$rrd_filename_6 = rrdtool_escape(get_rrd_path($device, "ipSystemStats-ipv6.rrd"));
|
||||
|
@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ipSystemStats-ipv4.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " DEF:InForwDatagrams=$rrd_filename_escape:InForwDatagrams:AVERAGE";
|
||||
$rrd_options .= " DEF:InDelivers=$rrd_filename_escape:InDelivers:AVERAGE";
|
||||
|
@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ipSystemStats-ipv4.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " DEF:ipInDelivers=$rrd_filename_escape:InDelivers:AVERAGE";
|
||||
$rrd_options .= " DEF:ipReasmReqds=$rrd_filename_escape:ReasmReqds:AVERAGE";
|
||||
|
@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ipSystemStats-ipv6.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " DEF:InForwDatagrams=$rrd_filename_escape:InForwDatagrams:AVERAGE";
|
||||
$rrd_options .= " DEF:InDelivers=$rrd_filename_escape:InDelivers:AVERAGE";
|
||||
|
@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ipSystemStats-ipv6.rrd");
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " DEF:ipInDelivers=$rrd_filename_escape:InDelivers:AVERAGE";
|
||||
$rrd_options .= " DEF:ipReasmReqds=$rrd_filename_escape:ReasmReqds:AVERAGE";
|
||||
|
@ -4,9 +4,9 @@ $filter = $vars['filter'];
|
||||
$counter = $vars['counter'];
|
||||
$c_type = $vars['counter_type'];
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'juniper-firewall-'.$filter.'-'.$counter.'-'.$c_type);
|
||||
$rrd_filename = get_rrd_path($device, 'juniper-firewall-' . $filter . '-' . $counter . '-' . $c_type);
|
||||
|
||||
$ds = "bytes";
|
||||
$ds = "bytes";
|
||||
$multiplier = 8;
|
||||
|
||||
$colour_line = $config['colours']['graphs']['data']['in_line'];
|
||||
@ -15,6 +15,5 @@ $colour_area = $config['colours']['graphs']['data']['in_area'];
|
||||
$unit_text = "Bits/s";
|
||||
|
||||
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
|
@ -4,13 +4,13 @@ $filter = $vars['filter'];
|
||||
$counter = $vars['counter'];
|
||||
$c_type = $vars['counter_type'];
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'juniper-firewall-'.$filter.'-'.$counter.'-'.$c_type);
|
||||
$rrd_filename = get_rrd_path($device, 'juniper-firewall-' . $filter . '-' . $counter . '-' . $c_type);
|
||||
|
||||
$ds = "pkts";
|
||||
|
||||
$unit_text = "Pkts/s";
|
||||
$unit_text = "Pkts/s";
|
||||
$colour_line = "330033";
|
||||
$colour_area = "AA66AA";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
|
@ -5,27 +5,27 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "juniperive_connections.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Web";
|
||||
$rrd_list[0]['ds'] = "webusers";
|
||||
$rrd_list[0]['descr'] = "Web";
|
||||
$rrd_list[0]['ds'] = "webusers";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Mail";
|
||||
$rrd_list[1]['ds'] = "mailusers";
|
||||
$rrd_list[1]['descr'] = "Mail";
|
||||
$rrd_list[1]['ds'] = "mailusers";
|
||||
|
||||
$colours = "juniperive";
|
||||
$nototal = 1;
|
||||
$colours = "juniperive";
|
||||
$nototal = 1;
|
||||
$unit_text = "Connections";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,27 +5,27 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "juniperive_meetings.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Users";
|
||||
$rrd_list[0]['ds'] = "meetingusers";
|
||||
$rrd_list[0]['descr'] = "Users";
|
||||
$rrd_list[0]['ds'] = "meetingusers";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Meetings";
|
||||
$rrd_list[1]['ds'] = "meetings";
|
||||
$rrd_list[1]['descr'] = "Meetings";
|
||||
$rrd_list[1]['ds'] = "meetings";
|
||||
|
||||
$colours = "juniperive";
|
||||
$nototal = 1;
|
||||
$colours = "juniperive";
|
||||
$nototal = 1;
|
||||
$unit_text = "Meetings";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,32 +5,32 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "juniperive_storage.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Disk";
|
||||
$rrd_list[0]['ds'] = "diskpercent";
|
||||
$rrd_list[0]['descr'] = "Disk";
|
||||
$rrd_list[0]['ds'] = "diskpercent";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Log";
|
||||
$rrd_list[1]['ds'] = "logpercent";
|
||||
$rrd_list[1]['descr'] = "Log";
|
||||
$rrd_list[1]['ds'] = "logpercent";
|
||||
|
||||
$colours = "juniperive";
|
||||
|
||||
$unit_text = "Storage %";
|
||||
$units = '%';
|
||||
$unit_text = "Storage %";
|
||||
$units = '%';
|
||||
$total_units = '%';
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "100";
|
||||
$nototal = 1;
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,27 +5,27 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "juniperive_users.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Cluster";
|
||||
$rrd_list[0]['ds'] = "clusterusers";
|
||||
$rrd_list[0]['descr'] = "Cluster";
|
||||
$rrd_list[0]['ds'] = "clusterusers";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Local";
|
||||
$rrd_list[1]['ds'] = "iveusers";
|
||||
$rrd_list[1]['descr'] = "Local";
|
||||
$rrd_list[1]['ds'] = "iveusers";
|
||||
|
||||
$colours = "juniperive";
|
||||
$nototal = 1;
|
||||
$colours = "juniperive";
|
||||
$nototal = 1;
|
||||
$unit_text = "Users";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,30 +5,29 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ksm-pages.rrd");
|
||||
|
||||
$stats = array('shared', 'sharing', 'unshared');
|
||||
$stats = ['shared', 'sharing', 'unshared'];
|
||||
|
||||
$i=0;
|
||||
foreach ($stats as $stat)
|
||||
{
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "Pages " . ucfirst($stat);
|
||||
$rrd_list[$i]['ds'] = "pages" . ucfirst($stat);
|
||||
$i = 0;
|
||||
foreach ($stats as $stat) {
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "Pages " . ucfirst($stat);
|
||||
$rrd_list[$i]['ds'] = "pages" . ucfirst($stat);
|
||||
}
|
||||
|
||||
$colours='mixed';
|
||||
$colours = 'mixed';
|
||||
|
||||
$nototal = 1;
|
||||
$nototal = 1;
|
||||
$simple_rrd = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -4,62 +4,57 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "100";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
if ($width > 500)
|
||||
{
|
||||
$descr_len = 22;
|
||||
if ($width > 500) {
|
||||
$descr_len = 22;
|
||||
} else {
|
||||
$descr_len = 12;
|
||||
$descr_len = 12;
|
||||
}
|
||||
$descr_len += round(($width - 250) / 8);
|
||||
|
||||
$iter = 0;
|
||||
$iter = 0;
|
||||
$colours = 'mixed-10c';
|
||||
|
||||
$rrd_options .= " COMMENT:'".str_pad('Size Used %used', $descr_len+31, ' ', STR_PAD_LEFT)."\\l'";
|
||||
$rrd_options .= " COMMENT:'" . str_pad('Size Used %used', $descr_len + 31, ' ', STR_PAD_LEFT) . "\\l'";
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `mempools` where `device_id` = ?", array($device['device_id'])) as $mempool)
|
||||
{
|
||||
if (!$config['graph_colours'][$colours][$iter])
|
||||
{
|
||||
$iter = 0;
|
||||
}
|
||||
$colour = $config['graph_colours'][$colours][$iter];
|
||||
foreach (dbFetchRows("SELECT * FROM `mempools` where `device_id` = ?", [$device['device_id']]) as $mempool) {
|
||||
if (!$config['graph_colours'][$colours][$iter]) {
|
||||
$iter = 0;
|
||||
}
|
||||
$colour = $config['graph_colours'][$colours][$iter];
|
||||
|
||||
$descr = rrdtool_escape(rewrite_entity_name($mempool['mempool_descr'], 'mempool'), $descr_len);
|
||||
$descr = rrdtool_escape(rewrite_entity_name($mempool['mempool_descr'], 'mempool'), $descr_len);
|
||||
|
||||
if (isset($mempool['mempool_table']))
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, "mempool-".strtolower($mempool['mempool_mib'])."-".$mempool['mempool_table']."-".$mempool['mempool_index'].".rrd");
|
||||
} else {
|
||||
$rrd_filename = get_rrd_path($device, "mempool-".strtolower($mempool['mempool_mib'])."-".$mempool['mempool_index'].".rrd");
|
||||
}
|
||||
if (isset($mempool['mempool_table'])) {
|
||||
$rrd_filename = get_rrd_path($device, "mempool-" . strtolower($mempool['mempool_mib']) . "-" . $mempool['mempool_table'] . "-" . $mempool['mempool_index'] . ".rrd");
|
||||
} else {
|
||||
$rrd_filename = get_rrd_path($device, "mempool-" . strtolower($mempool['mempool_mib']) . "-" . $mempool['mempool_index'] . ".rrd");
|
||||
}
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_filename_escape = rrdtool_escape($rrd_filename);
|
||||
|
||||
$rrd_options .= " DEF:".$mempool['mempool_id']."used=$rrd_filename_escape:used:AVERAGE";
|
||||
$rrd_options .= " DEF:".$mempool['mempool_id']."free=$rrd_filename_escape:free:AVERAGE";
|
||||
$rrd_options .= " CDEF:".$mempool['mempool_id']."size=".$mempool['mempool_id']."used,".$mempool['mempool_id']."free,+";
|
||||
$rrd_options .= " CDEF:".$mempool['mempool_id']."perc=".$mempool['mempool_id']."used,".$mempool['mempool_id']."size,/,100,*";
|
||||
$rrd_options .= " AREA:".$mempool['mempool_id']."perc#" . $colour . "05";
|
||||
$rrd_options .= " LINE1.25:".$mempool['mempool_id']."perc#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:".$mempool['mempool_id']."size:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:".$mempool['mempool_id']."used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:".$mempool['mempool_id']."perc:LAST:%5.2lf%%\\l";
|
||||
$iter++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_filename_escape = rrdtool_escape($rrd_filename);
|
||||
|
||||
$rrd_options .= " DEF:" . $mempool['mempool_id'] . "used=$rrd_filename_escape:used:AVERAGE";
|
||||
$rrd_options .= " DEF:" . $mempool['mempool_id'] . "free=$rrd_filename_escape:free:AVERAGE";
|
||||
$rrd_options .= " CDEF:" . $mempool['mempool_id'] . "size=" . $mempool['mempool_id'] . "used," . $mempool['mempool_id'] . "free,+";
|
||||
$rrd_options .= " CDEF:" . $mempool['mempool_id'] . "perc=" . $mempool['mempool_id'] . "used," . $mempool['mempool_id'] . "size,/,100,*";
|
||||
$rrd_options .= " AREA:" . $mempool['mempool_id'] . "perc#" . $colour . "05";
|
||||
$rrd_options .= " LINE1.25:" . $mempool['mempool_id'] . "perc#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:" . $mempool['mempool_id'] . "size:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:" . $mempool['mempool_id'] . "used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:" . $mempool['mempool_id'] . "perc:LAST:%5.2lf%%\\l";
|
||||
$iter++;
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,52 +5,50 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
global $config, $device;
|
||||
|
||||
$cp_stats = array(
|
||||
'timer' => 'Timer',
|
||||
'snapshot' => 'Snapshot',
|
||||
'low_water' => 'Low Water',
|
||||
'high_water' => 'High Water',
|
||||
'log_full' => 'NV Log Full',
|
||||
'cp' => 'Back to Back CPs',
|
||||
'flush' => 'Write Flush',
|
||||
'sync' => 'Sync',
|
||||
'low_vbuf' => 'Low Virtual Buffers',
|
||||
'cp_deferred' => 'Deferred CPs',
|
||||
$cp_stats = [
|
||||
'timer' => 'Timer',
|
||||
'snapshot' => 'Snapshot',
|
||||
'low_water' => 'Low Water',
|
||||
'high_water' => 'High Water',
|
||||
'log_full' => 'NV Log Full',
|
||||
'cp' => 'Back to Back CPs',
|
||||
'flush' => 'Write Flush',
|
||||
'sync' => 'Sync',
|
||||
'low_vbuf' => 'Low Virtual Buffers',
|
||||
'cp_deferred' => 'Deferred CPs',
|
||||
'low_datavecs' => 'Low Datavecs'
|
||||
);
|
||||
];
|
||||
|
||||
foreach ($cp_stats as $stat => $descr)
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, 'netapp-cp.rrd');
|
||||
foreach ($cp_stats as $stat => $descr) {
|
||||
$rrd_filename = get_rrd_path($device, 'netapp-cp.rrd');
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
#$descr = nicecase($stat);
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
#$descr = nicecase($stat);
|
||||
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $descr;
|
||||
$rrd_list[$i]['ds'] = $stat;
|
||||
}
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $descr;
|
||||
$rrd_list[$i]['ds'] = $stat;
|
||||
}
|
||||
}
|
||||
|
||||
$unit_text = 'Operations/s';
|
||||
|
||||
$units = '';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = '0';
|
||||
#$scale_max = '100';
|
||||
|
||||
$text_orig = 1;
|
||||
$nototal = 1;
|
||||
$nototal = 1;
|
||||
|
||||
include('includes/graphs/generic_multi_simplex_separated.inc.php');
|
||||
|
@ -5,18 +5,18 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp_stats.rrd");
|
||||
|
||||
$ds_in = "disk_rd";
|
||||
$ds_in = "disk_rd";
|
||||
$ds_out = "disk_wr";
|
||||
$format = "octets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,17 +5,17 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp_stats.rrd");
|
||||
|
||||
$ds_in = "net_rx";
|
||||
$ds_in = "net_rx";
|
||||
$ds_out = "net_tx";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,26 +5,25 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'netapp_stats.rrd');
|
||||
$rrd_exists = rrd_is_file($rrd_filename);
|
||||
|
||||
foreach (array('iscsi', 'nfs', 'cifs', 'http', 'fcp') as $stat)
|
||||
{
|
||||
if (!$rrd_exists) {
|
||||
continue;
|
||||
}
|
||||
foreach (['iscsi', 'nfs', 'cifs', 'http', 'fcp'] as $stat) {
|
||||
if (!$rrd_exists) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$rrd_list[$count]['filename'] = $rrd_filename;
|
||||
$rrd_list[$count]['descr'] = nicecase($stat);
|
||||
$rrd_list[$count]['ds'] = $stat .'_ops';
|
||||
$rrd_list[$count]['filename'] = $rrd_filename;
|
||||
$rrd_list[$count]['descr'] = nicecase($stat);
|
||||
$rrd_list[$count]['ds'] = $stat . '_ops';
|
||||
|
||||
$count++;
|
||||
$count++;
|
||||
}
|
||||
|
||||
$unit_text = 'Operations/s';
|
||||
|
@ -5,18 +5,18 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp_stats.rrd");
|
||||
|
||||
$format = "bytes";
|
||||
$ds_in = "tape_rd";
|
||||
$ds_in = "tape_rd";
|
||||
$ds_out = "tape_wr";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,44 +5,42 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrRetransmit' => array('descr' => 'ErrRetransmit'),
|
||||
'ErrRetransmitGiveUp' => array('descr' => 'ErrRetransmitGiveUp'),
|
||||
'pcbTotZomCall' => array('descr' => 'pcbTotZomCall'),
|
||||
'TotSynHeld' => array('descr' => 'TotSynHeld'),
|
||||
'TotSynFlush' => array('descr' => 'TotSynFlush'),
|
||||
'TotFinWaitClosed' => array('descr' => 'TotFinWaitClosed'),
|
||||
'ErrAnyPortFail' => array('descr' => 'ErrAnyPortFail'),
|
||||
'ErrIpPortFail' => array('descr' => 'ErrIpPortFail'),
|
||||
'ErrSentRst' => array('descr' => 'ErrSentRst'),
|
||||
'ErrBadStateConn' => array('descr' => 'ErrBadStateConn')
|
||||
);
|
||||
$array = [
|
||||
'ErrRetransmit' => ['descr' => 'ErrRetransmit'],
|
||||
'ErrRetransmitGiveUp' => ['descr' => 'ErrRetransmitGiveUp'],
|
||||
'pcbTotZomCall' => ['descr' => 'pcbTotZomCall'],
|
||||
'TotSynHeld' => ['descr' => 'TotSynHeld'],
|
||||
'TotSynFlush' => ['descr' => 'TotSynFlush'],
|
||||
'TotFinWaitClosed' => ['descr' => 'TotFinWaitClosed'],
|
||||
'ErrAnyPortFail' => ['descr' => 'ErrAnyPortFail'],
|
||||
'ErrIpPortFail' => ['descr' => 'ErrIpPortFail'],
|
||||
'ErrSentRst' => ['descr' => 'ErrSentRst'],
|
||||
'ErrBadStateConn' => ['descr' => 'ErrBadStateConn']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
@ -5,38 +5,36 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotClientConnOpened' => array('descr' => 'TotClientConnOpened'),
|
||||
'TotClientConnClosed' => array('descr' => 'TotClientConnClosed')
|
||||
);
|
||||
$array = [
|
||||
'TotClientConnOpened' => ['descr' => 'TotClientConnOpened'],
|
||||
'TotClientConnClosed' => ['descr' => 'TotClientConnClosed']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,42 +5,40 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'AcServerConn' => array('descr' => 'AcServerConn'),
|
||||
'CurClientConnClosin' => array('descr' => 'CurClientConnClosin'),
|
||||
'CurServerConnEstabl' => array('descr' => 'CurServerConnEstabl'),
|
||||
'CurClientConnOpenin' => array('descr' => 'CurClientConnOpenin'),
|
||||
'CurClientConnEstabl' => array('descr' => 'CurClientConnEstabl'),
|
||||
'CurServerConnClosin' => array('descr' => 'CurServerConnClosin')
|
||||
);
|
||||
$array = [
|
||||
'AcServerConn' => ['descr' => 'AcServerConn'],
|
||||
'CurClientConnClosin' => ['descr' => 'CurClientConnClosin'],
|
||||
'CurServerConnEstabl' => ['descr' => 'CurServerConnEstabl'],
|
||||
'CurClientConnOpenin' => ['descr' => 'CurClientConnOpenin'],
|
||||
'CurClientConnEstabl' => ['descr' => 'CurClientConnEstabl'],
|
||||
'CurServerConnClosin' => ['descr' => 'CurServerConnClosin']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,37 +5,35 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'CurClientConn' => array('descr' => 'Current Client Connections')
|
||||
);
|
||||
$array = [
|
||||
'CurClientConn' => ['descr' => 'Current Client Connections']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -5,38 +5,36 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotServerConnOpened' => array('descr' => 'TotServerConnOpened'),
|
||||
'TotServerConnClosed' => array('descr' => 'TotServerConnClosed')
|
||||
);
|
||||
$array = [
|
||||
'TotServerConnOpened' => ['descr' => 'TotServerConnOpened'],
|
||||
'TotServerConnClosed' => ['descr' => 'TotServerConnClosed']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,42 +5,40 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'SpareConn' => array('descr' => 'SpareConn'),
|
||||
'SurgeQueueLen' => array('descr' => 'SurgeQueueLen'),
|
||||
'CurServerConnOpenin' => array('descr' => 'CurServerConnOpenin'),
|
||||
'CurPhysicalServers' => array('descr' => 'CurPhysicalServers'),
|
||||
'CurClientConnEstabl' => array('descr' => 'CurClientConnEstabl'),
|
||||
'ReuseHit' => array('descr' => 'ReuseHit')
|
||||
);
|
||||
$array = [
|
||||
'SpareConn' => ['descr' => 'SpareConn'],
|
||||
'SurgeQueueLen' => ['descr' => 'SurgeQueueLen'],
|
||||
'CurServerConnOpenin' => ['descr' => 'CurServerConnOpenin'],
|
||||
'CurPhysicalServers' => ['descr' => 'CurPhysicalServers'],
|
||||
'CurClientConnEstabl' => ['descr' => 'CurClientConnEstabl'],
|
||||
'ReuseHit' => ['descr' => 'ReuseHit']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,38 +5,36 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotZomCltConnFlushe' => array('descr' => 'TotZomCltConnFlushe'),
|
||||
'TotZomSvrConnFlushe' => array('descr' => 'TotZomSvrConnFlushe')
|
||||
);
|
||||
$array = [
|
||||
'TotZomCltConnFlushe' => ['descr' => 'TotZomCltConnFlushe'],
|
||||
'TotZomSvrConnFlushe' => ['descr' => 'TotZomSvrConnFlushe']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,38 +5,36 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotZomAcHalfCloseCl' => array('descr' => 'TotZomAcHalfCloseCl'),
|
||||
'TotZomAcHalfCloseSv' => array('descr' => 'TotZomAcHalfCloseSv')
|
||||
);
|
||||
$array = [
|
||||
'TotZomAcHalfCloseCl' => ['descr' => 'TotZomAcHalfCloseCl'],
|
||||
'TotZomAcHalfCloseSv' => ['descr' => 'TotZomAcHalfCloseSv']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,38 +5,36 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotZomHalfOpenCltCo' => array('descr' => 'TotZomHalfOpenCltCo'),
|
||||
'TotZomHalfOpenSvrCo' => array('descr' => 'TotZomHalfOpenSvrCo')
|
||||
);
|
||||
$array = [
|
||||
'TotZomHalfOpenCltCo' => ['descr' => 'TotZomHalfOpenCltCo'],
|
||||
'TotZomHalfOpenSvrCo' => ['descr' => 'TotZomHalfOpenSvrCo']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,38 +5,36 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotZomPsHalfCloseCl' => array('descr' => 'TotZomPsHalfCloseCl'),
|
||||
'TotZomPsHalfCloseSr' => array('descr' => 'TotZomPsHalfCloseSr')
|
||||
);
|
||||
$array = [
|
||||
'TotZomPsHalfCloseCl' => ['descr' => 'TotZomPsHalfCloseCl'],
|
||||
'TotZomPsHalfCloseSr' => ['descr' => 'TotZomPsHalfCloseSr']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrCookiePktSeqReje' => array('descr' => 'ErrCookiePktSeqReje'),
|
||||
'ErrCookiePktSigReje' => array('descr' => 'ErrCookiePktSigReje'),
|
||||
'ErrCookiePktSeqDrop' => array('descr' => 'ErrCookiePktSeqDrop'),
|
||||
'ErrCookiePktMssReje' => array('descr' => 'ErrCookiePktMssReje')
|
||||
);
|
||||
$array = [
|
||||
'ErrCookiePktSeqReje' => ['descr' => 'ErrCookiePktSeqReje'],
|
||||
'ErrCookiePktSigReje' => ['descr' => 'ErrCookiePktSigReje'],
|
||||
'ErrCookiePktSeqDrop' => ['descr' => 'ErrCookiePktSeqDrop'],
|
||||
'ErrCookiePktMssReje' => ['descr' => 'ErrCookiePktMssReje']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,42 +5,40 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrDataAfterFin' => array('descr' => 'ErrDataAfterFin'),
|
||||
'ErrRstThreshold' => array('descr' => 'ErrRstThreshold'),
|
||||
'ErrOutOfWindowPkts' => array('descr' => 'ErrOutOfWindowPkts'),
|
||||
'ErrSynDroppedConges' => array('descr' => 'ErrSynDroppedConges'),
|
||||
'WaitData' => array('descr' => 'WaitData'),
|
||||
'ErrStrayPkt' => array('descr' => 'ErrStrayPkt')
|
||||
);
|
||||
$array = [
|
||||
'ErrDataAfterFin' => ['descr' => 'ErrDataAfterFin'],
|
||||
'ErrRstThreshold' => ['descr' => 'ErrRstThreshold'],
|
||||
'ErrOutOfWindowPkts' => ['descr' => 'ErrOutOfWindowPkts'],
|
||||
'ErrSynDroppedConges' => ['descr' => 'ErrSynDroppedConges'],
|
||||
'WaitData' => ['descr' => 'WaitData'],
|
||||
'ErrStrayPkt' => ['descr' => 'ErrStrayPkt']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrSvrOutOfOrder' => array('descr' => 'ErrSvrOutOfOrder'),
|
||||
'ErrCltOutOfOrder' => array('descr' => 'ErrCltOutOfOrder'),
|
||||
'ErrCltHole' => array('descr' => 'ErrCltHole'),
|
||||
'ErrSvrHole' => array('descr' => 'ErrSvrHole')
|
||||
);
|
||||
$array = [
|
||||
'ErrSvrOutOfOrder' => ['descr' => 'ErrSvrOutOfOrder'],
|
||||
'ErrCltOutOfOrder' => ['descr' => 'ErrCltOutOfOrder'],
|
||||
'ErrCltHole' => ['descr' => 'ErrCltHole'],
|
||||
'ErrSvrHole' => ['descr' => 'ErrSvrHole']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,44 +5,42 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrFastRetransmissi' => array('descr' => 'ErrFastRetransmissi'),
|
||||
'ErrFirstRetransmiss' => array('descr' => 'ErrFirstRetransmiss'),
|
||||
'ErrSecondRetransmis' => array('descr' => 'ErrSecondRetransmis'),
|
||||
'ErrThirdRetransmiss' => array('descr' => 'ErrThirdRetransmiss'),
|
||||
'ErrForthRetransmiss' => array('descr' => 'ErrForthRetransmiss'),
|
||||
'ErrFifthRetransmiss' => array('descr' => 'ErrFifthRetransmiss'),
|
||||
'ErrSixthRetransmiss' => array('descr' => 'ErrSixthRetransmiss'),
|
||||
'ErrSeventhRetransmi' => array('descr' => 'ErrSeventhRetransmi')
|
||||
);
|
||||
$array = [
|
||||
'ErrFastRetransmissi' => ['descr' => 'ErrFastRetransmissi'],
|
||||
'ErrFirstRetransmiss' => ['descr' => 'ErrFirstRetransmiss'],
|
||||
'ErrSecondRetransmis' => ['descr' => 'ErrSecondRetransmis'],
|
||||
'ErrThirdRetransmiss' => ['descr' => 'ErrThirdRetransmiss'],
|
||||
'ErrForthRetransmiss' => ['descr' => 'ErrForthRetransmiss'],
|
||||
'ErrFifthRetransmiss' => ['descr' => 'ErrFifthRetransmiss'],
|
||||
'ErrSixthRetransmiss' => ['descr' => 'ErrSixthRetransmiss'],
|
||||
'ErrSeventhRetransmi' => ['descr' => 'ErrSeventhRetransmi']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrSvrRetrasmit' => array('descr' => 'ErrSvrRetrasmit'),
|
||||
'ErrCltRetrasmit' => array('descr' => 'ErrCltRetrasmit'),
|
||||
'ErrFullRetrasmit' => array('descr' => 'ErrFullRetrasmit'),
|
||||
'ErrPartialRetrasmit' => array('descr' => 'ErrPartialRetrasmit')
|
||||
);
|
||||
$array = [
|
||||
'ErrSvrRetrasmit' => ['descr' => 'ErrSvrRetrasmit'],
|
||||
'ErrCltRetrasmit' => ['descr' => 'ErrCltRetrasmit'],
|
||||
'ErrFullRetrasmit' => ['descr' => 'ErrFullRetrasmit'],
|
||||
'ErrPartialRetrasmit' => ['descr' => 'ErrPartialRetrasmit']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrRst' => array('descr' => 'ErrRst'),
|
||||
'ErrRstNonEst' => array('descr' => 'ErrRstNonEst'),
|
||||
'ErrRstOutOfWindow' => array('descr' => 'ErrRstOutOfWindow'),
|
||||
'ErrRstInTimewait' => array('descr' => 'ErrRstInTimewait')
|
||||
);
|
||||
$array = [
|
||||
'ErrRst' => ['descr' => 'ErrRst'],
|
||||
'ErrRstNonEst' => ['descr' => 'ErrRstNonEst'],
|
||||
'ErrRstOutOfWindow' => ['descr' => 'ErrRstOutOfWindow'],
|
||||
'ErrRstInTimewait' => ['descr' => 'ErrRstInTimewait']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,45 +5,43 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrBadCheckSum' => array('descr' => 'ErrBadCheckSum'),
|
||||
'ErrSynInSynRcvd' => array('descr' => 'ErrSynInSynRcvd'),
|
||||
'ErrSynInEst' => array('descr' => 'ErrSynInEst'),
|
||||
'ErrSynGiveUp' => array('descr' => 'ErrSynGiveUp'),
|
||||
'ErrSynSentBadAck' => array('descr' => 'ErrSynSentBadAck'),
|
||||
'ErrSynRetry' => array('descr' => 'ErrSynRetry'),
|
||||
'ErrFinRetry' => array('descr' => 'ErrFinRetry'),
|
||||
'ErrFinGiveUp' => array('descr' => 'ErrFinGiveUp'),
|
||||
'ErrFinDup' => array('descr' => 'ErrFinDup')
|
||||
);
|
||||
$array = [
|
||||
'ErrBadCheckSum' => ['descr' => 'ErrBadCheckSum'],
|
||||
'ErrSynInSynRcvd' => ['descr' => 'ErrSynInSynRcvd'],
|
||||
'ErrSynInEst' => ['descr' => 'ErrSynInEst'],
|
||||
'ErrSynGiveUp' => ['descr' => 'ErrSynGiveUp'],
|
||||
'ErrSynSentBadAck' => ['descr' => 'ErrSynSentBadAck'],
|
||||
'ErrSynRetry' => ['descr' => 'ErrSynRetry'],
|
||||
'ErrFinRetry' => ['descr' => 'ErrFinRetry'],
|
||||
'ErrFinGiveUp' => ['descr' => 'ErrFinGiveUp'],
|
||||
'ErrFinDup' => ['descr' => 'ErrFinDup']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,41 +5,39 @@
|
||||
*
|
||||
* 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;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotSyn' => array('descr' => 'Total SYN Packets'),
|
||||
'TotSynProbe' => array('descr' => 'Total SYN Probes'),
|
||||
'TotSvrFin' => array('descr' => 'Total Server FINs'),
|
||||
'TotCltFin' => array('descr' => 'Total Client FINs'),
|
||||
'WaitToSyn' => array('descr' => 'Wait to Syn')
|
||||
);
|
||||
$array = [
|
||||
'TotSyn' => ['descr' => 'Total SYN Packets'],
|
||||
'TotSynProbe' => ['descr' => 'Total SYN Probes'],
|
||||
'TotSvrFin' => ['descr' => 'Total Server FINs'],
|
||||
'TotCltFin' => ['descr' => 'Total Client FINs'],
|
||||
'WaitToSyn' => ['descr' => 'Wait to Syn']
|
||||
];
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,19 +5,19 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds_in = "TotRxBytes";
|
||||
$ds_in = "TotRxBytes";
|
||||
$ds_out = "TotTxBytes";
|
||||
|
||||
$multiplier = 8;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,18 +5,18 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds_in = "CurClientConn";
|
||||
$ds_in = "CurClientConn";
|
||||
$ds_out = "CurServerConn";
|
||||
|
||||
$in_text = "Client";
|
||||
$in_text = "Client";
|
||||
$out_text = "Server";
|
||||
|
||||
$colour_area_in = "78c7eb";
|
||||
@ -31,6 +31,6 @@ $colour_area_out_max = "AAAAAA";
|
||||
$graph_max = 1;
|
||||
$unit_text = "Connections";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -26,6 +26,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -26,6 +26,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -26,6 +26,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -26,6 +26,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -26,6 +26,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,44 +5,42 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$xre = array('ErrFirstRetransmiss' => 'First',
|
||||
'ErrSecondRetransmis' => 'Second',
|
||||
'ErrThirdRetransmiss' => 'Third',
|
||||
'ErrForthRetransmiss' => 'Fourth',
|
||||
'ErrFifthRetransmiss' => 'Fifth',
|
||||
'ErrSixthRetransmiss' => 'Sixth',
|
||||
'ErrSeventhRetransmi' => 'Seventh');
|
||||
$xre = ['ErrFirstRetransmiss' => 'First',
|
||||
'ErrSecondRetransmis' => 'Second',
|
||||
'ErrThirdRetransmiss' => 'Third',
|
||||
'ErrForthRetransmiss' => 'Fourth',
|
||||
'ErrFifthRetransmiss' => 'Fifth',
|
||||
'ErrSixthRetransmiss' => 'Sixth',
|
||||
'ErrSeventhRetransmi' => 'Seventh'];
|
||||
|
||||
foreach ($xre as $stat => $descr)
|
||||
{
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $descr;
|
||||
$rrd_list[$i]['ds'] = $stat;
|
||||
}
|
||||
foreach ($xre as $stat => $descr) {
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $descr;
|
||||
$rrd_list[$i]['ds'] = $stat;
|
||||
}
|
||||
}
|
||||
|
||||
$unit_text = "Retransmissions";
|
||||
|
||||
$units = '';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'reds_8';
|
||||
$colours = 'reds_8';
|
||||
|
||||
$scale_min = "0";
|
||||
#$scale_max = "100";
|
||||
|
||||
$text_orig = 1;
|
||||
$nototal = 1;
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,28 +5,28 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds_in = "TotRxBytes";
|
||||
$ds_in = "TotRxBytes";
|
||||
$ds_out = "TotTxBytes";
|
||||
|
||||
$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
|
||||
|
@ -5,36 +5,33 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of svcs and build an rrd_list array using arguments passed from parent
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_services` WHERE `device_id` = ?", array($device['device_id'])) as $svc)
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, "nscaler-svc-".$svc['svc_name'].".rrd");
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_services` WHERE `device_id` = ?", [$device['device_id']]) as $svc) {
|
||||
$rrd_filename = get_rrd_path($device, "nscaler-svc-" . $svc['svc_name'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $svc['svc_name'];
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $svc['svc_name'];
|
||||
|
||||
if(isset($ds_in) && isset($ds_out))
|
||||
{
|
||||
$rrd_list[$i]['descr_in'] = $svc['svc_name'];
|
||||
$rrd_list[$i]['descr_out'] = $svc['svc_ip'] . ":" . $svc['svc_port'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
} else {
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
if (isset($ds_in) && isset($ds_out)) {
|
||||
$rrd_list[$i]['descr_in'] = $svc['svc_name'];
|
||||
$rrd_list[$i]['descr_out'] = $svc['svc_ip'] . ":" . $svc['svc_port'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
} else {
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
unset($ignore);
|
||||
unset($ignore);
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,23 +5,23 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of svcs and then call the multi_bits grapher to generate from the list
|
||||
|
||||
$ds_in = "TotalRequestBytes";
|
||||
$ds_in = "TotalRequestBytes";
|
||||
$ds_out = "TotalResponseBytes";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$units ='b';
|
||||
$total_units ='B';
|
||||
$colours_in ='greens';
|
||||
$multiplier = "8";
|
||||
$units = 'b';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
$multiplier = "8";
|
||||
$colours_out = 'blues';
|
||||
|
||||
#$nototal = 1;
|
||||
@ -31,11 +31,11 @@ $ds_out = "OUTOCTETS";
|
||||
|
||||
$graph_title .= "::bits";
|
||||
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_out = "000099";
|
||||
$colour_area_in = "91B13C";
|
||||
$colour_area_in = "91B13C";
|
||||
$colour_area_out = "8080BD";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,25 +5,23 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$i = 1;
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_services` AS NS, `devices` AS D WHERE D.device_id = ? AND NS.device_id = D.device_id", array($device['device_id'])) as $svc)
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, "nscaler-svc-".$svc['svc_name'].".rrd");
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_services` AS NS, `devices` AS D WHERE D.device_id = ? AND NS.device_id = D.device_id", [$device['device_id']]) as $svc) {
|
||||
$rrd_filename = get_rrd_path($device, "nscaler-svc-" . $svc['svc_name'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $svc['svc_label'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $svc['svc_label'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,16 +18,16 @@ $unit_text = "Connections";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$units ='pps';
|
||||
$total_units ='Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in ='purples';
|
||||
$units = 'pps';
|
||||
$total_units = 'Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in = 'purples';
|
||||
$colours_out = 'oranges';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= "::connections";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,16 +18,16 @@ $unit_text = "Packets";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$units ='pps';
|
||||
$total_units ='Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in ='purples';
|
||||
$units = 'pps';
|
||||
$total_units = 'Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in = 'purples';
|
||||
$colours_out = 'oranges';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= "::packets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,16 +18,16 @@ $unit_text = "Requests";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$units ='pps';
|
||||
$total_units ='Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in ='purples';
|
||||
$units = 'pps';
|
||||
$total_units = 'Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in = 'purples';
|
||||
$colours_out = 'oranges';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= "::reqs";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,27 +5,27 @@
|
||||
*
|
||||
* 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 = "SurgeCount";
|
||||
$ds = "SurgeCount";
|
||||
|
||||
$unit_text = "Surge";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$units = '';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$multiplier = 1;
|
||||
$colours ='purples';
|
||||
$multiplier = 1;
|
||||
$colours = 'purples';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= ":: Surge Count";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,18 +5,18 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$colours='mixed';
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$ds = "AvgSvrTTFB";
|
||||
$ds = "AvgSvrTTFB";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/netscalersvc_common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/device/netscalersvc_common.inc.php");
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,30 +5,28 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of svcs and build an rrd_list array using arguments passed from parent
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_servicegroupmembers` WHERE `device_id` = ?", array($device['device_id'])) as $svc)
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, "nscaler-svcgrpmem-".$svc['svc_name'].".rrd");
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_servicegroupmembers` WHERE `device_id` = ?", [$device['device_id']]) as $svc) {
|
||||
$rrd_filename = get_rrd_path($device, "nscaler-svcgrpmem-" . $svc['svc_name'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $svc['svc_name'];
|
||||
$rrd_list[$i]['descr_in'] = $svc['svc_name'];
|
||||
$rrd_list[$i]['descr_out'] = $svc['svc_ip'] . ":" . $svc['svc_port'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $svc['svc_name'];
|
||||
$rrd_list[$i]['descr_in'] = $svc['svc_name'];
|
||||
$rrd_list[$i]['descr_out'] = $svc['svc_ip'] . ":" . $svc['svc_port'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
}
|
||||
|
||||
unset($ignore);
|
||||
unset($ignore);
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,23 +5,23 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of svcs and then call the multi_bits grapher to generate from the list
|
||||
|
||||
$ds_in = "TotalRequestBytes";
|
||||
$ds_in = "TotalRequestBytes";
|
||||
$ds_out = "TotalResponseBytes";
|
||||
|
||||
include("netscalersvcgrpmem.inc.php");
|
||||
|
||||
$units ='b';
|
||||
$total_units ='B';
|
||||
$colours_in ='greens';
|
||||
$multiplier = "8";
|
||||
$units = 'b';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
$multiplier = "8";
|
||||
$colours_out = 'blues';
|
||||
|
||||
#$nototal = 1;
|
||||
@ -31,11 +31,11 @@ $ds_out = "OUTOCTETS";
|
||||
|
||||
$graph_title .= "::bits";
|
||||
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_out = "000099";
|
||||
$colour_area_in = "91B13C";
|
||||
$colour_area_in = "91B13C";
|
||||
$colour_area_out = "8080BD";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,25 +5,23 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$i = 1;
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_servicegroupmembers` AS NS, `devices` AS D WHERE D.device_id = ? AND NS.device_id = D.device_id", array($device['device_id'])) as $svc)
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, "nscaler-svcgrpmem-".$svc['svc_name'].".rrd");
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_servicegroupmembers` AS NS, `devices` AS D WHERE D.device_id = ? AND NS.device_id = D.device_id", [$device['device_id']]) as $svc) {
|
||||
$rrd_filename = get_rrd_path($device, "nscaler-svcgrpmem-" . $svc['svc_name'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $svc['svc_label'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $svc['svc_label'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,16 +18,16 @@ $unit_text = "Connections";
|
||||
|
||||
include("netscalersvcgrpmem.inc.php");
|
||||
|
||||
$units ='pps';
|
||||
$total_units ='Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in ='purples';
|
||||
$units = 'pps';
|
||||
$total_units = 'Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in = 'purples';
|
||||
$colours_out = 'oranges';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= "::connections";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,16 +18,16 @@ $unit_text = "Packets";
|
||||
|
||||
include("netscalersvcgrpmem.inc.php");
|
||||
|
||||
$units ='pps';
|
||||
$total_units ='Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in ='purples';
|
||||
$units = 'pps';
|
||||
$total_units = 'Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in = 'purples';
|
||||
$colours_out = 'oranges';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= "::packets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,16 +18,16 @@ $unit_text = "Requests";
|
||||
|
||||
include("netscalersvcgrpmem.inc.php");
|
||||
|
||||
$units ='pps';
|
||||
$total_units ='Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in ='purples';
|
||||
$units = 'pps';
|
||||
$total_units = 'Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in = 'purples';
|
||||
$colours_out = 'oranges';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= "::reqs";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,18 +5,18 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$colours='mixed';
|
||||
$colours = 'mixed';
|
||||
$nototal = 1;
|
||||
$ds = "AvgSvrTTFB";
|
||||
$ds = "AvgSvrTTFB";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/netscalersvc_common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/device/netscalersvc_common.inc.php");
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,30 +5,28 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of vsvrs and build an rrd_list array using arguments passed from parent
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_vservers` WHERE `device_id` = ?", array($device['device_id'])) as $vsvr)
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-vsvr-".$vsvr['vsvr_name'].".rrd");
|
||||
foreach (dbFetchRows("SELECT * FROM `netscaler_vservers` WHERE `device_id` = ?", [$device['device_id']]) as $vsvr) {
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-vsvr-" . $vsvr['vsvr_name'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vsvr['vsvr_name'];
|
||||
$rrd_list[$i]['descr_in'] = $vsvr['vsvr_name'];
|
||||
$rrd_list[$i]['descr_out'] = $vsvr['vsvr_ip'] . ":" . $vsvr['vsvr_port'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $vsvr['vsvr_name'];
|
||||
$rrd_list[$i]['descr_in'] = $vsvr['vsvr_name'];
|
||||
$rrd_list[$i]['descr_out'] = $vsvr['vsvr_ip'] . ":" . $vsvr['vsvr_port'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
}
|
||||
|
||||
unset($ignore);
|
||||
unset($ignore);
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,23 +5,23 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of vsvrs and then call the multi_bits grapher to generate from the list
|
||||
|
||||
$ds_in = "TotalRequestBytes";
|
||||
$ds_in = "TotalRequestBytes";
|
||||
$ds_out = "TotalResponseBytes";
|
||||
|
||||
include("netscalervsvr.inc.php");
|
||||
|
||||
$units ='b';
|
||||
$total_units ='B';
|
||||
$colours_in ='greens';
|
||||
$multiplier = "8";
|
||||
$units = 'b';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
$multiplier = "8";
|
||||
$colours_out = 'blues';
|
||||
|
||||
#$nototal = 1;
|
||||
@ -31,11 +31,11 @@ $ds_out = "OUTOCTETS";
|
||||
|
||||
$graph_title .= "::bits";
|
||||
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_out = "000099";
|
||||
$colour_area_in = "91B13C";
|
||||
$colour_area_in = "91B13C";
|
||||
$colour_area_out = "8080BD";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,16 +18,16 @@ $unit_text = "Connections";
|
||||
|
||||
include("netscalervsvr.inc.php");
|
||||
|
||||
$units ='pps';
|
||||
$total_units ='Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in ='purples';
|
||||
$units = 'pps';
|
||||
$total_units = 'Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in = 'purples';
|
||||
$colours_out = 'oranges';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= "::connections";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,9 +18,9 @@ $unit_text = "Hit/Miss";
|
||||
|
||||
include("netscalervsvr.inc.php");
|
||||
|
||||
$units ='pps';
|
||||
$total_units ='Pkts';
|
||||
$multiplier = 1;
|
||||
$units = 'pps';
|
||||
$total_units = 'Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in = 'greens';
|
||||
$colours_out = 'oranges';
|
||||
|
||||
@ -28,6 +28,6 @@ $colours_out = 'oranges';
|
||||
|
||||
$graph_title .= "::packets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user