# Agent Status Alert

**URL:** <https://community.dynatrace.com/t/agent-status-alert/33806>\
**Category:** Alerting\
**Tags:** problem-detection, problems-classic\
**Created:** [January 19, 2022, 11:13am UTC](https://community.dynatrace.com/t/agent-status-alert/33806 "2022-01-19T11:13:52Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![oakdag](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/oakdag/32/21850_2.png) [@oakdag](https://community.dynatrace.com/u/oakdag)\
**Post date:** [January 19, 2022, 11:13am UTC](https://community.dynatrace.com/t/agent-status-alert/33806/1 "2022-01-19T11:13:52Z")

</div>

Hi,

How can I send it as an alarm when Oneagent does not start or gets an error? Is there anyone have an idea?  
By the way, host availability is not oneagent availibility.

Regards,

Oakdag

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [March 30, 2022, 4:04pm UTC](https://community.dynatrace.com/t/agent-status-alert/33806/2 "2022-03-30T16:04:52Z")

</div>

Yes this is configurable. you can set an alert via Custom event for alerting to say If data is missing alert, because that would simulate the Oneagent traffic ending or the oneagent stopped. You can also be alerted on entities being unmonitored and that is when hosts communication drops out but the host is not turned off - so the Oneagent is not talking or the communication is blocked/non existent.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [March 30, 2022, 5:18pm UTC](https://community.dynatrace.com/t/agent-status-alert/33806/3 "2022-03-30T17:18:27Z")

</div>

In cases where I need to have that information, you can go to the Process group settings for each of the OneAgent PGs, and activate availability monitoring:

 ![AntonioSousa_0-1648660523138.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/667e6f6bfc887e0638953f2e770d48d8eed353f1.png)

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 5, 2023, 5:42pm UTC](https://community.dynatrace.com/t/agent-status-alert/33806/4 "2023-03-05T17:42:53Z")

</div>

Hi&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)

We have activated the availability monitoring on:

- OneAgent system monitoring
- OneAgent network monitoring
- OneAgent monitoring extensions

Shout down the one agent service but no problem was opened&nbsp;🙄

Tried also with OS service monitoring again with no success&nbsp;😭

What are we missing here 🤔?

Thanks in advance for your inputs

Yos

---

<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:** [August 3, 2023, 11:01pm UTC](https://community.dynatrace.com/t/agent-status-alert/33806/5 "2023-08-03T23:01:15Z")

</div>

Hi,

Same than you. Only working creating a metric selector event about missing data. But it has a limitation about how many you can create per environment.

Best regards

---

<div class="post-metadata">

**Author:** ![lucas\_hocker](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lucas_hocker/32/29551_2.png) [@lucas\_hocker](https://community.dynatrace.com/u/lucas_hocker)\
**Post date:** [August 4, 2023, 7:47am UTC](https://community.dynatrace.com/t/agent-status-alert/33806/6 "2023-08-04T07:47:52Z")

</div>

[@AntonPineiro](https://community.dynatrace.com/user/58682)&nbsp;&&nbsp;[@Yosi\_Neuman](https://community.dynatrace.com/user/6931)&nbsp;, I’m struggling to understand this use case a bit. So the user is performing a graceful shutdown of OneAgent, i.e. intentionally. The host itself is not shutdown. And this is a condition you wish to be alerted on? Always? After some amount of time?

---

<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:** [August 4, 2023, 8:15am UTC](https://community.dynatrace.com/t/agent-status-alert/33806/7 "2023-08-04T08:15:07Z")

</div>

Hi,

It means, it is not powered off hosts itself. If I shutdown host, yes, I get an alert with that config.

It is more if I execute “systemctl stop oneagent.service” for stopping OneAgent service. In that case, we are not getting monitoring information and you can see a gap in metrics but no alert is triggered.

Only way is creating a metric event for some Oneagent process metric (CPU, memory…) and turning on alert me if missing data.

As a summary, it is be alerted when, for some reason, OneAgent itself is stopped / crashed and we are not monitoring host, processes… It means, be alerted when OneAgent status is no “Up”.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [August 4, 2023, 8:27am UTC](https://community.dynatrace.com/t/agent-status-alert/33806/8 "2023-08-04T08:27:19Z")

</div>

[@lucas\_hocker](https://community.dynatrace.com/user/32376),

I remember two use-cases for configuring this:

- A case where OneAgent was being shut down without justification by an administrator
- A bad interaction with an anti-virus

In my case, I don’t remember it misbehaving. But the use-case was certainly there.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 5, 2023, 8:40am UTC](https://community.dynatrace.com/t/agent-status-alert/33806/9 "2023-08-05T08:40:19Z")

</div>

Hi&nbsp;[@lucas\_hocker](https://community.dynatrace.com/user/32376)

The most obvious use case is when security guys delete FW rules that allows OAs communicate with AGs or cluster.

Shutting down the OA service was just a way to try and see if the configured alert is working.

Next step will be to mark KEY HOSTs&nbsp; that must be on and connected in cases of HU license shortage but first lets get alert for OA that is down.

HTH

Yos

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 5, 2023, 9:02am UTC](https://community.dynatrace.com/t/agent-status-alert/33806/10 "2023-08-05T09:02:10Z")

</div>

IMO builtin:host.availability.state metric can help us here

 ![Yosi_Neuman_0-1691226042171.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/b/cb846474d33817879e61130764c0e4aa5d3aa90e.png)

 ![Yosi_Neuman_1-1691226098849.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/f/8f49128976bd7553c5a9a9ba262ffc358f3b7b81.png)

HTH

Yos

---

<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:** [August 8, 2023, 8:05am UTC](https://community.dynatrace.com/t/agent-status-alert/33806/11 "2023-08-08T08:05:41Z")

</div>

Hi,

Yes, but it still has a limitation about how many you can create. It means, alert missing data require a&nbsp;metric-selector-based query.

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:** [September 18, 2024, 3:26pm UTC](https://community.dynatrace.com/t/agent-status-alert/33806/12 "2024-09-18T15:26:54Z")

</div>

hi&nbsp;[@oakdag](https://community.dynatrace.com/user/44945)&nbsp;  
Consider the path of the deployment on either windows and Linux and installed Oneagent service name

Simple solution:

**Windows** &nbsp;

- create OS service monitoring rule and provide the below parameters

 ![Peter_Youssef_3-1726673029453.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/f5260575e224832080b98756f9d74bb1d5859591.png)

 ![Peter_Youssef_4-1726673128779.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/8/d8e5b1ead3550c51e1aa1dbcb147be0ce1dca4c7.png)

optionally add property

 ![Peter_Youssef_5-1726673164609.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/2/52f9e77028f9c051e5344195d120e389483e2cbd.png)

**Linux**

- create OS service monitoring rule

 ![Peter_Youssef_0-1726672860132.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/c/7c9a78ccb9c963395ecf77049f5fe46643a2a47b.png)

 ![Peter_Youssef_1-1726672907037.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b5e388a9c7c8bd62d8e16f5f71cfca153091bfef.png)

add property as well

 ![Peter_Youssef_2-1726672944346.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/3/335fbd8f86b2011fdacda9f3479002be3d32874d.png)

Thanks
