Now the server uses the alias for the new agent event

This commit is contained in:
Alejandro Gallardo Escobar 2017-02-21 15:16:38 +01:00
parent e3205226e1
commit edddad2b5f
1 changed files with 1 additions and 1 deletions

View File

@ -2924,7 +2924,7 @@ sub pandora_create_agent ($$$$$$$$$$;$$$$$$$$$) {
}
logger ($pa_config, "Server '$server_name' CREATED agent '$agent_name' address '$address'.", 10);
pandora_event ($pa_config, "Agent [$agent_name] created by $server_name", $group_id, $agent_id, 2, 0, 0, 'new_agent', 0, $dbh);
pandora_event ($pa_config, "Agent [$alias] created by $server_name", $group_id, $agent_id, 2, 0, 0, 'new_agent', 0, $dbh);
return $agent_id;
}