From 4f76a44ffa7a5bacb0a02ff64e89ec2e9c882b87 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 27 Sep 2021 15:12:20 +0200 Subject: [PATCH] Several fixes for correlation recovery --- pandora_server/lib/PandoraFMS/Core.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 9690ad9c4c..164e9b44f0 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -660,9 +660,7 @@ sub pandora_evaluate_alert ($$$$$$$;$$$$) { ] ); - return $status unless defined ($rc); - - return $rc unless $rc == 0; + return $status unless !PandoraFMS::Tools::is_empty($rc) && $rc == 1; } # Check min and max alert limits