2011-09-30 18:25:27 +00:00
|
|
|
<?php
|
|
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/common.inc.php';
|
2011-09-30 18:25:27 +00:00
|
|
|
|
2011-10-01 10:10:02 +00:00
|
|
|
$scale_min = 0;
|
2015-07-10 13:36:21 +02:00
|
|
|
$colours = 'mixed';
|
|
|
|
|
$nototal = (($width < 224) ? 1 : 0);
|
|
|
|
|
$unit_text = 'Buffer';
|
2022-07-22 16:01:55 -05:00
|
|
|
$rrd_filename = Rrd::name($device['hostname'], ['app', 'ntp-server', $app->app_id]);
|
2011-10-01 10:10:02 +00:00
|
|
|
$array = [
|
2015-07-10 13:36:21 +02:00
|
|
|
'buffer_recv' => ['descr' => 'Received'],
|
|
|
|
|
'buffer_used' => ['descr' => 'Used'],
|
|
|
|
|
'buffer_free' => ['descr' => 'Free'],
|
|
|
|
|
];
|
2011-09-30 18:25:27 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$i = 0;
|
2011-09-30 18:25:27 +00:00
|
|
|
|
2021-03-28 17:25:30 -05:00
|
|
|
if (Rrd::checkRrdExists($rrd_filename)) {
|
2017-02-24 15:22:15 +00:00
|
|
|
foreach ($array as $ds => $var) {
|
2015-07-10 13:36:21 +02:00
|
|
|
$rrd_list[$i]['filename'] = $rrd_filename;
|
2017-02-24 15:22:15 +00:00
|
|
|
$rrd_list[$i]['descr'] = $var['descr'];
|
2015-07-10 13:36:21 +02:00
|
|
|
$rrd_list[$i]['ds'] = $ds;
|
2019-06-23 00:29:12 -05:00
|
|
|
$rrd_list[$i]['colour'] = \LibreNMS\Config::get("graph_colours.$colours.$i");
|
2015-07-10 13:36:21 +02:00
|
|
|
$i++;
|
|
|
|
|
}
|
2016-08-18 20:28:22 -05:00
|
|
|
} else {
|
2015-07-10 13:36:21 +02:00
|
|
|
echo "file missing: $file";
|
2011-10-01 10:10:02 +00:00
|
|
|
}
|
2011-09-30 18:25:27 +00:00
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/generic_multi_line.inc.php';
|