Commit version 24.12.13800
This commit is contained in:
@ -5,43 +5,41 @@
|
||||
*
|
||||
* 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 = 1;
|
||||
$unit_text = "Queries";
|
||||
$rrd_filename = get_rrd_path($device, "app-unbound-".$app['app_id']."-total.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-unbound-" . $app['app_id'] . "-total.rrd");
|
||||
|
||||
$array = array(
|
||||
'reqListAvg' => array('descr' => 'Average size', 'colour' => '00FF00FF'),
|
||||
'reqListMax' => array('descr' => 'Max size', 'colour' => '0000FFFF'),
|
||||
'reqListOverwritten' => array('descr' => 'Replaced', 'colour' => 'FF0000FF'),
|
||||
'reqListExceeded' => array('descr' => 'Dropped', 'colour' => '00FFFFFF'),
|
||||
);
|
||||
$array = [
|
||||
'reqListAvg' => ['descr' => 'Average size', 'colour' => '00FF00FF'],
|
||||
'reqListMax' => ['descr' => 'Max size', 'colour' => '0000FFFF'],
|
||||
'reqListOverwritten' => ['descr' => 'Replaced', 'colour' => 'FF0000FF'],
|
||||
'reqListExceeded' => ['descr' => 'Dropped', 'colour' => '00FFFFFF'],
|
||||
];
|
||||
|
||||
$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_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user