mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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
26 lines
1.0 KiB
PHP
26 lines
1.0 KiB
PHP
<?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"';
|
|
}
|