From 4f0ba4cb6478c6cb57c63182355612ef2ca75078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Mon, 5 Sep 2022 13:53:08 +0200 Subject: [PATCH] Fix disabled agents filling --- pandora_server/lib/PandoraFMS/DiscoveryServer.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm index 98cce399ed..0d9660b733 100644 --- a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm +++ b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm @@ -1879,7 +1879,9 @@ sub PandoraFMS::Recon::Base::create_agents($$) { $force_processing = 1; } else { - $agent_id = $current_agent->{'id_agente'}; + if ($current_agent->{'disabled'} eq '0') { + $agent_id = $current_agent->{'id_agente'}; + } } if (!defined($agent_id)) {