Hi,
Can you please confirm that I have understood your question correctly: you want to change the IP address of the
agent on the
manager side after the registration process?
In case I got it right please follow these steps:
- Stop the
manager. To do this, for example, in the CentOS you will need to run this command:
systemctl stop wazuh-manager- In the
manager and
agent machines please modify the file
/var/ossec/etc/client.keys. There will be four values separated by spaces, and the third value is the IP that you will need to change. On the
manager side you will have the list of
agents that are registered to this
manager, please change the ip value of the
agent that you need.
- Rename the name of the file
/var/ossec/queue/agent-info/<your-agent-name>-<your-agent-ip> to
/var/ossec/queue/agent-info/<your-agent-name>-<your-agent-new-ip>- Rename the name of the file
/var/ossec/queue/rootcheck/<your-agent-name>-<your-agent-ip> to
/var/ossec/queue/rootcheck/<your-agent-name>-<your-agent-new-ip>- Then, restart both your agent and your manager.
Kind regards,
Do Tuan Anh.