wazuh-kubernetes icon indicating copy to clipboard operation
wazuh-kubernetes copied to clipboard

Add Wazuh Agent

Open prathameshmalage opened this issue 2 years ago • 1 comments

I have deployed Wazuh on GKE cluster. But can anyone help or provide with any documentation on how to add Wazuh Agent.

prathameshmalage avatar Aug 16 '22 19:08 prathameshmalage

Hi @prathameshmalage To register/add a new agent to the Wazuh cluster deployed with kubernetes you should:

  1. Install the agent in the host you want to monitor.
  2. Configure the ossec.conf. You have to replace the MANAGER_IP with the workers' LB DNS. To obtain the DNS you can use:
kubectl get svc -n wazuh
  1. Register the agent against the master's LB DNS with the following command (you can also obtain the DNS with the previous command). Make sure to replace the <MASTER_LB_DNS> with the obtained value and the default password is password:
/var/ossec/bin/agent-auth -m <MASTER_LB_DNS> -p password
NOTE: both, the LB for master and workers should be reachable from the agent's host.
  1. Check in the Dashboard if the agent is connected.

teddytpc1 avatar Aug 31 '22 12:08 teddytpc1