#13113 fixed server thread pandora_agent_autoconfiguration_scheduled

This commit is contained in:
Daniel Cebrian 2024-03-19 14:14:23 +01:00
parent 53bead2acc
commit 0003c70ea7
1 changed files with 6 additions and 3 deletions

View File

@ -161,12 +161,15 @@ sub pandora_startup () {
# Start the task execution thread.
start_server_thread(\&pandora_server_tasks, [\%Config]);
# Start the policy queue thread.
start_server_thread(\&pandora_process_policy_queue, [\%Config]) if ($Config{'__enterprise_enabled'} == 1 && $Config{'policy_manager'} == 1);
# Start agent autoconfiguration thread.
start_server_thread(\&pandora_agent_autoconfiguration_scheduled, [\%Config]) if ($Config{'__enterprise_enabled'} == 1 && $Config{'autoconfigure_agents'} == 1);
# Start agent autoconfiguration only in master..
if (pandora_is_master(\%Config) == 1) {
# Start agent autoconfiguration thread.
start_server_thread(\&pandora_agent_autoconfiguration_scheduled, [\%Config]) if ($Config{'__enterprise_enabled'} == 1 && $Config{'autoconfigure_agents'} == 1);
}
# Start the netflow daemon if necessary
pandora_start_netflow_daemon ();