Hello Team ,
Instead of doing netstat on AG Server to check how many agents are reporting at that point of time to that ActiveGate Server.
Is it feasible to check how many DT one agents are reporting to particular ActiveGate from DT SaaS tenant/GUI ?
Thanks in Advance !!
Solved! Go to Solution.
Hi Eswari. In general you should not need to do or know this. Our support teams can see this if it ever is necessary in the course of a support ticket. ActiveGates are automatically HA, meaning if you have two and one goes down or is over-utilised, the agents will automatically failover to the second. In addition, OneAgents will periodically move between ActiveGates (within a zone [see below]).
However, it sounds like you might be interested in the network zones feature. This lets you segment your ActiveGates and OneAgents according to your requirements. For example, if you specify that an ActiveGate (AG) is in "zone1" then you can install OneAgents with a --set-network-zone=zone1 flag. OneAgents in this zone will only talk to AGs in zone1.
To view your topology, go to Manage > Deployment Status > Network Zones
Further info on Network Zones is here: https://www.dynatrace.com/support/help/setup-and-configuration/network-zones/
I'm rather puzzled by your statement:
"In general you should not need to do or know this."
I'd hope that Dynatrace wouldn't assume what their Users do or do not need to know. This information was fully accessible in AppMon and I also note that it has now recently been added as a new feature in the information the AGs display in the Deployment Status page.
There are a great many self-monitoring black holes in Dynatrace SaaS and all information should be shared to help improve the product.
you could use REST API /api/v1/oneagents
there are fields currentActiveGateId and currentActiveIds (A list of ActiveGate IDs of ActiveGates to which OneAgent is currently connected).
ActiveGateId is represented as long and hex number. You should use currentActiveIds (hex number)
jq -r ".hosts | [ .hostInfo.displayName,.currentActiveGateId,(.currentActiveGateIds | join(\",\")) ] | @tsv " oneagents.json
d2j.ttt.com 462588410 0x1b9289fa
ci.ambit.tempest.test 1443825187 0x560f0623
You could get list of yours active gates also from REST API - /api/v2/activeGates
ActiveGateId is in hex format.
jq -r ".activeGates | [ .id,.hostname ] | @csv " ag.json
But the list does not contain Dynatrace active gates for SaaS deployment
Hi, @Eswari ,
What you're looking for is currently possible! 😄
I described it in detail on this "Tips and Tricks" post, so feel free to check it out:
Hope it helps!