# OneAgent disconnection/uninstallation notification

**URL:** <https://community.dynatrace.com/t/oneagent-disconnection-uninstallation-notification/39005>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [March 26, 2023, 10:56am UTC](https://community.dynatrace.com/t/oneagent-disconnection-uninstallation-notification/39005 "2023-03-26T10:56:56Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [March 26, 2023, 10:56am UTC](https://community.dynatrace.com/t/oneagent-disconnection-uninstallation-notification/39005/1 "2023-03-26T10:56:56Z")

</div>

Hello Dyna might,

I have a concern regarding OneAgent as follows:

1. I know there is an alert raised called “host gracefully shutdown” when the server goes down / restarts even under planned or unplanned activities.
2. So Is there a way to get alerted on cases when the server is being decommissioned or OneAgent is being Uninstalled by server admins?

Thanks.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [March 26, 2023, 11:18am UTC](https://community.dynatrace.com/t/oneagent-disconnection-uninstallation-notification/39005/2 "2023-03-26T11:18:54Z")

</div>

Hi,

I think&nbsp;[Process availability](https://www.dynatrace.com/support/help/shortlink/process-availability)&nbsp;or&nbsp;[OS services monitoring](https://www.dynatrace.com/support/help/shortlink/os-services)&nbsp;can help you when some process is down or a service is not installed. But I am not sure if Dynatrace processes/services are exceptions or not.

Best regards

---

<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:** [March 26, 2023, 11:33am UTC](https://community.dynatrace.com/t/oneagent-disconnection-uninstallation-notification/39005/3 "2023-03-26T11:33:19Z")

</div>

Hello Anton

Thanks for response OS services monitoring is set for Linux and Windows services monitoring.

If it applies to One Agent services what services should be identified to create policy to start alerting when One Agent is being Uninstalled or the server being decommissioned totally, Thanks.

---

<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:** [March 26, 2023, 11:40am UTC](https://community.dynatrace.com/t/oneagent-disconnection-uninstallation-notification/39005/4 "2023-03-26T11:40:40Z")

</div>

Hello Anton,

After reviewing Documentation [OS services monitoring — Dynatrace Docs](https://www.dynatrace.com/support/help/platform-modules/infrastructure-monitoring/hosts/monitoring/os-services#expand--additional-information-on-display-name-path-manufacturer-and-service-name--4)&nbsp;I think it will be doable for the environment level for Deployed One Agents On Linux and Windows, for Windows the directory is unified and also for Linux in the current Project.

It’s also applied for Host / Host Group and tenant Levels

---

<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:** [March 26, 2023, 11:45am UTC](https://community.dynatrace.com/t/oneagent-disconnection-uninstallation-notification/39005/5 "2023-03-26T11:45:39Z")

</div>

Hi Anton,

regarding process availability, kindly find the configurations below

 ![Peter_Youssef_0-1679831121030.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/e/6e3729f8d34b2a9f1329a8a08b8f6a11b4eaffcb.png)

Thank you

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [March 27, 2023, 7:29am UTC](https://community.dynatrace.com/t/oneagent-disconnection-uninstallation-notification/39005/6 "2023-03-27T07:29:42Z")

</div>

Hi,

I understand now, you want to be alerted when some server is decommissioned, if OneAgent is removed, you cannot monitoring process availability because it is done by OneAgent itself.

I think this is not a built function provided by Dynatrace, you need development your own&nbsp;[Extension](https://www.dynatrace.com/support/help/shortlink/extensions20)&nbsp;to be executed from ActiveGate.

Best regards

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [June 15, 2023, 12:23pm UTC](https://community.dynatrace.com/t/oneagent-disconnection-uninstallation-notification/39005/7 "2023-06-15T12:23:13Z")

</div>

Hi, please have a look at&nbsp;[Enable alerting when OneAgent is down - Dynatrace Community,](https://community.dynatrace.com/post/214097)&nbsp;with links, where this has been discussed before and a workaround is suggested (that works).
