Hi Bayu,
Never connected: The Wazuh agent has been enrolled but has not yet connected to the Wazuh manager.
Ref:
https://documentation.wazuh.com/current/user-manual/agent/agent-enrollment/agent-life-cycle.htmlWazuh manager and agent
ossec.log files located at:
/var/ossec/logs/ossec.log• Wazuh manager and agent configuration files:
/var/ossec/etc/ossec.conf• The list of agents using the command below:
/var/ossec/bin/agent_control -lThese details will help us investigate the issue further.
Also, check if the agent is running properly:
systemctl status wazuh-agentVerifying communication with the Wazuh manager: On Linux and macOS systems (with netcat installed), open a terminal and run the following command. Replace
<WAZUH_MANAGER_IP_ADDRESS> with your Wazuh manager IP address or FQDN (Fully Qualified Domain Name).
nc -zv <WAZUH_MANAGER_IP_ADDRESS> 1514 1515 55000If there is connectivity, the output should be a connection success message:
Connection to <WAZUH_MANAGER_IP_ADDRESS> port 1514 [tcp] succeeded!
Connection to <WAZUH_MANAGER_IP_ADDRESS> port 1515 [tcp] succeeded!
Connection to <WAZUH_MANAGER_IP_ADDRESS> port 55000 [tcp] succeeded!
If this failed, please check any network firewall blocking the connection.
If you have a Wazuh cluster, make sure that all Wazuh worker nodes and the manager node's disk space are enough because agent syncing issues arise whenever the worker nodes' disk space is full.
If connectivity between the manager and agents is unstable, agents may attempt to re-enroll with the Wazuh manager after some time, which can lead to duplicate agent name issues.
Could you please validate that the connection is stable? If there is a load balancer in front of the Wazuh manager, verify that its configuration is correct and review the load balancer logs for any connection issues.
For more details regarding further troubleshooting, you can refer to this
guide.
Let me know the update on this. So we can check further.