Add default id_group 10 Unknown to new agents

This commit is contained in:
Félix Suárez 2023-05-27 14:51:53 -06:00
parent 20425562c9
commit 797db7f24b
1 changed files with 1 additions and 1 deletions

View File

@ -4515,7 +4515,7 @@ sub cli_create_event() {
# exist_check($id_agent,'agent',$agent_name);
if($id_agent == -1){
if($force_create_agent == 1){
pandora_create_agent ($conf, '', $agent_name, '', '', '', '', 'Created by cli_create_event', '', $dbh);
pandora_create_agent ($conf, '', $agent_name, '', '10', '', '', 'Created by cli_create_event', '', $dbh);
print_log "[INFO] Adding agent '$agent_name' \n\n";
$id_agent = get_agent_id($dbh,$agent_name);
}