Upgrade agent from Wazuh manager

88 views
Skip to first unread message

Le Sok

unread,
Jan 11, 2024, 11:29:03 PM1/11/24
to Wazuh | Mailing List
Hello team,
I want to upgrade Wazuh agent from wazuh manager. I just upgrade Wazuh server from 4.5 to 4.7 so I want o upgrade my Wazuh agent to 4.7 too. But I got some problem here 
([sfdg@wazuh-server wazuh-user]# /var/ossec/bin/agent_upgrade -a 023 024

Upgrading...

Failed upgrades:
        Agent 023 status: The repository is not reachable
        Agent 024 status: The repository is not reachable
[sfdg@wazuh-server wazuh-user]# /var/ossec/bin/agent_upgrade -a 023

Upgrading...

Failed upgrades:
        Agent 023 status: The repository is not reachable
[sfdg@wazuh-server wazuh-user]# /var/ossec/bin/agent_upgrade -a 077

Upgrading...

Failed upgrades:
        Agent 077 status: The repository is not reachable)
I have follow internet when I research but doesn't work for me.
so please help me to solve this problem.
Best regards.

Stuti Gupta

unread,
Jan 11, 2024, 11:42:31 PM1/11/24
to Wazuh | Mailing List
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.html
Please 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.wpk
For linux: wget https://packages.wazuh.com/4.x/wpk/linux/x86_64/wazuh_agent_v4.7.2_linux_x86_64.wpk
Then 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,

Le Sok

unread,
Jan 14, 2024, 8:39:19 PM1/14/24
to Wazuh | Mailing List
What about another OS sir like : AIX, Solaris,..... sir.
I try use  https://packages.wazuh.com/4.x/wpk/linux/x86_64/wazuh_agent_v4.7.2_linux_x86_64.wpk
but not working on OS: AIX Solaris 

Stuti Gupta

unread,
Jan 16, 2024, 5:34:17 AM1/16/24
to Wazuh | Mailing List
Hi Le sok,

Remote upgrade via API and CLI is not compatible with Solaris agents. Currently, we only support this kind of upgrade only for Windows and Linux systems. This is why you can't upgrade it, you can also refer to https://github.com/wazuh/wazuh/issues/19695#issuecomment-1766204674.  To perform the upgrade locally, select your operating system and follow the instructions.
Solaris
AIX
HP-UX

Hope this helps
Regards
Reply all
Reply to author
Forward
0 new messages