librenms-librenms/html/includes/graphs/screenos_sessions.inc.php
Tony Murray 57650e4ffc Remove nfs requirement for distributed poller (with rrdtool 1.5+)
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00

30 lines
708 B
PHP

<?php
// Generate a list of ports and then call the multi_bits grapher to generate from the list
$device = device_by_id_cache($id);
$file = rrd_name($device['hostname'], 'screenos-sessions');
$rrd_list[0]['filename'] = $file;
$rrd_list[0]['descr'] = 'Maxiumum';
$rrd_list[0]['ds'] = 'max';
$rrd_list[1]['filename'] = $file;
$rrd_list[1]['descr'] = 'Allocated';
$rrd_list[1]['ds'] = 'allocate';
$rrd_list[2]['filename'] = $file;
$rrd_list[2]['descr'] = 'Failed';
$rrd_list[2]['ds'] = 'failed';
if ($_GET['debug']) {
print_r($rrd_list);
}
$colours = 'mixed';
$nototal = 1;
$unit_text = 'Sessions';
$scale_min = '0';
require 'generic_multi_simplex_seperated.inc.php';