mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
fix screenos detection and add re-add graph for sessions
git-svn-id: http://www.observium.org/svn/observer/trunk@1444 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?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 = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("screenos-sessions.rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $file;
|
||||
$rrd_list[0]['descr'] = "Maxiumum";
|
||||
$rrd_list[0]['rra'] = "max";
|
||||
|
||||
$rrd_list[1]['filename'] = $file;
|
||||
$rrd_list[1]['descr'] = "Allocated";
|
||||
$rrd_list[1]['rra'] = "allocate";
|
||||
|
||||
$rrd_list[2]['filename'] = $file;
|
||||
$rrd_list[2]['descr'] = "Failed";
|
||||
$rrd_list[2]['rra'] = "failed";
|
||||
|
||||
|
||||
if ($_GET['debug']) { print_r($rrd_list); }
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Sessions";
|
||||
$scale_min = "0";
|
||||
|
||||
|
||||
include ("generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user