Added F5 ssl tps, global server/client connection rate and active connections (#9883)

* Added ssl tps, global server/client connection rate and active connections

* Added ssl tps, global server/client connection rate and active connections

* Added ssl tps, global server/client connection rate and active connections

* Added ssl tps, global server/client connection rate and active connections

* Moved from  2x snmp_get to snmp_get_multi for SSL TPS

* Rewrite of polling module for f5.  Thanks to @PipoCanaja for code examples.

* Moved files to includes/html/

* changed array definition
This commit is contained in:
Serazio
2019-07-15 01:33:20 +02:00
committed by Tony Murray
parent 4750dea04a
commit 902aedcd82
7 changed files with 191 additions and 13 deletions

View File

@@ -0,0 +1,19 @@
<?php
$rrd_filename = rrd_name($device['hostname'], 'bigip_system_client_concurrent_connections');
require 'includes/graphs/common.inc.php';
$ds = 'ClientCurConns';
$colour_area = '9999cc';
$colour_line = '0000cc';
$colour_area_max = '9999cc';
$graph_max = 1;
$graph_min = 0;
$unit_text = 'Active connections';
require 'includes/graphs/generic_simplex.inc.php';

View File

@@ -0,0 +1,19 @@
<?php
$rrd_filename = rrd_name($device['hostname'], 'bigip_system_client_connection_rate');
require 'includes/graphs/common.inc.php';
$ds = 'ClientTotConns';
$colour_area = '9999cc';
$colour_line = '0000cc';
$colour_area_max = '9999cc';
$graph_max = 1;
$graph_min = 0;
$unit_text = 'Connection Rate';
require 'includes/graphs/generic_simplex.inc.php';

View File

@@ -0,0 +1,19 @@
<?php
$rrd_filename = rrd_name($device['hostname'], 'bigip_system_server_concurrent_connections');
require 'includes/graphs/common.inc.php';
$ds = 'ServerCurConns';
$colour_area = '9999cc';
$colour_line = '0000cc';
$colour_area_max = '9999cc';
$graph_max = 1;
$graph_min = 0;
$unit_text = 'Active connections';
require 'includes/graphs/generic_simplex.inc.php';

View File

@@ -0,0 +1,19 @@
<?php
$rrd_filename = rrd_name($device['hostname'], 'bigip_system_server_connection_rate');
require 'includes/graphs/common.inc.php';
$ds = 'ServerTotConns';
$colour_area = '9999cc';
$colour_line = '0000cc';
$colour_area_max = '9999cc';
$graph_max = 1;
$graph_min = 0;
$unit_text = 'Connection Rate';
require 'includes/graphs/generic_simplex.inc.php';

View File

@@ -0,0 +1,25 @@
<?php
require 'includes/graphs/common.inc.php';
$scale_min = '0';
$descr = rrdtool_escape('SSL TPS');
$rrd = rrd_name($device['hostname'], 'bigip_system_tps');
if (rrdtool_check_rrd_exists($rrd)) {
$rrd_options .= ' DEF:a="'.$rrd.'":"TotNativeConns":AVERAGE';
$rrd_options .= ' DEF:b="'.$rrd.'":"TotCompatConns":AVERAGE';
$rrd_options .= ' CDEF:cdefi="a,b,-"';
$rrd_options .= ' LINE2:a#002A97FF:"Native"';
$rrd_options .= ' GPRINT:a:LAST:" Last\:%8.2lf %s"';
$rrd_options .= ' GPRINT:a:AVERAGE:"Avg\:%8.2lf %s"';
$rrd_options .= ' GPRINT:a:MAX:"Max\:%8.2lf %s\n"';
$rrd_options .= ' LINE2:b#4444FFFF:"Compat"';
$rrd_options .= ' GPRINT:b:LAST:" Last\:%8.2lf %s"';
$rrd_options .= ' GPRINT:b:AVERAGE:"Avg\:%8.2lf %s"';
$rrd_options .= ' GPRINT:b:MAX:"Max\:%8.2lf %s\n"';
$rrd_options .= ' AREA:cdefi#C0C0C0FF:"Difference"';
$rrd_options .= ' GPRINT:cdefi:LAST:"Last\:%8.2lf %s"';
$rrd_options .= ' GPRINT:cdefi:AVERAGE:"Avg\:%8.2lf %s"';
$rrd_options .= ' GPRINT:cdefi:MAX:"Max\:%8.2lf %s\n"';
}