From e85604775b74cfaf9f459d0a07e865373f906728 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 11 Dec 2023 18:35:34 +0100 Subject: [PATCH] Add support for ignore_unknown. If tagente_modulo.ignore_unknown is set to 1, a module will never become unknown. --- pandora_server/lib/PandoraFMS/Core.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 673ccce1f0..6ade57257b 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -7036,7 +7036,9 @@ sub pandora_module_unknown ($$) { WHERE tagente.id_agente = tagente_estado.id_agente AND tagente_modulo.id_agente_modulo = tagente_estado.id_agente_modulo AND tagente.disabled = 0 + AND tagente.ignore_unknown = 0 AND tagente_modulo.disabled = 0 + AND tagente_modulo.ignore_unknown = 0 AND ((tagente_modulo.id_tipo_modulo IN (21, 22, 23) AND tagente_estado.estado <> 0) OR (' . ($pa_config->{'unknown_updates'} == 0 ?