2010-07-30 18:46:37 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$scale_min = '0';
|
2010-08-04 17:17:00 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
require 'includes/graphs/common.inc.php';
|
2012-04-05 16:47:39 +00:00
|
|
|
|
2016-07-07 01:33:43 -05:00
|
|
|
$rrd_filename = rrd_name($device['hostname'], 'cras_sessions');
|
2011-03-17 13:35:25 +00:00
|
|
|
|
|
|
|
$rrd_options .= " DEF:email=$rrd_filename:email:AVERAGE";
|
|
|
|
$rrd_options .= " DEF:ipsec=$rrd_filename:ipsec:AVERAGE";
|
|
|
|
$rrd_options .= " DEF:l2l=$rrd_filename:l2l:AVERAGE";
|
|
|
|
$rrd_options .= " DEF:lb=$rrd_filename:lb:AVERAGE";
|
|
|
|
$rrd_options .= " DEF:svc=$rrd_filename:svc:AVERAGE";
|
|
|
|
$rrd_options .= " DEF:webvpn=$rrd_filename:webvpn:AVERAGE";
|
|
|
|
|
2016-09-21 11:53:31 +02:00
|
|
|
$rrd_options .= " COMMENT:'Sessions Current Average Maximum\\n'";
|
|
|
|
|
2016-09-23 08:02:38 +02:00
|
|
|
$rrd_options .= " AREA:svc#1985A1:'SSL VPN Client':STACK";
|
2016-09-21 11:53:31 +02:00
|
|
|
$rrd_options .= " GPRINT:svc:LAST:'%8.2lf'";
|
|
|
|
$rrd_options .= " GPRINT:svc:AVERAGE:' %8.2lf'";
|
|
|
|
$rrd_options .= " GPRINT:svc:MAX:' %8.2lf\\\\n'";
|
|
|
|
|
|
|
|
$rrd_options .= " AREA:webvpn#4C5C68:'Clientless VPN':STACK";
|
|
|
|
$rrd_options .= " GPRINT:webvpn:LAST:'%8.2lf'";
|
|
|
|
$rrd_options .= " GPRINT:webvpn:AVERAGE:' %8.2lf'";
|
|
|
|
$rrd_options .= " GPRINT:webvpn:MAX:' %8.2lf\\\\n'";
|
|
|
|
|
|
|
|
$rrd_options .= " AREA:ipsec#46494C:'IPSEC ':STACK";
|
|
|
|
$rrd_options .= " GPRINT:ipsec:LAST:'%8.2lf'";
|
|
|
|
$rrd_options .= " GPRINT:ipsec:AVERAGE:' %8.2lf'";
|
|
|
|
$rrd_options .= " GPRINT:ipsec:MAX:' %8.2lf\\\\n'";
|
|
|
|
|
|
|
|
$rrd_options .= " AREA:l2l#C5C3C6:'LAN-to-LAN ':STACK";
|
|
|
|
$rrd_options .= ' GPRINT:l2l:LAST:%8.2lf';
|
|
|
|
$rrd_options .= " GPRINT:l2l:AVERAGE:' %8.2lf'";
|
|
|
|
$rrd_options .= " GPRINT:l2l:MAX:' %8.2lf\\\\n'";
|
|
|
|
|
|
|
|
$rrd_options .= " AREA:email#DCDCDD:'Email ':STACK";
|
|
|
|
$rrd_options .= ' GPRINT:email:LAST:%8.2lf';
|
|
|
|
$rrd_options .= " GPRINT:email:AVERAGE:' %8.2lf'";
|
|
|
|
$rrd_options .= " GPRINT:email:MAX:' %8.2lf\\\\n'";
|
|
|
|
|
|
|
|
$rrd_options .= " AREA:lb#FFFFFF:'Load Balancer ':STACK";
|
|
|
|
$rrd_options .= ' GPRINT:lb:LAST:%8.2lf';
|
|
|
|
$rrd_options .= " GPRINT:lb:AVERAGE:' %8.2lf'";
|
|
|
|
$rrd_options .= " GPRINT:lb:MAX:' %8.2lf\\\\n'";
|
|
|
|
|
|
|
|
// Total
|
|
|
|
$rrd_options .= " 'CDEF:TOTAL=email,ipsec,l2l,lb,svc,webvpn,+,+,+,+,+'";
|
|
|
|
|
|
|
|
$rrd_options .= " 'LINE1:TOTAL#000000FF:Total '";
|
|
|
|
|
|
|
|
$rrd_options .= " 'GPRINT:TOTAL:LAST:%8.2lf'";
|
|
|
|
$rrd_options .= " 'GPRINT:TOTAL:AVERAGE: %8.2lf'";
|
|
|
|
$rrd_options .= " 'GPRINT:TOTAL:MAX: %8.2lf\\\\n'";
|