Hi,
Sorry for the delay
I'm using Wazuh 3.9.3 in both
Ubuntu 16.04 LTS in both
- 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.
I followed your instructions but the problem still persists:
2021/01/11 11:27:26 ossec-analysisd: WARNING: Rootcheck database '(ServerName) ip_address->rootcheck' has been deleted. Recreating.
2021/01/11 11:27:26 ossec-analysisd: WARNING: Rootcheck database '(ServerName) ip_address->rootcheck' has been deleted. Recreating.
2021/01/11 11:27:26 ossec-analysisd: WARNING: Rootcheck database '(ServerName) ip_address->rootcheck' has been deleted. Recreating.
2021/01/11 11:27:26 ossec-analysisd: WARNING: Rootcheck database '(ServerName) ip_address->rootcheck' has been deleted. Recreating.
2021/01/11 11:29:29 ossec-analysisd: WARNING: Rootcheck database '(ServerName) ip_address->rootcheck' has been deleted. Recreating.
And the files /var/ossec/queue/agent-info/<your-agent-name>-<your-agent-ip> and /var/ossec/queue/rootcheck/<your-agent-name>-<your-agent-ip> are missing
Thank you.