cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Auto-update failure reason via API or Automation

Maheedhar_T
Mentor

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.

Maheedhar_T_0-1747210929873.png



Any ideas on how we can get this failure reason programmatically via API or in a workflow?

Maheedhar
7 REPLIES 7

Arnaud_GERMAIN
Organizer

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.

Sajarra
Participant

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.

@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.

Hi,

Have you tried the OneAgent on Host API endpoint?

Best Regards

Patryk

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.

deni
Advisor

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:

gencheva_0-1752226760338.png

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:

gencheva_1-1752227108903.png

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

 

Dynatrace Integration Engineer at CodeAttest

Featured Posts