From a49eaf90f6bd4686df2afe41237a3f339456d76c Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Wed, 24 Apr 2019 12:50:02 +0200 Subject: [PATCH] Add support for 'not_normal' alert templates. Former-commit-id: f9bf95bd64f399badcd5f00b80921255f4642a8c --- pandora_server/lib/PandoraFMS/Core.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 29d3f14f62..aee397f90a 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -566,6 +566,7 @@ sub pandora_evaluate_alert ($$$$$$$;$$$) { return $status if ($last_status != 1 && $alert->{'type'} eq 'critical'); return $status if ($last_status != 2 && $alert->{'type'} eq 'warning'); return $status if ($last_status != 3 && $alert->{'type'} eq 'unknown'); + return $status if ($last_status == 0 && $alert->{'type'} eq 'not_normal'); } # Event alert else {