Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

inactive oneagent

Vijayt
Organizer

i want take list of one agent ever enrolled irrespective of active/offline/uninstalled status . .

and also one agent monitoring status .  monitored entity api show only mode infra/full stack . ismonitoringcandidate does not reflect  correct status . 

how can i get it . in one of the thread there is an option v1/oneagent?include_details=true but it is too slow processing one entity at a time , evertime timed out  at 900 entity [we have 4000 entities ] . any other options ?

basically want to extract agent status and monitoring status 

4 REPLIES 4

p_devulapalli
DynaMight Leader
DynaMight Leader

@Vijayt Please take a look at Fleet Management, it includes most of the information you are after 

https://docs.dynatrace.com/docs/ingest-from/fleet-management

 

Phani Devulapalli

fetch dt.entity.host
| fields entity.name, id, state, monitoringMode
| sort entity.name asc

forgot to mention i have only classic mode only 

Okay, normally it should indeed be /api/v1/oneagents.

First, you don't need the includeDetails=true parameter. The availabilityState and detailedAvailabilityState are already included in the response, so set includeDetails=false.

The API returns around ±200 entities per request. Once you receive the response, you can use the next page key in your next API call.

For the subsequent calls, you must specify the next page key value in your query, and keep all other query parameters as they were in the original request.

Keep looping through the pages until you've retrieved all the entries.

Featured Posts