14 May 2025 09:22 AM
If there's a OA auto-update scheduled and it failed, the failure reason is shown in the respective Host page in the UI like this.
Any ideas on how we can get this failure reason programmatically via API or in a workflow?
Solved! Go to Solution.
20 Jun 2025 02:35 PM
Hello,
A follow-up on this point would be greatly appreciated !
This is indeed critical when OneAgent is being updated across thousands of machines and some of them fail to update.
Thank you.
20 Jun 2025 02:46 PM
Hi, have you had a chance to check with your Dynatrace Velocity Engineer or consultant to confirm if the upgrade is paused on the backend? If there are multiple failures, there might be a possibility to have it paused on the backend.
Also, please verify if the server has sufficient free disk space and memory.
20 Jun 2025 04:11 PM
@Sajarra, thank you, but that's not the point !
The goal is to have API-based reporting to quickly retrieve, for each machine, the reason for the OneAgent update failure.
23 Jun 2025 11:35 AM
Hi @patryk_ozimek2,
we tested this API, but it doesn't return the desired information. Have you tested it on your end?
The goal is to retrieve the content of "Automatic update problem" as displayed in the web UI.
11 Jul 2025 10:50 AM
Hi,
I'm quite new in Dynatrace, so forgive me if I'm missing something and help me understand.
On the page where this message appears (I have the same one) there are also 3 dots above with a menu:
It shows that I should be able to use settings/objects API and also I can see the schemaid:
curl 'https://<MY_ENV>/api/v2/settings/objects?schemaIds=builtin%3Adeployment.oneagent.updates' -X GET -H 'Accept: application/json; charset=utf-8' -H 'Content-Type: application/json; charset=utf-8' -H 'Authorization: Api-Token <MY_TOKEN>'
{"items":[],"totalCount":0,"pageSize":100}
Unfortunately I don't have any resulta. In the API page there is only POST example, but explanation says that I should be able to access this page content by this API:
So shouldn't this API return the required information(e.g. the update problems if there are any) with correct get parameters (I supposed that schemaids should be enough, but seem that I'm wrong)? Please help me understand what I'm missing here?
Thanks,
Regards, Deni