From 6fdd460f8a0216542a7586b2909c85265f370357 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Mon, 20 Jan 2020 11:27:39 +0100 Subject: [PATCH] Solved an internal issue for control the test result --- pandora_server/bin/pandora_server | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/bin/pandora_server b/pandora_server/bin/pandora_server index ab8acf6106..c88562946f 100755 --- a/pandora_server/bin/pandora_server +++ b/pandora_server/bin/pandora_server @@ -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);