2009-11-03 20:04:07 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$scale_min = '0';
|
2010-07-24 19:14:41 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
require 'includes/graphs/common.inc.php';
|
2012-04-05 16:47:39 +00:00
|
|
|
|
2010-05-02 19:47:09 +00:00
|
|
|
$device = device_by_id_cache($id);
|
2009-11-03 20:04:07 +00:00
|
|
|
|
2016-07-07 01:33:43 -05:00
|
|
|
$rrd_filename = rrd_name($device['hostname'], 'altiga-ssl');
|
2009-11-03 20:04:07 +00:00
|
|
|
|
2011-03-17 10:57:51 +00:00
|
|
|
$rrd_options .= " DEF:TotalSessions=$rrd_filename:TotalSessions:AVERAGE";
|
|
|
|
$rrd_options .= " DEF:ActiveSessions=$rrd_filename:ActiveSessions:AVERAGE";
|
|
|
|
$rrd_options .= " DEF:MaxSessions=$rrd_filename:MaxSessions:AVERAGE";
|
2015-07-10 13:36:21 +02:00
|
|
|
$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,+,+';
|
2011-03-17 10:57:51 +00:00
|
|
|
$rrd_options .= " COMMENT:Load\ Average\ \ Current\ \ \ \ Average\ \ \ \ Maximum\\\\n";
|
2015-07-10 13:36:21 +02:00
|
|
|
$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';
|
2011-03-17 10:57:51 +00:00
|
|
|
$rrd_options .= " GPRINT:a:MAX:\ \ %7.2lf\\\\n";
|
2015-07-10 13:36:21 +02:00
|
|
|
$rrd_options .= ' LINE1.25:b#ea8f00:5\ Min:';
|
|
|
|
$rrd_options .= ' GPRINT:b:LAST:\ \ \ \ %7.2lf';
|
|
|
|
$rrd_options .= ' GPRINT:b:AVERAGE:\ \ %7.2lf';
|
2011-03-17 10:57:51 +00:00
|
|
|
$rrd_options .= " GPRINT:b:MAX:\ \ %7.2lf\\\\n";
|
2015-07-10 13:36:21 +02:00
|
|
|
$rrd_options .= ' LINE1.25:c#cc0000:15\ Min';
|
|
|
|
$rrd_options .= ' GPRINT:c:LAST:\ \ \ %7.2lf';
|
|
|
|
$rrd_options .= ' GPRINT:c:AVERAGE:\ \ %7.2lf';
|
2011-03-17 10:57:51 +00:00
|
|
|
$rrd_options .= " GPRINT:c:MAX:\ \ %7.2lf\\\\n";
|