# Disabling an Enviornment will remove the Environment active gates ?

**URL:** <https://community.dynatrace.com/t/disabling-an-enviornment-will-remove-the-environment-active-gates/48462>\
**Category:** Open Q&A\
**Tags:** activegate\
**Created:** [October 22, 2024, 10:09am UTC](https://community.dynatrace.com/t/disabling-an-enviornment-will-remove-the-environment-active-gates/48462 "2024-10-22T10:09:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ababu](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ababu](https://community.dynatrace.com/u/ababu)\
**Post date:** [October 22, 2024, 10:09am UTC](https://community.dynatrace.com/t/disabling-an-enviornment-will-remove-the-environment-active-gates/48462/1 "2024-10-22T10:09:06Z")

</div>

I have disabled one of the environment in dynatrace by going to cluster management. Then for the active gates it was showing red color. After few days I cannot find that particular active gates in cluster management. I checked in the active gate vm, the process is still running. I have re enabled the cluster now, but hosts session showing no active gates deployed. How can I fix this ?

---

<div class="post-metadata">

**Author:** ![MostafaHussein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mostafahussein/32/2785_2.png) [@MostafaHussein](https://community.dynatrace.com/u/MostafaHussein)\
**Post date:** [October 22, 2024, 10:44am UTC](https://community.dynatrace.com/t/disabling-an-enviornment-will-remove-the-environment-active-gates/48462/2 "2024-10-22T10:44:05Z")

</div>

just restart the activegate process

on windows:

```markup
net stop "dynatrace gateway"

net start "dynatrace gateway"

```

on linux:

```markup
sudo systemctl restart dynatracegateway

```

also make sure that the PaaS token that you’ve used when installing them still exists in Access tokens

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 22, 2024, 10:51am UTC](https://community.dynatrace.com/t/disabling-an-enviornment-will-remove-the-environment-active-gates/48462/3 "2024-10-22T10:51:33Z")

</div>

Hello&nbsp;[@ababu](https://community.dynatrace.com/user/82199)

1. If you have disabled an environment from the CMC you can re-enable it again.
2. If the cluster is backed up you can perform [cluster backup and restor](https://docs.dynatrace.com/managed/setup-and-configuration/managed-cluster/operation/back-up-and-restore-a-cluster)e, it will bring the configurations not the historical monitoring insights.

**Disabled env**

 ![2024-10-22_14h42_15.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b5518f49ccfcd691d72bc7e7c44a1a0b62c25725.png)

**Solution**

- **Re-enable the disabled environment.**

**AG Checks:**

- **On each AG check the [configurations](https://docs.dynatrace.com/docs/setup-and-configuration/dynatrace-activegate/configuration) settings in custom.properties file.**
- **[Stop the AG service](https://docs.dynatrace.com/docs/shortlink/stop-restart-activegate), configure the communications settings.**
- **Restart the AGs again, it will be connected to the cluster again.**

**OneAgents:**

- **Once the AGs connection to the cluster being restored, the connected OA will keep sending the monitoring traffic seamlessly without any issues.**

**BR,**

**Peter**

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [October 22, 2024, 12:05pm UTC](https://community.dynatrace.com/t/disabling-an-enviornment-will-remove-the-environment-active-gates/48462/4 "2024-10-22T12:05:30Z")

</div>

You can also reinstall the enviroment activegates from an enabled tenant.
