mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Add default id_group 10 Unknown to new agents
This commit is contained in:
parent
20425562c9
commit
797db7f24b
@ -4515,7 +4515,7 @@ sub cli_create_event() {
|
|||||||
# exist_check($id_agent,'agent',$agent_name);
|
# exist_check($id_agent,'agent',$agent_name);
|
||||||
if($id_agent == -1){
|
if($id_agent == -1){
|
||||||
if($force_create_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";
|
print_log "[INFO] Adding agent '$agent_name' \n\n";
|
||||||
$id_agent = get_agent_id($dbh,$agent_name);
|
$id_agent = get_agent_id($dbh,$agent_name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user