From 72d57bc06704dd3540e75989a17723e1cdce5f84 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 22 Jul 2021 11:39:00 +0200 Subject: [PATCH] Get command field if it is not defined in alert or action --- pandora_server/lib/PandoraFMS/Core.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 61084010a3..8a18caced9 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -1106,8 +1106,7 @@ sub pandora_execute_action ($$$$$$$$$;$) { $field20 = defined($alert->{'field20'}) && $alert->{'field20'} ne "" ? $alert->{'field20'} : $action->{'field20'}; } - print Dumper($field1); - + # Recovery fields, thanks to Kato Atsushi if ($alert_mode == RECOVERED_ALERT) { # Field 1 is a special case where [RECOVER] prefix is not added even when it is defined