Solved an internal issue for control the test result

This commit is contained in:
Jose Gonzalez 2020-01-20 11:27:39 +01:00
parent 867ae40b17
commit 6fdd460f8a
1 changed files with 2 additions and 2 deletions

View File

@ -678,8 +678,8 @@ sub main() {
# Testing API url
my $curl_execution = "'".$Config{'console_api_url'}."?op=get&op2=test&apipass=".$Config{"console_api_pass"}."&user=".$Config{"console_user"}."&pass=".$Config{"console_pass"}."'";
my @res_testing_api = `curl $curl_execution`;
my $exe_testing_api = `curl $curl_execution`;
my @res_testing_api = split(',', $exe_testing_api);
if ( $res_testing_api[0] ne 'OK' ) {
logger(\%Config, "Warning! The server does not have access to the API, this can trigger problems in the generation of reports and graphs.", 1);
pandora_event (\%Config, "Server does not have access to the API", 0, 0, 0, 0, 0, 'system', 0, $DBH);