Greetings!!!
Background:
To deploy a wazuh-agent, following steps are given under Wazuh Dashboard -
Choose an OS
Wazuh Server Address
Assign the agent to a group
Install and enroll the agent
Start the agent
Post selecting the values, I get following command -
sudo WAZUH_MANAGER='wazuh.example.com' WAZUH_AGENT_GROUP='default,uat,apps' yum install https://packages.wazuh.com/4.x/yum/wazuh-agent-4.3.10-1.x86_64.rpm
Issue:
Post registering the agent, I can only see the first group getting assigned to the agent. Remaining groups don’t get assigned.
WAZUH_AGENT_GROUP='uat,apps' >> UAT group will get assigned
WAZUH_AGENT_GROUP='default,apps' >> DEFAULT group will get assigned
Could someone please help?
Also wish to know the process to assign groups to existing agents which are added in past. This will probably a bulk process.
Thanks!!
-KS
Hey Wali.. Thank you so much for pointing that out!
That “Double Quote” thing worked like a charm. We might need to get it altered under Wazuh Dashboard >> Agent >> (+) Deploy new agent.
Also I checked above snippets to manage agent groups, however there is one challenge - that while adding removing agents, I do not see agent’s existing configured groups. That could be the feature requests in upcoming releases if feasible.
If I have the list of agents which are marked for group assignment, is there any command line way where in I can assign the group these set of agents?
Regards, KS