Agent cluster node from one node to another node

23 views
Skip to first unread message

Kirijan J

unread,
Sep 11, 2024, 6:54:23 AM9/11/24
to Wazuh | Mailing List
Hi Team,

We have load balancer cluster setup

Master_Node 
Worker_Node1
Worker_Node2


help me to move the agent cluster node from one node to another node.
Ex. 
Master_Node ---> Worker_Node1
Worker_Node2 ---> Master_Node



Thanks,
Kirijan J

Marcos Javier Bonacci

unread,
Sep 11, 2024, 10:22:00 AM9/11/24
to Wazuh | Mailing List
Hi Kirijan,

Let me review your inquiry and I will get back to you as soon as possible.

Marcos Javier Bonacci

unread,
Sep 11, 2024, 11:10:34 AM9/11/24
to Wazuh | Mailing List
Hi again Kirijan,
It is impossible to indicate with a load balancer in the middle which worker to point to or if I want to point to the master the connection of an agent. In the scheme you have, 1 master and 2 workers, all of them are receiving agent connections.
The only way to move an agent to a specific node is to configure the IP of the node you want to connect to in the configuration file in the agent /var/ossec/etc/ossec.conf :
 <server>
    <address>192.168.1.100</address>
    <port>1515</port>.
  </server>

Then it is necessary to restart the agent:
sudo systemctl restart wazuh-agent
In this way, the agent will connect to the node you specify.
I stay tuned. 
Reply all
Reply to author
Forward
0 new messages