Hi Le Sok
Hope you are doing well today and thank you for using wazuh.
The error: Agent 003 status: The repository is not reachable, which means the manager can't find an Agent version in the external repository. Does the manager and agent have an internet connection?
Can you please let us know which version of Wazuh Manager you using?
Make sure the wazuh-manager version is higher or equal To the wazuh agent
Please agent upgrade module: The agent upgrade module is responsible for carrying out the entire agent upgrade process remotely:
https://documentation.wazuh.com/current/user-manual/agents/remote-upgrading/agent-upgrade-module.htmlPlease share the ossec.log of wazuh agent and manager.
You can also run the WPK package from the Wazuh manager and upgrade the wazuh-agent
Please follow the steps:
At the wazuh manager side
Run the command to download the windows wpk: wget
https://packages.wazuh.com/4.x/wpk/windows/wazuh_agent_v4.7.2_windows.wpkFor linux: wget
https://packages.wazuh.com/4.x/wpk/linux/x86_64/wazuh_agent_v4.7.2_linux_x86_64.wpkThen run this command to upgrade the windows agent: /var/ossec/bin/agent_upgrade -a 006 -f /path/to/wazuh_agent_v4.5.3_windows.wpk -x upgrade.bat
Linux agent: /var/ossec/bin/agent_upgrade -a 003 -f /path/to/wazuh_agent_v4.7.2_linux_x86_64.wpk -x upgrade.sh
Hope to hear from you soon.
Regards,