Ensure there is a stable and reliable network connection between the Wazuh Manager and the agents. If the connection is unstable, agents might try to re-enroll as new agents, which can lead to agent name duplication issues.
2. Check force_reconnect_interval SettingHave you configured force_reconnect_interval in the Wazuh agent's ossec.conf file or in the shared agent.conf file from the manager?
If enabled, this setting forces the agent to reconnect to the Wazuh Manager at regular intervals, even if already connected, which can lead to duplication.
If it's enabled, consider disabling it.
You can refer to the Wazuh client configuration documentation for more details.
On the Wazuh Manager, remove the conflicting agent ID (e.g., ID 063) by running the following command:
This command removes the agent entry from the manager to clear the conflict.
Restart the Wazuh AgentOn the Windows endpoint, restart the Wazuh agent to trigger re-enrollment:
After restarting, the agent should automatically reappear in the Wazuh Manager with a new agent ID, resolving the duplication issue.
Additionally, you might find this GitHub issue helpful, as it describes a similar case and resolution steps.
Also, you can refer this Wazuh reddit discussion which is similar to your issue.
If the issue still persists and you need further assistance, please share the following files for analysis:
The Wazuh agent /var/ossec/etc/ossec.conf file
The shared /var/ossec/etc/shared/agent.conf file (if applicable)
The Wazuh agent /var/ossec/logs/ossec.log file from the agent that is showing this issue
This information will help in performing a deeper analysis to identify the root cause.