From 863397ec51100c906743c0b3ecc1f57f83c1a302 Mon Sep 17 00:00:00 2001 From: Hirofumi Kosaka Date: Thu, 19 Nov 2015 13:41:52 +0900 Subject: [PATCH] Fixed that Cascade Protection unexpectedly worked against disabled modules of parent agents. --- 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 3cdb99d8c9..e6babe173d 100755 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -3676,6 +3676,7 @@ sub pandora_inhibit_alerts { my $count = get_db_value ($dbh, 'SELECT COUNT(*) FROM tagente_modulo, talert_template_modules, talert_templates WHERE tagente_modulo.id_agente = ? AND tagente_modulo.id_agente_modulo = talert_template_modules.id_agent_module + AND tagente_modulo.disabled = 0 AND talert_template_modules.id_alert_template = talert_templates.id AND talert_template_modules.times_fired > 0 AND talert_templates.priority = 4', $agent->{'id_parent'});