Remove legacy function calls (#12651)

* massive inlines

* fix style and wtf

* remove rrdtool.inc.php include

* fix CommonFunctions namespace issues

* looking for missing class space, fix undefined class issues

* style fixes
This commit is contained in:
Tony Murray
2021-03-28 17:25:30 -05:00
committed by GitHub
parent 1695f86af8
commit 1c379dcd05
832 changed files with 2023 additions and 2596 deletions

View File

@@ -4,7 +4,7 @@ require 'includes/html/graphs/common.inc.php';
$device = device_by_id_cache($id);
$rrd_filename = rrd_name($device['hostname'], 'mem');
$rrd_filename = Rrd::name($device['hostname'], 'mem');
$rrd_options .= ' -b 1024';

View File

@@ -1,6 +1,6 @@
<?php
$rrd_filename = rrd_name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_filename = Rrd::name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = 'Channel';

View File

@@ -1,6 +1,6 @@
<?php
$rrd_filename = rrd_name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_filename = Rrd::name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = 'Interference';

View File

@@ -1,6 +1,6 @@
<?php
$rrd_filename = rrd_name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_filename = Rrd::name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = 'Num Clients';

View File

@@ -1,6 +1,6 @@
<?php
$rrd_filename = rrd_name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_filename = Rrd::name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = 'MonBSSIDs';

View File

@@ -1,6 +1,6 @@
<?php
$rrd_filename = rrd_name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_filename = Rrd::name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = 'Mon Clients';

View File

@@ -1,6 +1,6 @@
<?php
$rrd_filename = rrd_name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_filename = Rrd::name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = 'radioutil';

View File

@@ -1,6 +1,6 @@
<?php
$rrd_filename = rrd_name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_filename = Rrd::name($device['hostname'], ['arubaap', $ap['name'] . $ap['radio_number']]);
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = 'txpow';

View File

@@ -6,7 +6,7 @@ require 'includes/html/graphs/common.inc.php';
$device = device_by_id_cache($id);
$rrd_filename = rrd_name($device['hostname'], 'altiga-ssl');
$rrd_filename = Rrd::name($device['hostname'], 'altiga-ssl');
$rrd_options .= " DEF:TotalSessions=$rrd_filename:TotalSessions:AVERAGE";
$rrd_options .= " DEF:ActiveSessions=$rrd_filename:ActiveSessions:AVERAGE";

View File

@@ -4,9 +4,9 @@ $scale_min = 0;
require 'includes/html/graphs/common.inc.php';
$apache_rrd = rrd_name($device['hostname'], ['app', 'apache', $app['app_id']]);
$apache_rrd = Rrd::name($device['hostname'], ['app', 'apache', $app['app_id']]);
if (rrdtool_check_rrd_exists($apache_rrd)) {
if (Rrd::checkRrdExists($apache_rrd)) {
$rrd_filename = $apache_rrd;
}

View File

@@ -4,9 +4,9 @@ $scale_min = 0;
require 'includes/html/graphs/common.inc.php';
$apache_rrd = rrd_name($device['hostname'], ['app', 'apache', $app['app_id']]);
$apache_rrd = Rrd::name($device['hostname'], ['app', 'apache', $app['app_id']]);
if (rrdtool_check_rrd_exists($apache_rrd)) {
if (Rrd::checkRrdExists($apache_rrd)) {
$rrd_filename = $apache_rrd;
}

View File

@@ -4,9 +4,9 @@ $scale_min = 0;
require 'includes/html/graphs/common.inc.php';
$apache_rrd = rrd_name($device['hostname'], ['app', 'apache', $app['app_id']]);
$apache_rrd = Rrd::name($device['hostname'], ['app', 'apache', $app['app_id']]);
if (rrdtool_check_rrd_exists($apache_rrd)) {
if (Rrd::checkRrdExists($apache_rrd)) {
$rrd_filename = $apache_rrd;
}

View File

@@ -4,7 +4,7 @@ $scale_min = 0;
require 'includes/html/graphs/common.inc.php';
$rrd_filename = rrd_name($device['hostname'], ['app', 'apache', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'apache', $app['app_id']]);
$array = [
'sb_reading' => [
@@ -50,7 +50,7 @@ $array = [
];
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -9,6 +9,6 @@ $colour_line = '2EAC6D';
$colour_area_max = 'FFEE99';
$graph_max = 10000;
$unit_text = 'Calls';
$rrd_filename = rrd_name($device['hostname'], ['app', 'asterisk', 'stats', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'asterisk', 'stats', $app['app_id']]);
require 'includes/html/graphs/generic_simplex.inc.php';

View File

@@ -9,6 +9,6 @@ $colour_line = '2EAC6D';
$colour_area_max = 'FFEE99';
$graph_max = 20000;
$unit_text = 'Channels';
$rrd_filename = rrd_name($device['hostname'], ['app', 'asterisk', 'stats', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'asterisk', 'stats', $app['app_id']]);
require 'includes/html/graphs/generic_simplex.inc.php';

View File

@@ -5,7 +5,7 @@ $i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'IAX2 Peers';
$rrd_filename = rrd_name($device['hostname'], ['app', 'asterisk', 'iax2', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'asterisk', 'iax2', $app['app_id']]);
$astiax2_access_array = [
'iax2peers' => 'Total Peers',
@@ -17,7 +17,7 @@ $astiax2_access_array = [
$colours = 'mixed';
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($astiax2_access_array as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;

View File

@@ -6,7 +6,7 @@ $scale_min = 0;
$nototal = 1;
$descr_len = 21;
$unit_text = 'SIP Peers';
$rrd_filename = rrd_name($device['hostname'], ['app', 'asterisk', 'stats', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'asterisk', 'stats', $app['app_id']]);
$astsip_access_array = [
'sippeers' => 'Total Peers',
@@ -19,7 +19,7 @@ $astsip_access_array = [
$colours = 'mixed';
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($astsip_access_array as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;

View File

@@ -2,7 +2,7 @@
require 'includes/html/graphs/common.inc.php';
$rrd_filename = rrd_name($device['hostname'], ['app', 'backupninja', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'backupninja', $app['app_id']]);
$array = [
'last_actions' => [
@@ -24,7 +24,7 @@ $array = [
];
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'adb']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'adb']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'Addresses',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'adb']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'adb']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'Address',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'cache']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'cache']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'Mem Exhaustion',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'cache']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'cache']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'Total',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'cache']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'cache']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'Hits',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'cache']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'cache']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'Total',

View File

@@ -33,7 +33,7 @@ $unit_text = 'query/sec';
$colours = 'psychedelic';
$rrd_list = [];
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id']]);
$array = [
'any',
'a',
@@ -46,7 +46,7 @@ $array = [
'srv',
'spf',
];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds) {
$rrd_list[] = [
'filename' => $rrd_filename,
@@ -58,7 +58,7 @@ if (rrdtool_check_rrd_exists($rrd_filename)) {
echo "file missing: $file";
}
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'incoming']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'incoming']);
$array = [
'afsdb',
'apl',
@@ -93,7 +93,7 @@ $array = [
'ixfr',
'opt',
];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds) {
$rrd_list[] = [
'filename' => $rrd_filename,

View File

@@ -9,7 +9,7 @@ $unit_text = 'query/sec';
$colours = 'psychedelic';
$rrd_list = [];
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'outgoing']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'outgoing']);
$array = [
'any',
'a',
@@ -54,7 +54,7 @@ $array = [
'ixfr',
'opt',
];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds) {
$rrd_list[] = [
'filename' => $rrd_filename,

View File

@@ -32,7 +32,7 @@ $i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'Query/sec';
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id']]);
$array = [
'any',
'a',
@@ -50,7 +50,7 @@ $rrd_list = [];
Config::set('graph_colours.merged', array_merge(Config::get('graph_colours.greens'), Config::get('graph_colours.blues')));
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = strtoupper($ds);

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'resolver']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'resolver']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'NXDOMAIN',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'resolver']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'resolver']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'IPv4 NS Ftchd',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'resolver']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'resolver']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'IPv4 Sent',

View File

@@ -9,7 +9,7 @@ $unit_text = 'RR sets';
$colours = 'psychedelic';
$rrd_list = [];
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'rrnegative']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'rrnegative']);
$array = [
'any',
'a',
@@ -55,7 +55,7 @@ $array = [
'ixfr',
'opt',
];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds) {
$rrd_list[] = [
'filename' => $rrd_filename,

View File

@@ -9,7 +9,7 @@ $unit_text = 'RR sets';
$colours = 'psychedelic';
$rrd_list = [];
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'rrpositive']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'rrpositive']);
$array = [
'any',
'a',
@@ -55,7 +55,7 @@ $array = [
'ixfr',
'opt',
];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds) {
$rrd_list[] = [
'filename' => $rrd_filename,

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'resolver']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'resolver']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => '<10',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'server']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'server']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'Auth Qry Rej',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'server']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'server']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'IPv4 Req',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'server']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'server']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'Successful',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'TCP/IPv4',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'UDP/IPv4',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'UDP/IPv4',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'UDP/IPv4',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'UDP/IPv4',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'UDP/IPv4 send',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'UDP/IPv4',

View File

@@ -9,10 +9,10 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app['app_id'], 'sockets']);
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'UDP/IPv4',

View File

@@ -8,7 +8,7 @@ $out_text = 'Commit';
$ceph_osd_rrd = ceph_rrd('osd');
if (rrdtool_check_rrd_exists($ceph_osd_rrd)) {
if (Rrd::checkRrdExists($ceph_osd_rrd)) {
$rrd_filename = $ceph_osd_rrd;
}

View File

@@ -4,7 +4,7 @@ require 'includes/html/graphs/common.inc.php';
$ceph_pool_rrd = ceph_rrd('df');
if (rrdtool_check_rrd_exists($ceph_pool_rrd)) {
if (Rrd::checkRrdExists($ceph_pool_rrd)) {
$rrd_filename = $ceph_pool_rrd;
}

View File

@@ -9,7 +9,7 @@ $format = 'bytes';
$ceph_pool_rrd = ceph_rrd('pool');
if (rrdtool_check_rrd_exists($ceph_pool_rrd)) {
if (Rrd::checkRrdExists($ceph_pool_rrd)) {
$rrd_filename = $ceph_pool_rrd;
}

View File

@@ -6,7 +6,7 @@ require 'includes/html/graphs/common.inc.php';
$ceph_pool_rrd = ceph_rrd('pool');
if (rrdtool_check_rrd_exists($ceph_pool_rrd)) {
if (Rrd::checkRrdExists($ceph_pool_rrd)) {
$rrd_filename = $ceph_pool_rrd;
}

View File

@@ -6,7 +6,7 @@ require 'includes/html/graphs/common.inc.php';
$ceph_pool_rrd = ceph_rrd('df');
if (rrdtool_check_rrd_exists($ceph_pool_rrd)) {
if (Rrd::checkRrdExists($ceph_pool_rrd)) {
$rrd_filename = $ceph_pool_rrd;
}

View File

@@ -18,9 +18,9 @@ if (isset($vars['cert_name'])) {
$int = 0;
while (isset($cert_name_list[$int])) {
$cert_name = $cert_name_list[$int];
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id, $cert_name]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $cert_name]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => $cert_name,

View File

@@ -5,7 +5,7 @@ require 'includes/html/graphs/common.inc.php';
$colours = 'mixed';
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Seconds PPM';
$rrd_filename = rrd_name($device['hostname'], ['app', 'chronyd', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'chronyd', $app['app_id']]);
$array = [
'frequency' => ['descr' => 'Error rate'],
'residual_frequency' => ['descr' => 'Ref clk offset'],
@@ -14,7 +14,7 @@ $array = [
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -5,7 +5,7 @@ require 'includes/html/graphs/common.inc.php';
$colours = 'mixed';
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Seconds';
$rrd_filename = rrd_name($device['hostname'], ['app', 'chronyd', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'chronyd', $app['app_id']]);
$array = [
'root_delay' => ['descr' => 'Root clk delay'],
'root_dispersion' => ['descr' => 'Root clk disp.'],
@@ -13,7 +13,7 @@ $array = [
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -5,14 +5,14 @@ require 'includes/html/graphs/common.inc.php';
$colours = 'mixed';
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Seconds PPM';
$rrd_filename = rrd_name($device['hostname'], ['app', 'chronyd', $app['app_id'], $vars['source']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'chronyd', $app['app_id'], $vars['source']]);
$array = [
'frequency' => ['descr' => 'Estimated'],
'frequency_skew' => ['descr' => 'Est. error'],
];
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -4,7 +4,7 @@ require 'includes/html/graphs/common.inc.php';
$colours = 'mixed';
$nototal = (($width < 224) ? 1 : 0);
$rrd_filename = rrd_name($device['hostname'], ['app', 'chronyd', $app['app_id'], $vars['source']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'chronyd', $app['app_id'], $vars['source']]);
$array = [
'polling_rate' => ['descr' => 'Polling rate'],
'last_rx' => ['descr' => 'Last RX'],
@@ -14,7 +14,7 @@ $array = [
];
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -5,7 +5,7 @@ require 'includes/html/graphs/common.inc.php';
$colours = 'mixed';
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Seconds';
$rrd_filename = rrd_name($device['hostname'], ['app', 'chronyd', $app['app_id'], $vars['source']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'chronyd', $app['app_id'], $vars['source']]);
$array = [
'adjusted_offset' => ['descr' => 'Adjusted'],
'measured_offset' => ['descr' => 'Measured'],
@@ -15,7 +15,7 @@ $array = [
];
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -5,13 +5,13 @@ require 'includes/html/graphs/common.inc.php';
$colours = 'mixed';
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Level';
$rrd_filename = rrd_name($device['hostname'], ['app', 'chronyd', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'chronyd', $app['app_id']]);
$array = [
'stratum' => ['descr' => 'Stratum'],
];
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -5,7 +5,7 @@ require 'includes/html/graphs/common.inc.php';
$colours = 'mixed';
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Seconds';
$rrd_filename = rrd_name($device['hostname'], ['app', 'chronyd', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'chronyd', $app['app_id']]);
$array = [
'system_time' => ['descr' => 'Clock lag'],
'last_offset' => ['descr' => 'Last offset'],
@@ -14,7 +14,7 @@ $array = [
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -21,9 +21,9 @@ $arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int = 0;
while (isset($arrays[$int])) {
$array = $arrays[$int];
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id, $array]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $array]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
[$net, $subnet] = explode('_', str_replace($category . '-', '', $array));
$rrd_list[] = [
'filename' => $rrd_filename,

View File

@@ -21,9 +21,9 @@ $arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int = 0;
while (isset($arrays[$int])) {
$array = $arrays[$int];
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id, $array]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $array]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
[$net, $subnet] = explode('_', str_replace($category . '-', '', $array));
$rrd_list[] = [
'filename' => $rrd_filename,

View File

@@ -21,9 +21,9 @@ $arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int = 0;
while (isset($arrays[$int])) {
$array = $arrays[$int];
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id, $array]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $array]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
[$net, $subnet] = explode('_', str_replace($category . '-', '', $array));
$rrd_list[] = [
'filename' => $rrd_filename,

View File

@@ -21,9 +21,9 @@ $arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int = 0;
while (isset($arrays[$int])) {
$array = $arrays[$int];
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id, $array]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $array]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => str_replace($category . '-', '', $array),

View File

@@ -21,9 +21,9 @@ $arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int = 0;
while (isset($arrays[$int])) {
$array = $arrays[$int];
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id, $array]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $array]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => str_replace($category . '-', '', $array),

View File

@@ -21,9 +21,9 @@ $arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int = 0;
while (isset($arrays[$int])) {
$array = $arrays[$int];
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id, $array]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $array]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => str_replace($category . '-', '', $array),

View File

@@ -14,7 +14,7 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
$array = [
'dhcp_total' => ['descr' => 'Total', 'colour' => '582A72'],
@@ -29,7 +29,7 @@ $array = [
];
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -21,9 +21,9 @@ if (isset($vars['container'])) {
$int = 0;
while (isset($containers[$int])) {
$container_name = $containers[$int];
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id, $container_name]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $container_name]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => $container_name,

View File

@@ -4,9 +4,9 @@ $scale_min = 0;
require 'includes/html/graphs/common.inc.php';
$drbd_rrd = rrd_name($device['hostname'], ['app', 'drbd', $app['app_instance']]);
$drbd_rrd = Rrd::name($device['hostname'], ['app', 'drbd', $app['app_instance']]);
if (rrdtool_check_rrd_exists($drbd_rrd)) {
if (Rrd::checkRrdExists($drbd_rrd)) {
$rrd_filename = $drbd_rrd;
}

View File

@@ -4,9 +4,9 @@ $scale_min = 0;
require 'includes/html/graphs/common.inc.php';
$drbd_rrd = rrd_name($device['hostname'], ['app', 'drbd', $app['app_instance']]);
$drbd_rrd = Rrd::name($device['hostname'], ['app', 'drbd', $app['app_instance']]);
if (rrdtool_check_rrd_exists($drbd_rrd)) {
if (Rrd::checkRrdExists($drbd_rrd)) {
$rrd_filename = $drbd_rrd;
}

View File

@@ -2,7 +2,7 @@
require 'includes/html/graphs/common.inc.php';
$rrd_filename = rrd_name($device['hostname'], ['app', 'drbd', $app['app_instance']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'drbd', $app['app_instance']]);
$array = [
'lo' => 'Local I/O',
@@ -12,7 +12,7 @@ $array = [
];
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
if (is_array($var)) {

View File

@@ -4,9 +4,9 @@ $scale_min = 0;
require 'includes/html/graphs/common.inc.php';
$drbd_rrd = rrd_name($device['hostname'], ['app', 'drbd', $app['app_instance']]);
$drbd_rrd = Rrd::name($device['hostname'], ['app', 'drbd', $app['app_instance']]);
if (rrdtool_check_rrd_exists($drbd_rrd)) {
if (Rrd::checkRrdExists($drbd_rrd)) {
$rrd_filename = $drbd_rrd;
}

View File

@@ -14,14 +14,14 @@ $printtotal = 0;
$addarea = 1;
$transparency = 33;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
$array = [
'entropy' => ['descr' => 'entropy', 'colour' => '2B9220'],
];
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -32,14 +32,14 @@ $printtotal = 0;
$addarea = 1;
$transparency = 33;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
$array = [
'frozen' => ['descr' => 'Frozen emails', 'colour' => 'c13a38'],
];
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -32,14 +32,14 @@ $printtotal = 0;
$addarea = 1;
$transparency = 33;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
$array = [
'queue' => ['descr' => 'Queue emails', 'colour' => 'c13a38'],
];
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -12,9 +12,9 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', $app['app_type'], $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $app['app_type'], $app['app_id']]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list = [
[
'filename' => $rrd_filename,

View File

@@ -12,8 +12,8 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', $app['app_type'], $app['app_id'], $vars['jail']]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_filename = Rrd::name($device['hostname'], ['app', $app['app_type'], $app['app_id'], $vars['jail']]);
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list = [
[
'filename' => $rrd_filename,

View File

@@ -13,9 +13,9 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list = [
[
'filename' => $rrd_filename,

View File

@@ -13,9 +13,9 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list = [
[
'filename' => $rrd_filename,

View File

@@ -13,9 +13,9 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list = [
[
'filename' => $rrd_filename,

View File

@@ -13,9 +13,9 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list = [
[
'filename' => $rrd_filename,

View File

@@ -13,9 +13,9 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list = [
[
'filename' => $rrd_filename,

View File

@@ -13,9 +13,9 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id]);
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list = [
[
'filename' => $rrd_filename,

View File

@@ -5,7 +5,7 @@ $i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'Per Sec.';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeradius-access', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeradius-access', $app['app_id']]);
$fr_access_array = [
'requests' => 'Requests',
'accepts' => 'Accepts',
@@ -14,7 +14,7 @@ $fr_access_array = [
];
$colours = 'mixed';
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($fr_access_array as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;

View File

@@ -5,7 +5,7 @@ $i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'Per Sec.';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeradius-acct', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeradius-acct', $app['app_id']]);
$fr_acct_array = [
'requests' => 'Requests',
'responses' => 'Responses',
@@ -17,7 +17,7 @@ $fr_acct_array = [
];
$colours = 'mixed';
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($fr_acct_array as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;

View File

@@ -5,7 +5,7 @@ $i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'Per Sec.';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeradius-auth', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeradius-auth', $app['app_id']]);
$fr_auth_array = [
'responses' => 'Responses',
'duplicate_requests' => 'Duplicate Requests',
@@ -16,7 +16,7 @@ $fr_auth_array = [
];
$colours = 'mixed';
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($fr_auth_array as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;

View File

@@ -5,7 +5,7 @@ $i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'Per Sec.';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeradius-proxy_access', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeradius-proxy_access', $app['app_id']]);
$fr_proxy_access_array = [
'requests' => 'Requests',
'accepts' => 'Accepts',
@@ -14,7 +14,7 @@ $fr_proxy_access_array = [
];
$colours = 'mixed';
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($fr_proxy_access_array as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;

View File

@@ -5,7 +5,7 @@ $i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'Per Sec.';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeradius-proxy_acct', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeradius-proxy_acct', $app['app_id']]);
$fr_proxy_acct_array = [
'requests' => 'Requests',
'responses' => 'Responses',
@@ -17,7 +17,7 @@ $fr_proxy_acct_array = [
];
$colours = 'mixed';
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($fr_proxy_acct_array as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;

View File

@@ -5,7 +5,7 @@ $i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'Per Sec.';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeradius-proxy_auth', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeradius-proxy_auth', $app['app_id']]);
$fr_proxy_auth_array = [
'responses' => 'Responses',
'duplicate_requests' => 'Duplicate Requests',
@@ -16,7 +16,7 @@ $fr_proxy_auth_array = [
];
$colours = 'mixed';
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($fr_proxy_auth_array as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;

View File

@@ -5,7 +5,7 @@ $i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'Per Sec.';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeradius-queue', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeradius-queue', $app['app_id']]);
$fr_queue_array = [
'len_internal' => 'Len Internal',
'len_proxy' => 'Len Proxy',
@@ -17,7 +17,7 @@ $fr_queue_array = [
];
$colours = 'mixed';
$rrd_list = [];
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($fr_queue_array as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;

View File

@@ -9,6 +9,6 @@ $colour_line = '2EAC6D';
$colour_area_max = 'FFEE99';
$graph_max = 10000;
$unit_text = 'Calls';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
require 'includes/html/graphs/generic_simplex.inc.php';

View File

@@ -6,7 +6,7 @@ $scale_min = 0;
$colours = 'blue';
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Inbound Calls/sec';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
$array = [
'in_okay' => [
'descr' => 'Okay',
@@ -20,7 +20,7 @@ $array = [
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -6,7 +6,7 @@ $scale_min = 0;
$colours = 'blue';
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Outbound Calls/sec';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
$array = [
'out_okay' => [
'descr' => 'Okay',
@@ -20,7 +20,7 @@ $array = [
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -9,6 +9,6 @@ $colour_line = '2EAC6D';
$colour_area_max = 'FFEE99';
$graph_max = 10000;
$unit_text = 'Channels';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
require 'includes/html/graphs/generic_simplex.inc.php';

View File

@@ -9,6 +9,6 @@ $colour_line = '2EAC6D';
$colour_area_max = 'FFEE99';
$graph_max = 10000;
$unit_text = 'Peak Calls';
$rrd_filename = rrd_name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeswitch', 'stats', $app['app_id']]);
require 'includes/html/graphs/generic_simplex.inc.php';

View File

@@ -27,7 +27,7 @@ $colours = 'mixed';
$unit_text = 'DOP';
$nototal = 1;
$rrd_filename = rrd_name($device['hostname'], ['app', 'gpsd', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'gpsd', $app['app_id']]);
$array = [
'hdop' => ['descr' => 'Horizontal'],
'vdop' => ['descr' => 'Vertical'],
@@ -35,7 +35,7 @@ $array = [
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -30,8 +30,8 @@ $colour_area_max = 'FFCCCC';
$graph_max = 0;
$unit_text = 'Mode';
$gpsd = rrd_name($device['hostname'], ['app', 'gpsd', $app['app_id']]);
if (rrdtool_check_rrd_exists($gpsd)) {
$gpsd = Rrd::name($device['hostname'], ['app', 'gpsd', $app['app_id']]);
if (Rrd::checkRrdExists($gpsd)) {
$rrd_filename = $gpsd;
} else {
echo "file missing: $rrd_filename";

View File

@@ -27,7 +27,7 @@ $colours = 'mixed';
$unit_text = 'Satellites';
$nototal = 1;
$rrd_filename = rrd_name($device['hostname'], ['app', 'gpsd', $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', 'gpsd', $app['app_id']]);
$array = [
'satellites' => ['descr' => 'Visible', 'area' => true],
'satellites_used' => ['descr' => 'Used', 'area' => true],
@@ -35,7 +35,7 @@ $array = [
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -5,9 +5,9 @@ $scale_max = 1;
require 'includes/html/graphs/common.inc.php';
$icecast_rrd = rrd_name($device['hostname'], ['app', 'icecast', $app['app_id']]);
$icecast_rrd = Rrd::name($device['hostname'], ['app', 'icecast', $app['app_id']]);
if (rrdtool_check_rrd_exists($icecast_rrd)) {
if (Rrd::checkRrdExists($icecast_rrd)) {
$rrd_filename = $icecast_rrd;
}

View File

@@ -4,9 +4,9 @@ $scale_min = 1000;
require 'includes/html/graphs/common.inc.php';
$icecast_rrd = rrd_name($device['hostname'], ['app', 'icecast', $app['app_id']]);
$icecast_rrd = Rrd::name($device['hostname'], ['app', 'icecast', $app['app_id']]);
if (rrdtool_check_rrd_exists($icecast_rrd)) {
if (Rrd::checkRrdExists($icecast_rrd)) {
$rrd_filename = $icecast_rrd;
}

View File

@@ -4,9 +4,9 @@ $scale_min = 1000;
require 'includes/html/graphs/common.inc.php';
$icecast_rrd = rrd_name($device['hostname'], ['app', 'icecast', $app['app_id']]);
$icecast_rrd = Rrd::name($device['hostname'], ['app', 'icecast', $app['app_id']]);
if (rrdtool_check_rrd_exists($icecast_rrd)) {
if (Rrd::checkRrdExists($icecast_rrd)) {
$rrd_filename = $icecast_rrd;
}

View File

@@ -25,7 +25,7 @@ $dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 33;
$rrd_filename = rrd_name($device['hostname'], ['app', $app['app_type'], $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $app['app_type'], $app['app_id']]);
$array = [
'senders' => ['descr' => 'Sender(s)', 'colour' => '11d3f5'],
@@ -36,7 +36,7 @@ $array = [
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -25,7 +25,7 @@ $dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 33;
$rrd_filename = rrd_name($device['hostname'], ['app', $app['app_type'], $app['app_id']]);
$rrd_filename = Rrd::name($device['hostname'], ['app', $app['app_type'], $app['app_id']]);
$array = [
'received' => ['descr' => 'Received', 'colour' => '75a832'],
@@ -40,7 +40,7 @@ $array = [
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
if (Rrd::checkRrdExists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

Some files were not shown because too many files have changed in this diff Show More