Hi Edeivy
Thanks for using Wazuh
To fix the problem of the Wazuh agent being disconnected from Active, you can try the following steps:
Check the network connectivity between the Wazuh agent and the Wazuh manager. Ensure that there are no firewall rules blocking the communication. You can use: telnet <Wazuh_administrator_IP> 1514
Verify that the Wazuh agent is running with systemctl status wazuh-agent on Linux systems or the sc query wazuh-agent command on Windows systems. Check the agent configuration file and make sure it has the correct IP address and port of the Wazuh manager. The agent configuration file is located in /var/ossec/etc/ossec.conf on Linux systems or in C:\Program Files (x86)\ossec-agent\ossec.conf on Windows systems.
Restart the Wazuh agent service. Sometimes a simple restart can resolve the disconnection issue. Use the systemctl restart wazuh-agent command on Linux systems or the sc stop wazuh-agent command followed by the sc start wazuh-agent command on Windows systems to restart the agent service.
Check the logs of both the Wazuh agent and the Wazuh manager for any error messages or warnings related to the disconnection. This can provide valuable information for troubleshooting. The agent logs are located in /var/ossec/logs/ossec.log on Linux systems or in C:\Program Files (x86)\ossec-agent-logs/ossec.log on Windows systems. Administrator logs are located in /var/ossec/logs/ossec.log on Linux systems


