05 Aug 2024 05:06 PM
I installed OneAgent along with activegate, after sometime ActiveGate has been disabled automatically and showing as direct connection, I've tried reconnecting ActiveGate but no luck, Need support regarding this.
06 Aug 2024 07:06 AM
Is the ActiveGate actually running ? Can you please try restarting and see if that helps
06 Aug 2024 01:34 PM
Hi @p_devulapalli,
Earlier OneAgent is connected with ActiveGate and is working fine, later Activegate got disconnected due to server shutdown. After that I started the server and ActiveGate got enabled but OneAgent is not connecting with the ActiveGate. I've restarted OneAgent service and server but no luck
07 Aug 2024 01:52 AM
Well there could be different reasons for that and needs some troubleshooting, you can try some of the below options
https://docs.dynatrace.com/docs/shortlink/oneagentctl#show-current-communication-endpoints
Try telnet to the AG from oneagent and see if you are able to connect on 9999
Check your network zones if any
07 Aug 2024 08:29 AM
1. check if the activegate is running from both deployment status & from the AG server itself by running `net start "Dynatrace gateway"
2. check if both OneAgent and Activegate has the same network zone or not
3. check the port 9999 on activegate from the OneAgent server you can use telnet or curl for this, if not able to connect check these files `conf.properties` and `custom.properties` located in this directory `C:\ProgramData\dynatrace\gateway\config`
11 Aug 2024 02:32 AM
Hello @Manohar_expert
The steps that @MostafaHussein indicates are very good !.
Especially the 2nd one, since the best way to "direct and ensure" that a oneAgent takes a specific ActiveGate is through the network Zone.
However, answering your main question, the commands that you can use to restart an ActiveGate are:
in Prompt (administrator permissions)
Start ActiveGate
net start "Dynatrace Gateway"
Start-Service -Name "Dynatrace Gateway"
Stop ActiveGate
net stop "Dynatrace Gateway"
Stop-Service -Name "Dynatrace Gateway"
I hope it is useful for you 💪