Hi Chandra,
Could you please let us know which version of the Wazuh server you are using and the version of the agent that is showing this issue? If the agent version is newer than the manager, it can cause version conflict issues.
You should also check if the network connection between the Wazuh Manager server and the affected agents is stable. You can run the following command on the agent server when you face this issue again. This will verify the connection between the Wazuh Agent and the Wazuh Manager on port 1514:
nc -vz <wazuh-manager-IP> 1514
Replace the <wazuh-manager-IP> with
the IP address of your Wazuh Manager server.
If there are no connection issues, the output will look like this:
If the connection fails, please verify your network configurations.
Also, when you encounter this disconnection issue, check for error entries in the Wazuh Manager and Wazuh Agent logs. You can run the following command on both servers to look for relevant log entries:
cat /var/ossec/logs/ossec.log | grep -iE "error|warn|fatal|crit"
For agents on Windows, the log file is located at: C:\Program Files (x86)\ossec-agent\ossec.log