change is_file to rrdtool_check_rrd_exists. (#8169)

This commit is contained in:
Leandro Maciel
2018-01-29 13:52:22 -02:00
committed by Tony Murray
parent 20335bce5d
commit 06aa3b23f2
37 changed files with 37 additions and 37 deletions

View File

@@ -28,7 +28,7 @@ $array = array(
);
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -39,7 +39,7 @@ $array = array(
);
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -39,7 +39,7 @@ $array = array(
);
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -13,7 +13,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $app['app_type'], $app['app_id']));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -74,7 +74,7 @@ $array = array(
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -21,7 +21,7 @@ $array = array(
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -18,7 +18,7 @@ $array = array(
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -20,7 +20,7 @@ $array = array(
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -28,7 +28,7 @@ $array = array(
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -19,7 +19,7 @@ $array = array(
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -21,7 +21,7 @@ $array = array(
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -38,7 +38,7 @@ $array = array(
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -20,7 +20,7 @@ $array = array(
);
$i = 0;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $var['descr'];

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -14,7 +14,7 @@ $transparency = 15;
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id));
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -20,7 +20,7 @@ if (isset($vars['database'])) {
$rrd_filename = rrd_name($device['hostname'], $rrd_name_array);
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -20,7 +20,7 @@ if (isset($vars['database'])) {
$rrd_filename = rrd_name($device['hostname'], $rrd_name_array);
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -21,7 +21,7 @@ if (isset($vars['database'])) {
$rrd_filename = rrd_name($device['hostname'], $rrd_name_array);
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -20,7 +20,7 @@ if (isset($vars['database'])) {
$rrd_filename = rrd_name($device['hostname'], $rrd_name_array);
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -20,7 +20,7 @@ if (isset($vars['database'])) {
$rrd_filename = rrd_name($device['hostname'], $rrd_name_array);
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -20,7 +20,7 @@ if (isset($vars['database'])) {
$rrd_filename = rrd_name($device['hostname'], $rrd_name_array);
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -24,7 +24,7 @@
*/
$rrd = rrd_name($device['hostname'], array('app', 'powerdns-recursor', $app['app_id']));
if (is_file($rrd)) {
if (rrdtool_check_rrd_exists($rrd)) {
$rrd_filename = $rrd;
}
$simple_rrd = true;

View File

@@ -29,7 +29,7 @@ $colours = 'oranges';
$unit_text = 'Answers/sec';
$print_total = true;
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'ds' => 'answers0-1',

View File

@@ -27,7 +27,7 @@ include 'powerdns-recursor.inc.php';
$colours = 'mixed';
$unit_text = 'Packets/sec';
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -28,7 +28,7 @@ include 'powerdns-recursor.inc.php';
$colours = 'purples';
$unit_text = 'Entries';
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -28,7 +28,7 @@ include 'powerdns-recursor.inc.php';
$colours = 'mixed';
$unit_text = 'Queries/sec';
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,

View File

@@ -28,7 +28,7 @@ include 'powerdns-recursor.inc.php';
$colours = 'mixed';
$unit_text = 'Questions/sec';
if (is_file($rrd_filename)) {
if (rrdtool_check_rrd_exists($rrd_filename)) {
$rrd_list = array(
array(
'filename' => $rrd_filename,