# Notification when server is ShutDown or Agent is removed

**URL:** <https://community.dynatrace.com/t/notification-when-server-is-shutdown-or-agent-is-removed/39701>\
**Category:** Open Q&A\
**Tags:** problems-classic\
**Created:** [May 11, 2023, 4:23pm UTC](https://community.dynatrace.com/t/notification-when-server-is-shutdown-or-agent-is-removed/39701 "2023-05-11T16:23:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [May 11, 2023, 4:23pm UTC](https://community.dynatrace.com/t/notification-when-server-is-shutdown-or-agent-is-removed/39701/1 "2023-05-11T16:23:30Z")

</div>

Hello Community,

Did you experienced a way to open problem when a server is ShutDown or when The Dynatrace agent is removed.

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:** [May 11, 2023, 10:31pm UTC](https://community.dynatrace.com/t/notification-when-server-is-shutdown-or-agent-is-removed/39701/2 "2023-05-11T22:31:33Z")

</div>

Hi,

If OneAgent is installed, a problem will be created when&nbsp;host or monitoring connection lost automatically.

You can configure also be alerted on&nbsp;graceful host shutdowns.

You can find more details in [host anomaly detection](https://www.dynatrace.com/support/help/shortlink/host-anomaly-detection#hosts)&nbsp;in the documentation.

You have [here](https://community.dynatrace.com/post/143878) an answer when OneAgent is removed.

Best regards

---

<div class="post-metadata">

**Author:** ![Viachaslau](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@Viachaslau](https://community.dynatrace.com/u/Viachaslau)\
**Post date:** [May 15, 2023, 10:38am UTC](https://community.dynatrace.com/t/notification-when-server-is-shutdown-or-agent-is-removed/39701/3 "2023-05-15T10:38:51Z")

</div>

I created a custom alert&nbsp;if prod host don’t send us CPU data for 10min or CPU consumption in 0

---

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [November 4, 2024, 3:21pm UTC](https://community.dynatrace.com/t/notification-when-server-is-shutdown-or-agent-is-removed/39701/4 "2024-11-04T15:21:30Z")

</div>

In my case this custom missing cpu samples alert was the only one to be 100% effective not matter what the cause or the event ( host reboot / shutdown/ crash, network issue, OneAgent hiccups / stopped / uninstalled / restart / reinstalled)

Indeed :

- In some cases, AIX OneAgent “interferences” with other monitoring solutions lead to cpu metric gaps not detected otherwise (fix : happy I could uninstall the other monitoring solution).
- On some Windows box we never really understood why some time we got (not anymore) loss of OneAgent metrics detected only by this cpu samples missing alert (fix: upgrade OneAgent).
- No other OneAgent / Host availability alerts caught these cases.

---

<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:** [November 13, 2024, 8:21am UTC](https://community.dynatrace.com/t/notification-when-server-is-shutdown-or-agent-is-removed/39701/5 "2024-11-13T08:21:29Z")

</div>

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

In addition to the suggested solutions you create OS services monitoring and specify the alerting conditions when the Oneagent service is uninstalled or no longer active.

KR,

Peter.
