Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -5,42 +5,40 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage graphs
* @copyright (C) Adam Armstrong
*
*/
include_once($config['html_dir']."/includes/graphs/common.inc.php");
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
$scale_min = 0;
$colours = "mixed";
$nototal = (($width<224) ? 1 : 0);
$nototal = (($width < 224) ? 1 : 0);
$unit_text = "Packets/sec";
$rrd_filename = get_rrd_path($device, "app-powerdns-recursor-".$app['app_id'].".rrd");
$array = array(
'questions' => array('descr' => 'Questions', 'colour' => '0000FFFF'),
'answers_nxdomain' => array('descr' => 'NXDOMAIN Answers', 'colour' => '00FF00FF'),
'answers_noerror' => array('descr' => 'NOERROR Answers', 'colour' => 'FFA500FF'),
'answers_servfail' => array('descr' => 'SERVFAIL Answers', 'colour' => 'FF0000FF'),
);
$rrd_filename = get_rrd_path($device, "app-powerdns-recursor-" . $app['app_id'] . ".rrd");
$array = [
'questions' => ['descr' => 'Questions', 'colour' => '0000FFFF'],
'answers_nxdomain' => ['descr' => 'NXDOMAIN Answers', 'colour' => '00FF00FF'],
'answers_noerror' => ['descr' => 'NOERROR Answers', 'colour' => 'FFA500FF'],
'answers_servfail' => ['descr' => 'SERVFAIL Answers', 'colour' => 'FF0000FF'],
];
$i = 0;
$i = 0;
if (rrd_is_file($rrd_filename))
{
foreach ($array as $ds => $data)
{
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $data['descr'];
$rrd_list[$i]['ds'] = $ds;
$rrd_list[$i]['colour'] = $data['colour'];
$i++;
}
if (rrd_is_file($rrd_filename)) {
foreach ($array as $ds => $data) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $data['descr'];
$rrd_list[$i]['ds'] = $ds;
$rrd_list[$i]['colour'] = $data['colour'];
$i++;
}
} else {
echo("file missing: $rrd_filename");
echo("file missing: $rrd_filename");
}
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
// EOF