2010-07-20 14:53:55 +00:00
|
|
|
<?php
|
|
|
|
|
2012-05-25 12:24:34 +00:00
|
|
|
// Generate a list of ports and then call the multi_bits grapher to generate from the list
|
2010-07-20 14:53:55 +00:00
|
|
|
$device = device_by_id_cache($id);
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$file = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('screenos-sessions.rrd');
|
2010-07-20 14:53:55 +00:00
|
|
|
|
|
|
|
$rrd_list[0]['filename'] = $file;
|
2015-07-10 13:36:21 +02:00
|
|
|
$rrd_list[0]['descr'] = 'Maxiumum';
|
|
|
|
$rrd_list[0]['ds'] = 'max';
|
2010-07-20 14:53:55 +00:00
|
|
|
|
|
|
|
$rrd_list[1]['filename'] = $file;
|
2015-07-10 13:36:21 +02:00
|
|
|
$rrd_list[1]['descr'] = 'Allocated';
|
|
|
|
$rrd_list[1]['ds'] = 'allocate';
|
2010-07-20 14:53:55 +00:00
|
|
|
|
|
|
|
$rrd_list[2]['filename'] = $file;
|
2015-07-10 13:36:21 +02:00
|
|
|
$rrd_list[2]['descr'] = 'Failed';
|
|
|
|
$rrd_list[2]['ds'] = 'failed';
|
2010-07-20 14:53:55 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if ($_GET['debug']) {
|
|
|
|
print_r($rrd_list);
|
|
|
|
}
|
2010-07-20 14:53:55 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$colours = 'mixed';
|
2010-07-20 14:53:55 +00:00
|
|
|
$nototal = 1;
|
2015-07-10 13:36:21 +02:00
|
|
|
$unit_text = 'Sessions';
|
|
|
|
$scale_min = '0';
|
2010-07-20 14:53:55 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
require 'generic_multi_simplex_seperated.inc.php';
|