Upgrading Agent via Wazuh Dashboard

1,059 views
Skip to first unread message

Arby Malabo

unread,
Jan 16, 2024, 3:29:09 AM1/16/24
to Wazuh | Mailing List
Hello Everyone,

Is there a way to upgrade endpoint agents via wazuh dashboard?, it's a pain to go to each endpoint to manually upgrade the agent.

Pacome Kemkeu

unread,
Jan 16, 2024, 3:52:04 AM1/16/24
to Wazuh | Mailing List
Hello Arby,

It is possible to upgrade agents from the Wazuh dashboard using the API Console.

Kindly navigate to Tools > API Console paste the API command PUT /agents/upgrade?agents_list=all&pretty=true and click the play button (screenshot attached).
If you want to check the upgrade status, paste the API command GET /agents/upgrade_result and click on the play button.

When upgrading more than 3000 agents at the same time, it's highly recommended to use the parameter wait_for_complete set to true to avoid a possible API timeout.
Example: PUT /agents/upgrade?agents_list=all&wait_for_complete=true&pretty=true

You can also try to upgrade specific agents by using their agent IDs separated with a comma.
Example: PUT /agents/upgrade?agents_list=005,007&pretty=true

Note: This number of agents from which wait_for_complete=true is recommended, has been set after testing the endpoint in a Wazuh environment whose manager was installed in a host with specifications: 2.5 GHz AMD EPYC 7000 series processor and 4 GiB of memory.
Using an agents list with a size less than or equal to 3000 and a host with the same or higher specs guarantees this endpoint to return a response before the API timeout.

You can also check this link for more information and other methods of remotely upgrading agents: Agent remote upgrade.

I hope you find this helpful!

CDN media

Arby Malabo

unread,
Jan 22, 2024, 11:08:48 AM1/22/24
to Pacome Kemkeu, Wazuh | Mailing List
Hi Pacome,

Thank you for this, haven't tried this, but will do tried it later

--
You received this message because you are subscribed to the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/493b1433-db15-4b80-80bd-2a7b76dd2967n%40googlegroups.com.

Arby Malabo

unread,
Feb 4, 2024, 10:47:06 PM2/4/24
to Pacome Kemkeu, Wazuh | Mailing List
Hi Pacome,

Just a follow-up question, if I run this command "PUT /agents/upgrade?agents_list=all&pretty=true" when some agents are offline, will the offline agents be upgraded when they get back online?. or should I run the command again?
Reply all
Reply to author
Forward
Message has been deleted
0 new messages