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