Merge branch 'ordenar-replicacion-de-eventos-y-update-agent-cache-al-final-del-arranque-del-server' into 'develop'

Sync the agent cache in the background.

See merge request !639
This commit is contained in:
vgilc 2017-07-05 11:39:58 +02:00
commit 3a3a7a83fe
1 changed files with 1 additions and 2 deletions

View File

@ -102,8 +102,7 @@ sub pandora_startup () {
$Config{"encryption_key"} = enterprise_hook('pandora_get_encryption_key', [\%Config, $Config{"encryption_passphrase"}]);
# Update the agent cache.
enterprise_hook('update_agent_cache', [\%Config, $DBH]) if ($Config{'node_metaconsole'} == 1);
threads->create('enterprise_hook', ('update_agent_cache', [\%Config]))->detach() if ($Config{'node_metaconsole'} == 1);
pandora_audit (\%Config, 'Pandora FMS Server Daemon starting', 'SYSTEM', 'System', $DBH);
# Load servers