mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Security fix: unauthorized access Affects nginx users: Moved php files outside of public html directory (Apache was protected by .htaccess) Affects all users: Some files did not check for authentication and could disclose some info. Better checks before including files from user input * git mv html/includes/ includes/html git mv html/pages/ includes/html/
21 lines
699 B
PHP
21 lines
699 B
PHP
<?php
|
|
|
|
/*
|
|
* NTTCOM MS module for printing CheckPoint SecurePlatform sessions
|
|
*/
|
|
|
|
|
|
require 'includes/html/graphs/common.inc.php';
|
|
|
|
$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';
|
|
|
|
$rrd_options .= " LINE1.5:connections#cc0000:'".rrdtool_escape('Current connections')."'";
|
|
$rrd_options .= ' GPRINT:connections_min:MIN:%4.0lf';
|
|
$rrd_options .= ' GPRINT:connections:LAST:%4.0lf';
|
|
$rrd_options .= ' GPRINT:connections_max:MAX:%4.0lf\l';
|