Files

35 lines
839 B
PHP
Raw Permalink Normal View History

<?php
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/common.inc.php';
2020-09-21 15:40:17 +02:00
$scale_min = 0;
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Packets';
$rrd_filename = rrd_name($device['hostname'], ['app', 'ntp-server', $app['app_id']]);
$array = [
'packets_drop' => [
2015-07-13 20:10:26 +02:00
'descr' => 'Dropped',
'colour' => '880000FF',
2020-09-21 15:40:17 +02:00
],
'packets_ignore' => [
2015-07-13 20:10:26 +02:00
'descr' => 'Ignored',
'colour' => 'FF8800FF',
2020-09-21 15:40:17 +02:00
],
];
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
2017-02-24 15:22:15 +00:00
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
2020-09-21 15:40:17 +02:00
$rrd_list[$i]['descr'] = $var['descr'];
$rrd_list[$i]['ds'] = $ds;
$rrd_list[$i]['colour'] = $var['colour'];
$i++;
}
2016-08-18 20:28:22 -05:00
} else {
echo "file missing: $file";
2011-10-01 10:10:02 +00:00
}
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';