initial commit; version 22.5.12042
This commit is contained in:
23
html/includes/graphs/device/NETAPP-MIB_disk_io.inc.php
Normal file
23
html/includes/graphs/device/NETAPP-MIB_disk_io.inc.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp-mib_misc.rrd");
|
||||
|
||||
$ds_in = "DiskReadBytes";
|
||||
$ds_out = "DiskWriteBytes";
|
||||
|
||||
$format = "octets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
21
html/includes/graphs/device/NETAPP-MIB_net_io.inc.php
Normal file
21
html/includes/graphs/device/NETAPP-MIB_net_io.inc.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp-mib_misc.rrd");
|
||||
|
||||
$ds_in = "NetRcvdBytes";
|
||||
$ds_out = "NetSentBytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
23
html/includes/graphs/device/NETAPP-MIB_tape_io.inc.php
Normal file
23
html/includes/graphs/device/NETAPP-MIB_tape_io.inc.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp-mib_misc.rrd");
|
||||
|
||||
$ds_in = "TapeReadBytes";
|
||||
$ds_out = "TapeWriteBytes";
|
||||
|
||||
$format = "octets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
42
html/includes/graphs/device/aruba-cppm.inc.php
Normal file
42
html/includes/graphs/device/aruba-cppm.inc.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @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
|
||||
*
|
||||
*/
|
||||
|
||||
// define rrd filename (static)
|
||||
$rrd_filename = get_rrd_path($device, "graphs-aruba-cppm-mib-radiusServerTable-0.rrd");
|
||||
|
||||
// define variables
|
||||
$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;
|
||||
}
|
||||
|
||||
// graph look
|
||||
$unit_text = 'Milliseconds';
|
||||
$units = 'ms';
|
||||
$total_units = 'ms';
|
||||
$colours ='mixed';
|
||||
$nototal = 1;
|
||||
$scale_min = "0";
|
||||
$simple_rrd = TRUE;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
26
html/includes/graphs/device/arubacontroller_numaps.inc.php
Normal file
26
html/includes/graphs/device/arubacontroller_numaps.inc.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "aruba-controller.rrd");
|
||||
|
||||
$ds = "NUMAPS";
|
||||
$colour_line = "8C0000";
|
||||
$colour_area = "EBCD8B";
|
||||
$colour_area_max = "cc9999";
|
||||
$unit_text = "APs";
|
||||
$line_text = 'Active APs';
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "aruba-controller.rrd");
|
||||
|
||||
$ds = "NUMCLIENTS";
|
||||
$colour_line = "008C00";
|
||||
$colour_area = "CDEB8B";
|
||||
//$colour_area_max = "cc9999";
|
||||
$unit_text = "Clients";
|
||||
$line_text = 'Clients';
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
29
html/includes/graphs/device/asyncos_workq.inc.php
Normal file
29
html/includes/graphs/device/asyncos_workq.inc.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "asyncos_workq.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$ds = "DEPTH";
|
||||
|
||||
$colour_area = "9999cc";
|
||||
$colour_line = "0000cc";
|
||||
|
||||
$colour_area_max = "9999cc";
|
||||
|
||||
$unit_text = "Messages";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
21
html/includes/graphs/device/auth.inc.php
Normal file
21
html/includes/graphs/device/auth.inc.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
if ($auth || device_permitted($device['device_id']))
|
||||
{
|
||||
$title = generate_device_link($device);
|
||||
$graph_title = $device['hostname'];
|
||||
$auth = TRUE; ///FIXME. Who? --mike
|
||||
}
|
||||
|
||||
//EOL
|
36
html/includes/graphs/device/availability.inc.php
Normal file
36
html/includes/graphs/device/availability.inc.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "1";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "status.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' '";
|
||||
$rrd_options .= " COMMENT:'Current'";
|
||||
$rrd_options .= " COMMENT:'Historical\\j'";
|
||||
|
||||
$rrd_options .= " DEF:status=$rrd_filename_escape:status:AVERAGE";
|
||||
$rrd_options .= " CDEF:percent=status,100,*";
|
||||
$rrd_options .= " CDEF:down=status,1,LT,status,UNKN,IF";
|
||||
$rrd_options .= " CDEF:percentdown=down,100,*";
|
||||
$rrd_options .= " AREA:percent#00FF0060";
|
||||
$rrd_options .= " AREA:percentdown#FF000060";
|
||||
$rrd_options .= " LINE1.5:percent#009900:Availability";
|
||||
$rrd_options .= " LINE1.5:percentdown#cc0000";
|
||||
$rrd_options .= " GPRINT:status:LAST:%1.0lf";
|
||||
$rrd_options .= " GPRINT:percent:AVERAGE:%3.5lf%%\\j";
|
||||
|
||||
// EOF
|
78
html/includes/graphs/device/bits.inc.php
Normal file
78
html/includes/graphs/device/bits.inc.php
Normal file
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of ports and then call the multi_bits grapher to generate from the list
|
||||
|
||||
$ds_in = "INOCTETS";
|
||||
$ds_out = "OUTOCTETS";
|
||||
|
||||
$graph_return = array('descr' => 'Device total traffic in bits/sec.');
|
||||
|
||||
// init
|
||||
$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 ';
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
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';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
$multiplier = "8";
|
||||
$colours_out = 'blues';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$ds_in = "INOCTETS";
|
||||
$ds_out = "OUTOCTETS";
|
||||
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_bits_separated.inc.php");
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_data_separated.inc.php");
|
||||
|
||||
// EOF
|
43
html/includes/graphs/device/bluecoat_cache.inc.php
Normal file
43
html/includes/graphs/device/bluecoat_cache.inc.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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[1]['filename'] = $file;
|
||||
$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[3]['filename'] = $file;
|
||||
$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";
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Requests/sec";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
33
html/includes/graphs/device/bluecoat_http_client.inc.php
Normal file
33
html/includes/graphs/device/bluecoat_http_client.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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[1]['filename'] = $file;
|
||||
$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";
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Connections/sec";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
33
html/includes/graphs/device/bluecoat_http_server.inc.php
Normal file
33
html/includes/graphs/device/bluecoat_http_server.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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[1]['filename'] = $file;
|
||||
$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";
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Connections/sec";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
31
html/includes/graphs/device/bluecoat_server.inc.php
Normal file
31
html/includes/graphs/device/bluecoat_server.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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[1]['filename'] = $file;
|
||||
$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");
|
||||
|
||||
// EOF
|
37
html/includes/graphs/device/bluecoat_tcp.inc.php
Normal file
37
html/includes/graphs/device/bluecoat_tcp.inc.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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[1]['filename'] = $file;
|
||||
$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[3]['filename'] = $file;
|
||||
$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");
|
26
html/includes/graphs/device/bluecoat_tcp_est.inc.php
Normal file
26
html/includes/graphs/device/bluecoat_tcp_est.inc.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$file = get_rrd_path($device, "bluecoat-tcp-stats.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $file;
|
||||
$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");
|
||||
|
27
html/includes/graphs/device/bng_active_sessions.inc.php
Normal file
27
html/includes/graphs/device/bng_active_sessions.inc.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "bng-active-sessions.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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:";
|
||||
$rrd_options .= " GPRINT:value:LAST:%6.2lf GPRINT:value:MIN:%7.2lf";
|
||||
$rrd_options .= " GPRINT:value:MAX:%7.2lf 'GPRINT:value:AVERAGE:%7.2lf\\l'";
|
||||
|
||||
// EOF
|
21
html/includes/graphs/device/cipsec_flow_bits.inc.php
Normal file
21
html/includes/graphs/device/cipsec_flow_bits.inc.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "cipsec_flow.rrd");
|
||||
|
||||
$ds_in = "InOctets";
|
||||
$ds_out = "OutOctets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
32
html/includes/graphs/device/cipsec_flow_pkts.inc.php
Normal file
32
html/includes/graphs/device/cipsec_flow_pkts.inc.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "cipsec_flow.rrd");
|
||||
|
||||
$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_out = $config['colours']['graphs']['pkts']['out_area'];
|
||||
$colour_line_out = $config['colours']['graphs']['pkts']['out_line'];
|
||||
|
||||
$colour_area_in_max = $config['colours']['graphs']['pkts']['in_max'];
|
||||
$colour_area_out_max = $config['colours']['graphs']['pkts']['out_max'];
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Pkts ";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
// EOF
|
94
html/includes/graphs/device/cipsec_flow_stats.inc.php
Normal file
94
html/includes/graphs/device/cipsec_flow_stats.inc.php
Normal file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "cipsec_flow.rrd");
|
||||
|
||||
$i=0;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$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";
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$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";
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$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";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$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";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$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";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$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";
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$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";
|
||||
|
||||
#$units='%';
|
||||
#$total_units='%';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
#$scale_max = "100";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
26
html/includes/graphs/device/cipsec_flow_tunnels.inc.php
Normal file
26
html/includes/graphs/device/cipsec_flow_tunnels.inc.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
$colour_area_max = "aaaaacc";
|
||||
$scale_min = 0;
|
||||
$unit_text = "Active Tunnels";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
122
html/includes/graphs/device/collectd.inc.php
Normal file
122
html/includes/graphs/device/collectd.inc.php
Normal file
@ -0,0 +1,122 @@
|
||||
<?php // vim:fenc=utf-8:filetype=php:ts=4
|
||||
/*
|
||||
* Copyright (C) 2009 Bruno Prémont <bonbons AT linux-vserver.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License as published by the Free Software
|
||||
* Foundation; only version 2 of the License is applicable.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied wadsnty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
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");
|
||||
|
||||
|
||||
|
||||
// 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");
|
||||
|
||||
$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");
|
||||
|
||||
$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");
|
||||
|
||||
$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");
|
||||
|
||||
$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");
|
||||
|
||||
// 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;
|
||||
|
||||
$opts = array();
|
||||
$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(isset($rrd_cmd))
|
||||
{
|
||||
if ($vars['from']) { $from = $vars['from']; }
|
||||
if ($vars['to']) { $to = $vars['to']; }
|
||||
$rrd_cmd .= " -s " . escapeshellarg($from) . " -e " . escapeshellarg($to);
|
||||
}
|
||||
|
||||
/*
|
||||
if ($vars['legend'] == "no") { $rrd_cmd .= " -g "; }
|
||||
|
||||
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;
|
||||
$rrd_options .= $rrd_cmd;
|
||||
|
||||
// EOF
|
50
html/includes/graphs/device/counter.inc.php
Normal file
50
html/includes/graphs/device/counter.inc.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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;
|
||||
}
|
||||
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++;
|
||||
}
|
||||
}
|
||||
|
||||
$unit_text = $unit_long;
|
||||
|
||||
$units = '%';
|
||||
$total_units = '%';
|
||||
$colours ='mixed-10c';
|
||||
$nototal = 1;
|
||||
$scale_rigid = FALSE;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
60
html/includes/graphs/device/cras_sessions.inc.php
Normal file
60
html/includes/graphs/device/cras_sessions.inc.php
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "cras_sessions.rrd");
|
||||
|
||||
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";
|
||||
$rrd_options .= " DEF:l2l=$rrd_filename_escape:l2l:AVERAGE";
|
||||
$rrd_options .= " DEF:lb=$rrd_filename_escape:lb:AVERAGE";
|
||||
$rrd_options .= " DEF:svc=$rrd_filename_escape:svc:AVERAGE";
|
||||
$rrd_options .= " DEF:webvpn=$rrd_filename_escape:webvpn:AVERAGE";
|
||||
//$rrd_options .= " CDEF:webvpn_only=webvpn,svc,-";
|
||||
|
||||
$rrd_options .= " COMMENT:'Sessions Current Average Maximum\\n'";
|
||||
|
||||
$rrd_options .= " AREA:svc#aa0000:'SSLVPN Tunnels':STACK";
|
||||
$rrd_options .= " GPRINT:svc:LAST:'%6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:svc:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:svc:MAX:' %6.2lf%s\\n'";
|
||||
|
||||
$rrd_options .= " AREA:webvpn#999999:'Clientless VPN':STACK";
|
||||
$rrd_options .= " GPRINT:webvpn:LAST:'%6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:webvpn:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:webvpn:MAX:' %6.2lf%s\\n'";
|
||||
|
||||
$rrd_options .= " AREA:ipsec#00aa00:'IPSEC ':STACK";
|
||||
$rrd_options .= " GPRINT:ipsec:LAST:'%6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:ipsec:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:ipsec:MAX:' %6.2lf%s\\n'";
|
||||
|
||||
$rrd_options .= " AREA:l2l#aaaa00:'Lan-to-Lan ':STACK";
|
||||
$rrd_options .= " GPRINT:l2l:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:l2l:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:l2l:MAX:' %6.2lf%s\\n'";
|
||||
|
||||
$rrd_options .= " AREA:email#0000aa:'Email ':STACK";
|
||||
$rrd_options .= " GPRINT:email:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:email:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:email:MAX:' %6.2lf%s\\n'";
|
||||
|
||||
$rrd_options .= " AREA:lb#aa00aa:'Load Balancer ':STACK";
|
||||
$rrd_options .= " GPRINT:lb:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:lb:AVERAGE:' %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:lb:MAX:' %6.2lf%s\\n'";
|
||||
|
||||
// EOF
|
20
html/includes/graphs/device/definition.inc.php
Normal file
20
html/includes/graphs/device/definition.inc.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// NOTE. This used together with graphs defined from definitions ONLY
|
||||
|
||||
switch ($subtype)
|
||||
{
|
||||
}
|
||||
|
||||
// EOL
|
16
html/includes/graphs/device/diskio.inc.php
Normal file
16
html/includes/graphs/device/diskio.inc.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include("diskio_ops.inc.php");
|
||||
|
||||
// EOF
|
30
html/includes/graphs/device/diskio_bits.inc.php
Normal file
30
html/includes/graphs/device/diskio_bits.inc.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$units = '';
|
||||
$unit_text = 'Bits/sec';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'greens';
|
||||
$multiplier = "1";
|
||||
$colours_out = 'blues';
|
||||
|
||||
$ds_in = "read";
|
||||
$ds_out = "written";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/diskio_common.inc.php");
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_bits_separated.inc.php");
|
||||
|
||||
// EOF
|
29
html/includes/graphs/device/diskio_common.inc.php
Normal file
29
html/includes/graphs/device/diskio_common.inc.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
30
html/includes/graphs/device/diskio_ops.inc.php
Normal file
30
html/includes/graphs/device/diskio_ops.inc.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$units = '';
|
||||
$unit_text = 'Operations/sec';
|
||||
$total_units = 'B';
|
||||
$colours_in = 'reds';
|
||||
$multiplier = "1";
|
||||
$colours_out = 'oranges';
|
||||
|
||||
$ds_in = "reads";
|
||||
$ds_out = "writes";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/diskio_common.inc.php");
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
69
html/includes/graphs/device/edac_errors.inc.php
Normal file
69
html/includes/graphs/device/edac_errors.inc.php
Normal file
@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$unit_text = "Errors";
|
||||
$nototal = 1;
|
||||
|
||||
$i = 0;
|
||||
|
||||
$colourset = "mixed";
|
||||
|
||||
$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 ($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;
|
||||
}
|
||||
|
||||
$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");
|
||||
|
||||
// EOF
|
27
html/includes/graphs/device/firewall_sessions_ipv4.inc.php
Normal file
27
html/includes/graphs/device/firewall_sessions_ipv4.inc.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "firewall-sessions-ipv4.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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:";
|
||||
$rrd_options .= " GPRINT:value:LAST:%6.2lf GPRINT:value:MIN:%7.2lf";
|
||||
$rrd_options .= " GPRINT:value:MAX:%7.2lf 'GPRINT:value:AVERAGE:%7.2lf\\l'";
|
||||
|
||||
// EOF
|
31
html/includes/graphs/device/fortigate_cpu.inc.php
Normal file
31
html/includes/graphs/device/fortigate_cpu.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "fortigate_cpu.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$ds = "LOAD";
|
||||
|
||||
$colour_area = "9999cc";
|
||||
$colour_line = "0000cc";
|
||||
|
||||
$colour_area_max = "9999cc";
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "% CPU";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
31
html/includes/graphs/device/fuser.inc.php
Normal file
31
html/includes/graphs/device/fuser.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "fuser.rrd");
|
||||
|
||||
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'";
|
||||
|
||||
$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
|
26
html/includes/graphs/device/graph.inc.php
Normal file
26
html/includes/graphs/device/graph.inc.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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");
|
||||
} else {
|
||||
// graph_error($type.'_'.$subtype); // Graph Template Missing;
|
||||
}
|
||||
|
||||
// EOL
|
31
html/includes/graphs/device/imagingdrum.inc.php
Normal file
31
html/includes/graphs/device/imagingdrum.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "drum.rrd");
|
||||
|
||||
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'";
|
||||
|
||||
$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
|
49
html/includes/graphs/device/imagingdrums.inc.php
Normal file
49
html/includes/graphs/device/imagingdrums.inc.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -l 0 -E ";
|
||||
|
||||
$iter = "1";
|
||||
$rrd_options .= " COMMENT:'Imaging Drum level Cur Min Max\\n'";
|
||||
|
||||
$drums = array(
|
||||
'Cyan' => 'c',
|
||||
'Magenta' => 'm',
|
||||
'Yellow' => 'y',
|
||||
'Black' => 'k',
|
||||
);
|
||||
|
||||
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'];
|
||||
|
||||
$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";
|
||||
|
||||
$iter++;
|
||||
}
|
||||
|
||||
// EOF
|
99
html/includes/graphs/device/ipSystemStats.inc.php
Normal file
99
html/includes/graphs/device/ipSystemStats.inc.php
Normal file
@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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"));
|
||||
|
||||
$rrd_options .= " DEF:InForwDatagrams_4=$rrd_filename_4:InForwDatagrams:AVERAGE";
|
||||
$rrd_options .= " DEF:InDelivers_4=$rrd_filename_4:InDelivers:AVERAGE";
|
||||
$rrd_options .= " DEF:InReceives_4=$rrd_filename_4:InReceives:AVERAGE";
|
||||
$rrd_options .= " DEF:InDiscards_4=$rrd_filename_4:InDiscards:AVERAGE";
|
||||
|
||||
$rrd_options .= " DEF:OutForwDatagrams_4=$rrd_filename_4:OutForwDatagrams:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutForwDatagrams_4_n=OutForwDatagrams_4,-1,*";
|
||||
$rrd_options .= " DEF:OutRequests_4=$rrd_filename_4:OutRequests:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutRequests_4_n=OutRequests_4,-1,*";
|
||||
$rrd_options .= " DEF:OutDiscards_4=$rrd_filename_4:OutDiscards:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutDiscards_4_n=OutDiscards_4,-1,*";
|
||||
$rrd_options .= " DEF:OutNoRoutes_4=$rrd_filename_4:InDiscards:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutNoRoutes_4_n=OutNoRoutes_4,-1,*";
|
||||
|
||||
$rrd_options .= " DEF:InForwDatagrams_6=$rrd_filename_6:InForwDatagrams:AVERAGE";
|
||||
$rrd_options .= " DEF:InDelivers_6=$rrd_filename_6:InDelivers:AVERAGE";
|
||||
$rrd_options .= " DEF:InReceives_6=$rrd_filename_6:InReceives:AVERAGE";
|
||||
$rrd_options .= " DEF:InDiscards_6=$rrd_filename_6:InDiscards:AVERAGE";
|
||||
|
||||
$rrd_options .= " DEF:OutForwDatagrams_6=$rrd_filename_6:OutForwDatagrams:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutForwDatagrams_6_n=OutForwDatagrams_6,-1,*";
|
||||
$rrd_options .= " DEF:OutRequests_6=$rrd_filename_6:OutRequests:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutRequests_6_n=OutRequests_6,-1,*";
|
||||
$rrd_options .= " DEF:OutDiscards_6=$rrd_filename_6:OutDiscards:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutDiscards_6_n=OutDiscards_6,-1,*";
|
||||
$rrd_options .= " DEF:OutNoRoutes_6=$rrd_filename_6:InDiscards:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutNoRoutes_6_n=OutNoRoutes_6,-1,*";
|
||||
|
||||
$rrd_options .= " COMMENT:'Packets/sec Current Average Maximum\\n'";
|
||||
|
||||
$rrd_options .= " AREA:InReceives_4#CDEB8B:'InReceives v4'";
|
||||
$rrd_options .= " GPRINT:InReceives_4:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InReceives_4:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InReceives_4:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:InReceives_6#8C9E5E:' v6':STACK";
|
||||
$rrd_options .= " GPRINT:InReceives_6:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InReceives_6:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InReceives_6:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:OutRequests_4_n#C3D9FF:'OutRequests v4'";
|
||||
$rrd_options .= " GPRINT:OutRequests_4:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutRequests_4:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutRequests_4:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:OutRequests_6_n#8D9CB7:' v6':STACK";
|
||||
$rrd_options .= " GPRINT:OutRequests_6:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutRequests_6:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutRequests_6:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:InForwDatagrams_4#AF63AF:'InForward v4'";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams_4:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams_4:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams_4:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:InForwDatagrams_6#3F003F:' v6':STACK";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams_6:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams_6:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams_6:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:OutForwDatagrams_4#AF63AF:'OutForward v4'";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams_4:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams_4:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams_4:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:OutForwDatagrams_6#3F003F:' v6':STACK";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams_6:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams_6:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams_6:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:InDelivers_4#00cc00:'InDelivers v4'";
|
||||
$rrd_options .= " GPRINT:InDelivers_4:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InDelivers_4:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InDelivers_4:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:InDelivers_6#3F003F:' v6'";
|
||||
$rrd_options .= " GPRINT:InDelivers_6:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InDelivers_6:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InDelivers_6:MAX:%6.2lf%s\\n";
|
||||
|
||||
// EOF
|
62
html/includes/graphs/device/ipsystemstats_ipv4.inc.php
Normal file
62
html/includes/graphs/device/ipsystemstats_ipv4.inc.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ipSystemStats-ipv4.rrd");
|
||||
|
||||
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";
|
||||
$rrd_options .= " DEF:InReceives=$rrd_filename_escape:InReceives:AVERAGE";
|
||||
$rrd_options .= " DEF:InDiscards=$rrd_filename_escape:InDiscards:AVERAGE";
|
||||
|
||||
$rrd_options .= " DEF:OutForwDatagrams=$rrd_filename_escape:OutForwDatagrams:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutForwDatagrams_n=OutForwDatagrams,-1,*";
|
||||
$rrd_options .= " DEF:OutRequests=$rrd_filename_escape:OutRequests:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutRequests_n=OutRequests,-1,*";
|
||||
$rrd_options .= " DEF:OutDiscards=$rrd_filename_escape:OutDiscards:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutDiscards_n=OutDiscards,-1,*";
|
||||
$rrd_options .= " DEF:OutNoRoutes=$rrd_filename_escape:OutNoRoutes:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutNoRoutes_n=OutNoRoutes,-1,*";
|
||||
|
||||
$rrd_options .= " COMMENT:'Packets/sec Current Average Maximum\\n'";
|
||||
|
||||
$rrd_options .= " LINE1.25:InReceives#7D9B5B:'InReceives v4'";
|
||||
$rrd_options .= " GPRINT:InReceives:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InReceives:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InReceives:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:InForwDatagrams#AF63AF:'InForward v4'";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:InDelivers#CDEB8B:'InDelivers v4':STACK";
|
||||
$rrd_options .= " GPRINT:InDelivers:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InDelivers:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InDelivers:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:OutRequests_n#C3D9FF:'OutRequests v4'";
|
||||
$rrd_options .= " GPRINT:OutRequests:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutRequests:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutRequests:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:OutForwDatagrams#AF63AF:'OutForward v4'";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:InReceives#9DaB6B:";
|
||||
$rrd_options .= " LINE1.25:OutRequests_n#93a6eF:";
|
||||
|
||||
// EOF
|
74
html/includes/graphs/device/ipsystemstats_ipv4_frag.inc.php
Normal file
74
html/includes/graphs/device/ipsystemstats_ipv4_frag.inc.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ipSystemStats-ipv4.rrd");
|
||||
|
||||
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";
|
||||
$rrd_options .= " DEF:ipReasmOKs=$rrd_filename_escape:ReasmOKs:AVERAGE";
|
||||
$rrd_options .= " DEF:ipReasmFails=$rrd_filename_escape:ReasmFails:AVERAGE";
|
||||
$rrd_options .= " DEF:ipFragFails=$rrd_filename_escape:OutFragFails:AVERAGE";
|
||||
$rrd_options .= " DEF:ipFragCreates=$rrd_filename_escape:OutFragCreates:AVERAGE";
|
||||
|
||||
$rrd_options .= " DEF:MipInDelivers=$rrd_filename_escape:InDelivers:MAX";
|
||||
$rrd_options .= " DEF:MipReasmOKs=$rrd_filename_escape:ReasmOKs:MAX";
|
||||
$rrd_options .= " DEF:MipReasmReqds=$rrd_filename_escape:ReasmReqds:MAX";
|
||||
$rrd_options .= " DEF:MipReasmFails=$rrd_filename_escape:ReasmFails:MAX";
|
||||
$rrd_options .= " DEF:MipFragFails=$rrd_filename_escape:OutFragFails:MAX";
|
||||
$rrd_options .= " DEF:MipFragCreates=$rrd_filename_escape:OutFragCreates:MAX";
|
||||
|
||||
$rrd_options .= " CDEF:ReasmReqds=ipReasmReqds,ipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:ReasmOKs=ipReasmOKs,ipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:ReasmFails=ipReasmFails,ipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:FragFails=ipFragFails,ipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:FragCreates=ipFragCreates,ipInDelivers,/,100,*";
|
||||
|
||||
$rrd_options .= " CDEF:FragFails_n=FragFails,-1,*";
|
||||
$rrd_options .= " CDEF:FragCreates_n=FragCreates,-1,*";
|
||||
|
||||
$rrd_options .= " CDEF:MReasmReqds=MipReasmReqds,MipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:MReasmOKs=MipReasmOKs,MipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:MReasmFails=MipReasmFails,MipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:MFragFails=MipFragFails,MipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:MFragCreates=MipFragCreates,MipInDelivers,/,100,*";
|
||||
|
||||
$rrd_options .= " COMMENT:'% ipInDelivers Current Average Maximum\\n'";
|
||||
|
||||
$rrd_options .= " LINE1.25:FragFails_n#cc0000:'Frag Fail '";
|
||||
$rrd_options .= " GPRINT:FragFails:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:FragFails:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MFragFails:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:FragCreates#00cc:'Frag Create '";
|
||||
$rrd_options .= " GPRINT:FragCreates:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:FragCreates:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MFragCreates:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:ReasmOKs#006600:'Reasm OK '";
|
||||
$rrd_options .= " GPRINT:ReasmOKs:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:ReasmOKs:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MReasmOKs:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:ReasmFails#660000:'Reasm Fail '";
|
||||
$rrd_options .= " GPRINT:ReasmFails:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:ReasmFails:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MReasmFails:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:ReasmReqds#000066:'Reasm Reqd '";
|
||||
$rrd_options .= " GPRINT:ReasmReqds:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:ReasmReqds:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MReasmReqds:MAX:%6.2lf%s\\n";
|
||||
|
||||
// EOF
|
62
html/includes/graphs/device/ipsystemstats_ipv6.inc.php
Normal file
62
html/includes/graphs/device/ipsystemstats_ipv6.inc.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ipSystemStats-ipv6.rrd");
|
||||
|
||||
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";
|
||||
$rrd_options .= " DEF:InReceives=$rrd_filename_escape:InReceives:AVERAGE";
|
||||
$rrd_options .= " DEF:InDiscards=$rrd_filename_escape:InDiscards:AVERAGE";
|
||||
|
||||
$rrd_options .= " DEF:OutForwDatagrams=$rrd_filename_escape:OutForwDatagrams:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutForwDatagrams_n=OutForwDatagrams,-1,*";
|
||||
$rrd_options .= " DEF:OutRequests=$rrd_filename_escape:OutRequests:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutRequests_n=OutRequests,-1,*";
|
||||
$rrd_options .= " DEF:OutDiscards=$rrd_filename_escape:OutDiscards:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutDiscards_n=OutDiscards,-1,*";
|
||||
$rrd_options .= " DEF:OutNoRoutes=$rrd_filename_escape:InDiscards:AVERAGE";
|
||||
$rrd_options .= " CDEF:OutNoRoutes_n=OutNoRoutes,-1,*";
|
||||
|
||||
$rrd_options .= " COMMENT:'Packets/sec Current Average Maximum\\n'";
|
||||
|
||||
$rrd_options .= " LINE1.25:InReceives#7D9B5B:'InReceives v6'";
|
||||
$rrd_options .= " GPRINT:InReceives:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InReceives:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InReceives:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:InForwDatagrams#AF63AF:'InForward v6'";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InForwDatagrams:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:InDelivers#CDEB8B:'InDelivers v6':STACK";
|
||||
$rrd_options .= " GPRINT:InDelivers:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InDelivers:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:InDelivers:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:OutRequests_n#C3D9FF:'OutRequests v6'";
|
||||
$rrd_options .= " GPRINT:OutRequests:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutRequests:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutRequests:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " AREA:OutForwDatagrams#AF63AF:'OutForward v6'";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:OutForwDatagrams:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:InReceives#9DaB6B:";
|
||||
$rrd_options .= " LINE1.25:OutRequests_n#93a6eF:";
|
||||
|
||||
// EOF
|
74
html/includes/graphs/device/ipsystemstats_ipv6_frag.inc.php
Normal file
74
html/includes/graphs/device/ipsystemstats_ipv6_frag.inc.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ipSystemStats-ipv6.rrd");
|
||||
|
||||
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";
|
||||
$rrd_options .= " DEF:ipReasmOKs=$rrd_filename_escape:ReasmOKs:AVERAGE";
|
||||
$rrd_options .= " DEF:ipReasmFails=$rrd_filename_escape:ReasmFails:AVERAGE";
|
||||
$rrd_options .= " DEF:ipFragFails=$rrd_filename_escape:OutFragFails:AVERAGE";
|
||||
$rrd_options .= " DEF:ipFragCreates=$rrd_filename_escape:OutFragCreates:AVERAGE";
|
||||
|
||||
$rrd_options .= " DEF:MipInDelivers=$rrd_filename_escape:InDelivers:MAX";
|
||||
$rrd_options .= " DEF:MipReasmOKs=$rrd_filename_escape:ReasmOKs:MAX";
|
||||
$rrd_options .= " DEF:MipReasmReqds=$rrd_filename_escape:ReasmReqds:MAX";
|
||||
$rrd_options .= " DEF:MipReasmFails=$rrd_filename_escape:ReasmFails:MAX";
|
||||
$rrd_options .= " DEF:MipFragFails=$rrd_filename_escape:OutFragFails:MAX";
|
||||
$rrd_options .= " DEF:MipFragCreates=$rrd_filename_escape:OutFragCreates:MAX";
|
||||
|
||||
$rrd_options .= " CDEF:ReasmReqds=ipReasmReqds,ipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:ReasmOKs=ipReasmOKs,ipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:ReasmFails=ipReasmFails,ipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:FragFails=ipFragFails,ipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:FragCreates=ipFragCreates,ipInDelivers,/,100,*";
|
||||
|
||||
$rrd_options .= " CDEF:FragFails_n=FragFails,-1,*";
|
||||
$rrd_options .= " CDEF:FragCreates_n=FragCreates,-1,*";
|
||||
|
||||
$rrd_options .= " CDEF:MReasmReqds=MipReasmReqds,MipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:MReasmOKs=MipReasmOKs,MipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:MReasmFails=MipReasmFails,MipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:MFragFails=MipFragFails,MipInDelivers,/,100,*";
|
||||
$rrd_options .= " CDEF:MFragCreates=MipFragCreates,MipInDelivers,/,100,*";
|
||||
|
||||
$rrd_options .= " COMMENT:'% ipInDelivers Current Average Maximum\\n'";
|
||||
|
||||
$rrd_options .= " LINE1.25:FragFails_n#cc0000:'Frag Fail '";
|
||||
$rrd_options .= " GPRINT:FragFails:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:FragFails:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MFragFails:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:FragCreates#00cc:'Frag Create '";
|
||||
$rrd_options .= " GPRINT:FragCreates:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:FragCreates:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MFragCreates:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:ReasmOKs#006600:'Reasm OK '";
|
||||
$rrd_options .= " GPRINT:ReasmOKs:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:ReasmOKs:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MReasmOKs:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:ReasmFails#660000:'Reasm Fail '";
|
||||
$rrd_options .= " GPRINT:ReasmFails:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:ReasmFails:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MReasmFails:MAX:%6.2lf%s\\n";
|
||||
|
||||
$rrd_options .= " LINE1.25:ReasmReqds#000066:'Reasm Reqd '";
|
||||
$rrd_options .= " GPRINT:ReasmReqds:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:ReasmReqds:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:MReasmReqds:MAX:%6.2lf%s\\n";
|
||||
|
||||
// EOF
|
20
html/includes/graphs/device/juniper-firewall-bits.inc.php
Normal file
20
html/includes/graphs/device/juniper-firewall-bits.inc.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
$filter = $vars['filter'];
|
||||
$counter = $vars['counter'];
|
||||
$c_type = $vars['counter_type'];
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'juniper-firewall-'.$filter.'-'.$counter.'-'.$c_type);
|
||||
|
||||
$ds = "bytes";
|
||||
$multiplier = 8;
|
||||
|
||||
$colour_line = $config['colours']['graphs']['data']['in_line'];
|
||||
$colour_area = $config['colours']['graphs']['data']['in_area'];
|
||||
|
||||
$unit_text = "Bits/s";
|
||||
|
||||
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
16
html/includes/graphs/device/juniper-firewall-pkts.inc.php
Normal file
16
html/includes/graphs/device/juniper-firewall-pkts.inc.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
$filter = $vars['filter'];
|
||||
$counter = $vars['counter'];
|
||||
$c_type = $vars['counter_type'];
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'juniper-firewall-'.$filter.'-'.$counter.'-'.$c_type);
|
||||
|
||||
$ds = "pkts";
|
||||
|
||||
$unit_text = "Pkts/s";
|
||||
$colour_line = "330033";
|
||||
$colour_area = "AA66AA";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
31
html/includes/graphs/device/juniperive_connections.inc.php
Normal file
31
html/includes/graphs/device/juniperive_connections.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Mail";
|
||||
$rrd_list[1]['ds'] = "mailusers";
|
||||
|
||||
$colours = "juniperive";
|
||||
$nototal = 1;
|
||||
$unit_text = "Connections";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
31
html/includes/graphs/device/juniperive_meetings.inc.php
Normal file
31
html/includes/graphs/device/juniperive_meetings.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Meetings";
|
||||
$rrd_list[1]['ds'] = "meetings";
|
||||
|
||||
$colours = "juniperive";
|
||||
$nototal = 1;
|
||||
$unit_text = "Meetings";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
36
html/includes/graphs/device/juniperive_storage.inc.php
Normal file
36
html/includes/graphs/device/juniperive_storage.inc.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Log";
|
||||
$rrd_list[1]['ds'] = "logpercent";
|
||||
|
||||
$colours = "juniperive";
|
||||
|
||||
$unit_text = "Storage %";
|
||||
$units = '%';
|
||||
$total_units = '%';
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "100";
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
31
html/includes/graphs/device/juniperive_users.inc.php
Normal file
31
html/includes/graphs/device/juniperive_users.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Local";
|
||||
$rrd_list[1]['ds'] = "iveusers";
|
||||
|
||||
$colours = "juniperive";
|
||||
$nototal = 1;
|
||||
$unit_text = "Users";
|
||||
$scale_min = "0";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
34
html/includes/graphs/device/ksm_pages.inc.php
Normal file
34
html/includes/graphs/device/ksm_pages.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "ksm-pages.rrd");
|
||||
|
||||
$stats = array('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);
|
||||
}
|
||||
|
||||
$colours='mixed';
|
||||
|
||||
$nototal = 1;
|
||||
$simple_rrd = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
65
html/includes/graphs/device/mempool.inc.php
Normal file
65
html/includes/graphs/device/mempool.inc.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "100";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
if ($width > 500)
|
||||
{
|
||||
$descr_len = 22;
|
||||
} else {
|
||||
$descr_len = 12;
|
||||
}
|
||||
$descr_len += round(($width - 250) / 8);
|
||||
|
||||
$iter = 0;
|
||||
$colours = 'mixed-10c';
|
||||
|
||||
$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];
|
||||
|
||||
$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 (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
|
56
html/includes/graphs/device/netapp_cp_ops.inc.php
Normal file
56
html/includes/graphs/device/netapp_cp_ops.inc.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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',
|
||||
'low_datavecs' => 'Low Datavecs'
|
||||
);
|
||||
|
||||
foreach ($cp_stats as $stat => $descr)
|
||||
{
|
||||
$rrd_filename = get_rrd_path($device, 'netapp-cp.rrd');
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
$unit_text = 'Operations/s';
|
||||
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = '0';
|
||||
#$scale_max = '100';
|
||||
|
||||
$text_orig = 1;
|
||||
$nototal = 1;
|
||||
|
||||
include('includes/graphs/generic_multi_simplex_separated.inc.php');
|
22
html/includes/graphs/device/netapp_disk_io.inc.php
Normal file
22
html/includes/graphs/device/netapp_disk_io.inc.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp_stats.rrd");
|
||||
|
||||
$ds_in = "disk_rd";
|
||||
$ds_out = "disk_wr";
|
||||
$format = "octets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
21
html/includes/graphs/device/netapp_net_io.inc.php
Normal file
21
html/includes/graphs/device/netapp_net_io.inc.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp_stats.rrd");
|
||||
|
||||
$ds_in = "net_rx";
|
||||
$ds_out = "net_tx";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
42
html/includes/graphs/device/netapp_ops.inc.php
Normal file
42
html/includes/graphs/device/netapp_ops.inc.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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;
|
||||
}
|
||||
|
||||
$rrd_list[$count]['filename'] = $rrd_filename;
|
||||
$rrd_list[$count]['descr'] = nicecase($stat);
|
||||
$rrd_list[$count]['ds'] = $stat .'_ops';
|
||||
|
||||
$count++;
|
||||
}
|
||||
|
||||
$unit_text = 'Operations/s';
|
||||
$colours = 'mixed';
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
|
||||
$scale_min = '0';
|
||||
$scale_max = '100';
|
||||
$text_orig = 1;
|
||||
$nototal = 1;
|
||||
|
||||
include('includes/graphs/generic_multi_simplex_separated.inc.php');
|
||||
|
||||
// EOF
|
22
html/includes/graphs/device/netapp_tape_io.inc.php
Normal file
22
html/includes/graphs/device/netapp_tape_io.inc.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netapp_stats.rrd");
|
||||
|
||||
$format = "bytes";
|
||||
$ds_in = "tape_rd";
|
||||
$ds_out = "tape_wr";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
?>
|
48
html/includes/graphs/device/netscaler_common_errors.inc.php
Normal file
48
html/includes/graphs/device/netscaler_common_errors.inc.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// $scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$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')
|
||||
);
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
42
html/includes/graphs/device/netscaler_conn_client.inc.php
Normal file
42
html/includes/graphs/device/netscaler_conn_client.inc.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotClientConnOpened' => array('descr' => 'TotClientConnOpened'),
|
||||
'TotClientConnClosed' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$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')
|
||||
);
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
41
html/includes/graphs/device/netscaler_conn_current.inc.php
Normal file
41
html/includes/graphs/device/netscaler_conn_current.inc.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'CurClientConn' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
42
html/includes/graphs/device/netscaler_conn_server.inc.php
Normal file
42
html/includes/graphs/device/netscaler_conn_server.inc.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotServerConnOpened' => array('descr' => 'TotServerConnOpened'),
|
||||
'TotServerConnClosed' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
46
html/includes/graphs/device/netscaler_conn_spare.inc.php
Normal file
46
html/includes/graphs/device/netscaler_conn_spare.inc.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$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')
|
||||
);
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotZomCltConnFlushe' => array('descr' => 'TotZomCltConnFlushe'),
|
||||
'TotZomSvrConnFlushe' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotZomAcHalfCloseCl' => array('descr' => 'TotZomAcHalfCloseCl'),
|
||||
'TotZomAcHalfCloseSv' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotZomHalfOpenCltCo' => array('descr' => 'TotZomHalfOpenCltCo'),
|
||||
'TotZomHalfOpenSvrCo' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'TotZomPsHalfCloseCl' => array('descr' => 'TotZomPsHalfCloseCl'),
|
||||
'TotZomPsHalfCloseSr' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrCookiePktSeqReje' => array('descr' => 'ErrCookiePktSeqReje'),
|
||||
'ErrCookiePktSigReje' => array('descr' => 'ErrCookiePktSigReje'),
|
||||
'ErrCookiePktSeqDrop' => array('descr' => 'ErrCookiePktSeqDrop'),
|
||||
'ErrCookiePktMssReje' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
46
html/includes/graphs/device/netscaler_data_errors.inc.php
Normal file
46
html/includes/graphs/device/netscaler_data_errors.inc.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$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')
|
||||
);
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
44
html/includes/graphs/device/netscaler_out_of_order.inc.php
Normal file
44
html/includes/graphs/device/netscaler_out_of_order.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrSvrOutOfOrder' => array('descr' => 'ErrSvrOutOfOrder'),
|
||||
'ErrCltOutOfOrder' => array('descr' => 'ErrCltOutOfOrder'),
|
||||
'ErrCltHole' => array('descr' => 'ErrCltHole'),
|
||||
'ErrSvrHole' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$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')
|
||||
);
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
44
html/includes/graphs/device/netscaler_retransmit_err.inc.php
Normal file
44
html/includes/graphs/device/netscaler_retransmit_err.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// $scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrSvrRetrasmit' => array('descr' => 'ErrSvrRetrasmit'),
|
||||
'ErrCltRetrasmit' => array('descr' => 'ErrCltRetrasmit'),
|
||||
'ErrFullRetrasmit' => array('descr' => 'ErrFullRetrasmit'),
|
||||
'ErrPartialRetrasmit' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
44
html/includes/graphs/device/netscaler_rst_errors.inc.php
Normal file
44
html/includes/graphs/device/netscaler_rst_errors.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// $scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$log_y = TRUE;
|
||||
|
||||
$array = array(
|
||||
'ErrRst' => array('descr' => 'ErrRst'),
|
||||
'ErrRstNonEst' => array('descr' => 'ErrRstNonEst'),
|
||||
'ErrRstOutOfWindow' => array('descr' => 'ErrRstOutOfWindow'),
|
||||
'ErrRstInTimewait' => array('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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $file");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
49
html/includes/graphs/device/netscaler_syn_errors.inc.php
Normal file
49
html/includes/graphs/device/netscaler_syn_errors.inc.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$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')
|
||||
);
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
45
html/includes/graphs/device/netscaler_syn_stats.inc.php
Normal file
45
html/includes/graphs/device/netscaler_syn_stats.inc.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Errors";
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
$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')
|
||||
);
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
23
html/includes/graphs/device/netscaler_tcp_bits.inc.php
Normal file
23
html/includes/graphs/device/netscaler_tcp_bits.inc.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds_in = "TotRxBytes";
|
||||
$ds_out = "TotTxBytes";
|
||||
|
||||
$multiplier = 8;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
36
html/includes/graphs/device/netscaler_tcp_conn.inc.php
Normal file
36
html/includes/graphs/device/netscaler_tcp_conn.inc.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds_in = "CurClientConn";
|
||||
$ds_out = "CurServerConn";
|
||||
|
||||
$in_text = "Client";
|
||||
$out_text = "Server";
|
||||
|
||||
$colour_area_in = "78c7eb";
|
||||
$colour_line_in = "00519b";
|
||||
|
||||
$colour_area_out = "A9E558";
|
||||
$colour_line_out = "4F8910";
|
||||
|
||||
$colour_area_in_max = "AAAAAA";
|
||||
$colour_area_out_max = "AAAAAA";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Connections";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds = "ErrFastRetransmissi";
|
||||
|
||||
$colour_area = "fee0d2";
|
||||
$colour_line = "fb6a4a";
|
||||
|
||||
$colour_area_max = "dddddd";
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds = "ErrFullRetrasmit";
|
||||
|
||||
$colour_area = "fcbba1";
|
||||
$colour_line = "ef3b2c";
|
||||
|
||||
$colour_area_max = "dddddd";
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds = "ErrPartialRetrasmit";
|
||||
|
||||
$colour_area = "fc9272";
|
||||
$colour_line = "cb181d";
|
||||
|
||||
$colour_area_max = "dddddd";
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds = "ErrRetransmit";
|
||||
|
||||
$colour_area = "ef3b2c";
|
||||
$colour_line = "67000d";
|
||||
|
||||
$colour_area_max = "dddddd";
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$ds = "ErrRetransmitGiveUp";
|
||||
|
||||
$colour_area = "fb6a4a";
|
||||
$colour_line = "a50f15";
|
||||
|
||||
$colour_area_max = "dddddd";
|
||||
|
||||
$graph_max = 1;
|
||||
|
||||
$unit_text = "Retransmits/s";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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');
|
||||
|
||||
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 = '';
|
||||
$total_units = '';
|
||||
$colours = 'reds_8';
|
||||
|
||||
$scale_min = "0";
|
||||
#$scale_max = "100";
|
||||
|
||||
$text_orig = 1;
|
||||
$nototal = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
32
html/includes/graphs/device/netscaler_tcp_pkts.inc.php
Normal file
32
html/includes/graphs/device/netscaler_tcp_pkts.inc.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netscaler-stats-tcp.rrd");
|
||||
|
||||
$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_out = $config['colours']['graphs']['pkts']['out_area'];
|
||||
$colour_line_out = $config['colours']['graphs']['pkts']['out_line'];
|
||||
|
||||
$colour_area_in_max = $config['colours']['graphs']['pkts']['in_max'];
|
||||
$colour_area_out_max = $config['colours']['graphs']['pkts']['out_max'];
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Packets";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
// EOF
|
40
html/includes/graphs/device/netscalersvc.inc.php
Normal file
40
html/includes/graphs/device/netscalersvc.inc.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// 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");
|
||||
|
||||
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;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
unset($ignore);
|
||||
}
|
||||
|
||||
// EOF
|
41
html/includes/graphs/device/netscalersvc_bits.inc.php
Normal file
41
html/includes/graphs/device/netscalersvc_bits.inc.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of svcs and then call the multi_bits grapher to generate from the list
|
||||
|
||||
$ds_in = "TotalRequestBytes";
|
||||
$ds_out = "TotalResponseBytes";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$units ='b';
|
||||
$total_units ='B';
|
||||
$colours_in ='greens';
|
||||
$multiplier = "8";
|
||||
$colours_out = 'blues';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$ds_in = "INOCTETS";
|
||||
$ds_out = "OUTOCTETS";
|
||||
|
||||
$graph_title .= "::bits";
|
||||
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_out = "000099";
|
||||
$colour_area_in = "91B13C";
|
||||
$colour_area_out = "8080BD";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
29
html/includes/graphs/device/netscalersvc_common.inc.php
Normal file
29
html/includes/graphs/device/netscalersvc_common.inc.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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");
|
||||
|
||||
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
|
33
html/includes/graphs/device/netscalersvc_conns.inc.php
Normal file
33
html/includes/graphs/device/netscalersvc_conns.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "TotalClients";
|
||||
$ds_out = "TotalServers";
|
||||
|
||||
$unit_text = "Connections";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$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");
|
||||
|
||||
// EOF
|
33
html/includes/graphs/device/netscalersvc_pkts.inc.php
Normal file
33
html/includes/graphs/device/netscalersvc_pkts.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "TotalPktsRecvd";
|
||||
$ds_out = "TotalPktsSent";
|
||||
|
||||
$unit_text = "Packets";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$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");
|
||||
|
||||
// EOF
|
33
html/includes/graphs/device/netscalersvc_reqs.inc.php
Normal file
33
html/includes/graphs/device/netscalersvc_reqs.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "TotalRequests";
|
||||
$ds_out = "TotalResponses";
|
||||
|
||||
$unit_text = "Requests";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$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");
|
||||
|
||||
// EOF
|
31
html/includes/graphs/device/netscalersvc_surge.inc.php
Normal file
31
html/includes/graphs/device/netscalersvc_surge.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "SurgeCount";
|
||||
|
||||
$unit_text = "Surge";
|
||||
|
||||
include("netscalersvc.inc.php");
|
||||
|
||||
$units = '';
|
||||
$total_units = '';
|
||||
$multiplier = 1;
|
||||
$colours ='purples';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= ":: Surge Count";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
22
html/includes/graphs/device/netscalersvc_ttfb.inc.php
Normal file
22
html/includes/graphs/device/netscalersvc_ttfb.inc.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$colours='mixed';
|
||||
$nototal = 1;
|
||||
$ds = "AvgSvrTTFB";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/netscalersvc_common.inc.php");
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
34
html/includes/graphs/device/netscalersvcgrpmem.inc.php
Normal file
34
html/includes/graphs/device/netscalersvcgrpmem.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// 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");
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
// EOF
|
41
html/includes/graphs/device/netscalersvcgrpmem_bits.inc.php
Normal file
41
html/includes/graphs/device/netscalersvcgrpmem_bits.inc.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of svcs and then call the multi_bits grapher to generate from the list
|
||||
|
||||
$ds_in = "TotalRequestBytes";
|
||||
$ds_out = "TotalResponseBytes";
|
||||
|
||||
include("netscalersvcgrpmem.inc.php");
|
||||
|
||||
$units ='b';
|
||||
$total_units ='B';
|
||||
$colours_in ='greens';
|
||||
$multiplier = "8";
|
||||
$colours_out = 'blues';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$ds_in = "INOCTETS";
|
||||
$ds_out = "OUTOCTETS";
|
||||
|
||||
$graph_title .= "::bits";
|
||||
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_out = "000099";
|
||||
$colour_area_in = "91B13C";
|
||||
$colour_area_out = "8080BD";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$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");
|
||||
|
||||
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
|
33
html/includes/graphs/device/netscalersvcgrpmem_conns.inc.php
Normal file
33
html/includes/graphs/device/netscalersvcgrpmem_conns.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "TotalClients";
|
||||
$ds_out = "TotalServers";
|
||||
|
||||
$unit_text = "Connections";
|
||||
|
||||
include("netscalersvcgrpmem.inc.php");
|
||||
|
||||
$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");
|
||||
|
||||
// EOF
|
33
html/includes/graphs/device/netscalersvcgrpmem_pkts.inc.php
Normal file
33
html/includes/graphs/device/netscalersvcgrpmem_pkts.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "TotalPktsRecvd";
|
||||
$ds_out = "TotalPktsSent";
|
||||
|
||||
$unit_text = "Packets";
|
||||
|
||||
include("netscalersvcgrpmem.inc.php");
|
||||
|
||||
$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");
|
||||
|
||||
// EOF
|
33
html/includes/graphs/device/netscalersvcgrpmem_reqs.inc.php
Normal file
33
html/includes/graphs/device/netscalersvcgrpmem_reqs.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "TotalRequests";
|
||||
$ds_out = "TotalResponses";
|
||||
|
||||
$unit_text = "Requests";
|
||||
|
||||
include("netscalersvcgrpmem.inc.php");
|
||||
|
||||
$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");
|
||||
|
||||
// EOF
|
22
html/includes/graphs/device/netscalersvcgrpmem_ttfb.inc.php
Normal file
22
html/includes/graphs/device/netscalersvcgrpmem_ttfb.inc.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$colours='mixed';
|
||||
$nototal = 1;
|
||||
$ds = "AvgSvrTTFB";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/netscalersvc_common.inc.php");
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
34
html/includes/graphs/device/netscalervsvr.inc.php
Normal file
34
html/includes/graphs/device/netscalervsvr.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// 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");
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
// EOF
|
41
html/includes/graphs/device/netscalervsvr_bits.inc.php
Normal file
41
html/includes/graphs/device/netscalervsvr_bits.inc.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// Generate a list of vsvrs and then call the multi_bits grapher to generate from the list
|
||||
|
||||
$ds_in = "TotalRequestBytes";
|
||||
$ds_out = "TotalResponseBytes";
|
||||
|
||||
include("netscalervsvr.inc.php");
|
||||
|
||||
$units ='b';
|
||||
$total_units ='B';
|
||||
$colours_in ='greens';
|
||||
$multiplier = "8";
|
||||
$colours_out = 'blues';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$ds_in = "INOCTETS";
|
||||
$ds_out = "OUTOCTETS";
|
||||
|
||||
$graph_title .= "::bits";
|
||||
|
||||
$colour_line_in = "006600";
|
||||
$colour_line_out = "000099";
|
||||
$colour_area_in = "91B13C";
|
||||
$colour_area_out = "8080BD";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_separated.inc.php");
|
||||
|
||||
// EOF
|
33
html/includes/graphs/device/netscalervsvr_conns.inc.php
Normal file
33
html/includes/graphs/device/netscalervsvr_conns.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "CurClntConnections";
|
||||
$ds_out = "CurSrvrConnections";
|
||||
|
||||
$unit_text = "Connections";
|
||||
|
||||
include("netscalervsvr.inc.php");
|
||||
|
||||
$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");
|
||||
|
||||
// EOF
|
33
html/includes/graphs/device/netscalervsvr_hitmiss.inc.php
Normal file
33
html/includes/graphs/device/netscalervsvr_hitmiss.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "TotHits";
|
||||
$ds_out = "TotMiss";
|
||||
|
||||
$unit_text = "Hit/Miss";
|
||||
|
||||
include("netscalervsvr.inc.php");
|
||||
|
||||
$units ='pps';
|
||||
$total_units ='Pkts';
|
||||
$multiplier = 1;
|
||||
$colours_in = 'greens';
|
||||
$colours_out = 'oranges';
|
||||
|
||||
#$nototal = 1;
|
||||
|
||||
$graph_title .= "::packets";
|
||||
|
||||
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