Files
librenms-librenms/includes/html/graphs/screenos_sessions.inc.php
Tony Murray 1c379dcd05 Remove legacy function calls (#12651)
* massive inlines

* fix style and wtf

* remove rrdtool.inc.php include

* fix CommonFunctions namespace issues

* looking for missing class space, fix undefined class issues

* style fixes
2021-03-29 00:25:30 +02:00

30 lines
678 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';