initial commit; version 22.5.12042
This commit is contained in:
43
html/includes/graphs/altiga_ssl_sessions.inc.php
Normal file
43
html/includes/graphs/altiga_ssl_sessions.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
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$device = device_by_id_cache($id);
|
||||
$rrd_filename = get_rrd_path($device, "/altiga-ssl.rrd.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " DEF:TotalSessions=$rrd_filename_escape:TotalSessions:AVERAGE";
|
||||
$rrd_options .= " DEF:ActiveSessions=$rrd_filename_escape:ActiveSessions:AVERAGE";
|
||||
$rrd_options .= " DEF:MaxSessions=$rrd_filename_escape:MaxSessions:AVERAGE";
|
||||
$rrd_options .= " CDEF:a=1min,100,/";
|
||||
$rrd_options .= " CDEF:b=5min,100,/";
|
||||
$rrd_options .= " CDEF:c=15min,100,/";
|
||||
$rrd_options .= " CDEF:cdefd=a,b,c,+,+";
|
||||
$rrd_options .= " COMMENT:Load\ Average\ \ Current\ \ \ \ Average\ \ \ \ Maximum\\n";
|
||||
$rrd_options .= " AREA:a#ffeeaa:1\ Min:";
|
||||
$rrd_options .= " LINE1:a#c5aa00:";
|
||||
$rrd_options .= " GPRINT:a:LAST:\ \ \ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:a:AVERAGE:\ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:a:MAX:\ \ %7.2lf\\n";
|
||||
$rrd_options .= " LINE1.25:b#ea8f00:5\ Min:";
|
||||
$rrd_options .= " GPRINT:b:LAST:\ \ \ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:b:AVERAGE:\ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:b:MAX:\ \ %7.2lf\\n";
|
||||
$rrd_options .= " LINE1.25:c#cc0000:15\ Min";
|
||||
$rrd_options .= " GPRINT:c:LAST:\ \ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:c:AVERAGE:\ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:c:MAX:\ \ %7.2lf\\n";
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user