Commit version 24.12.13800
This commit is contained in:
@ -5,9 +5,9 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -23,35 +23,35 @@
|
||||
DS:tmxlocalreplies:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('tmx2xxtransactions' => array('descr' => '2XX Transactions'),
|
||||
'tmx3xxtransactions' => array('descr' => '3XX Transactions'),
|
||||
'tmx4xxtransactions' => array('descr' => '4XX Transactions'),
|
||||
'tmx5xxtransactions' => array('descr' => '5XX Transactions'),
|
||||
'tmx6xxtransactions' => array('descr' => '6XX Transactions'),
|
||||
'tmxUACtransactions' => array('descr' => 'UAC Transactions'),
|
||||
'tmxUAStransactions' => array('descr' => 'UAS Transactions'),
|
||||
'tmxinusetransaction' => array('descr' => 'InUse Transactions'),
|
||||
'tmxlocalreplies' => array('descr' => 'Local Replies'),
|
||||
);
|
||||
$array = ['tmx2xxtransactions' => ['descr' => '2XX Transactions'],
|
||||
'tmx3xxtransactions' => ['descr' => '3XX Transactions'],
|
||||
'tmx4xxtransactions' => ['descr' => '4XX Transactions'],
|
||||
'tmx5xxtransactions' => ['descr' => '5XX Transactions'],
|
||||
'tmx6xxtransactions' => ['descr' => '6XX Transactions'],
|
||||
'tmxUACtransactions' => ['descr' => 'UAC Transactions'],
|
||||
'tmxUAStransactions' => ['descr' => 'UAS Transactions'],
|
||||
'tmxinusetransaction' => ['descr' => 'InUse Transactions'],
|
||||
'tmxlocalreplies' => ['descr' => 'Local Replies'],
|
||||
];
|
||||
|
||||
$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;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
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;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = "mixed";
|
||||
|
||||
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