Sync the agent cache in the background.

Ref artica/pandora_enterprise#871.
This commit is contained in:
Ramon Novoa 2017-06-30 17:50:27 +02:00
parent b8c1227e7e
commit ce1491154e
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