2018-01-05 23:06:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* NTTCOM MS module for printing CheckPoint SecurePlatform sessions
|
|
|
|
|
*/
|
|
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/common.inc.php';
|
2018-01-05 23:06:07 +01:00
|
|
|
|
|
|
|
|
$rrd_filename = rrd_name($device['hostname'], 'secureplatform_sessions');
|
|
|
|
|
|
|
|
|
|
$rrd_options .= " DEF:connections=$rrd_filename:NumConn:AVERAGE";
|
|
|
|
|
$rrd_options .= " DEF:connections_max=$rrd_filename:NumConn:MAX";
|
|
|
|
|
$rrd_options .= " DEF:connections_min=$rrd_filename:NumConn:MIN";
|
|
|
|
|
$rrd_options .= ' AREA:connections_min';
|
|
|
|
|
|
2020-09-21 15:40:17 +02:00
|
|
|
$rrd_options .= " LINE1.5:connections#cc0000:'" . rrdtool_escape('Current connections') . "'";
|
2018-01-05 23:06:07 +01:00
|
|
|
$rrd_options .= ' GPRINT:connections_min:MIN:%4.0lf';
|
|
|
|
|
$rrd_options .= ' GPRINT:connections:LAST:%4.0lf';
|
|
|
|
|
$rrd_options .= ' GPRINT:connections_max:MAX:%4.0lf\l';
|