# Monitoring OneAgent and alerting if OneAgent alone is stopped and not the HOST

**URL:** <https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884>\
**Category:** Open Q&A\
**Tags:** oneagent, problems-classic\
**Created:** [June 22, 2021, 9:06am UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884 "2021-06-22T09:06:14Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![deep\_kumar\_gopa](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@deep\_kumar\_gopa](https://community.dynatrace.com/u/deep_kumar_gopa)\
**Post date:** [June 22, 2021, 9:06am UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/1 "2021-06-22T09:06:14Z")

</div>

Hi Recently we experienced issues with few servers where in one agent(version 1.205) goes down suddenly for no reason with log saying one agent stopped manually. We could not find any issues with host as well as it is up and running continiously its is only the one agent that is getting stopped. Is there any way weherin we could alert if something happens to one agent on host. Alerting of one agent goes down so tah we can atleast restart it immediately.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [June 22, 2021, 9:13am UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/2 "2021-06-22T09:13:42Z")

</div>

Hello&nbsp;[@deep\_kumar\_gopa](https://community.dynatrace.com/user/26594)

The&nbsp;Unmonitored&nbsp;availability state indicates that OneAgent isn’t running on the host.

> **[Host availability](https://docs.dynatrace.com/docs/observe/infrastructure-observability/hosts/monitoring/host-monitoring/host-availability)**
>
> Check host availability, interpret host availability states, and see how maintenance windows are reflected in host availability charts.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![deep\_kumar\_gopa](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@deep\_kumar\_gopa](https://community.dynatrace.com/u/deep_kumar_gopa)\
**Post date:** [June 22, 2021, 10:00am UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/3 "2021-06-22T10:00:37Z")

</div>

Thanks Babar , But we have not received any alerts for one agent getting stopped. when no of servers is more , It takes some effort to find out whats is missing in UI. we need some way to identify when onegent get stopped.

Note : In above cases we have tried enabling alert on graceful shutdown as well but this didnt work as it is dependt on host and not One agent.

---

<div class="post-metadata">

**Author:** ![Rakan\_khalaileh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rakan_khalaileh/32/32896_2.png) [@Rakan\_khalaileh](https://community.dynatrace.com/u/Rakan_khalaileh)\
**Post date:** [June 22, 2021, 10:10am UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/4 "2021-06-22T10:10:57Z")

</div>

you can create an alerting profile, from settings go to alerting =\> add alerting profile =\> select the management zone that you need to monitor =\> add event filter =\> select predefined then from filter problems choose Host or monitoring unavailable, also you can choose monitoring unavailable if you need to get an alert if OneAgent isn’t running on the host.

Br,

Rakan Alkhalaileh

---

<div class="post-metadata">

**Author:** ![thasthakir](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@thasthakir](https://community.dynatrace.com/u/thasthakir)\
**Post date:** [April 13, 2022, 4:54pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/5 "2022-04-13T16:54:49Z")

</div>

Hi Rakan,

I tried to create an alerting profile and if we stop the one agent from server, We don’t see alerts triggered.

---

<div class="post-metadata">

**Author:** ![theharithsa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theharithsa/32/16236_2.png) [@theharithsa](https://community.dynatrace.com/u/theharithsa)\
**Post date:** [April 14, 2022, 3:27am UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/6 "2022-04-14T03:27:20Z")

</div>

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

Upon graceful process stop, Dynatrace will not create a problem as this will consider that you have shutdown the process. This is to reduce false alerts.

Even still if you want to get the alert, you should go inside the process and turn on its availability monitoring then whenever OneAgent process stop you will get the alert - This is deliberately turned off by default in Dynatrace.

---

<div class="post-metadata">

**Author:** ![Sujit](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sujit/32/15043_2.png) [@Sujit](https://community.dynatrace.com/u/Sujit)\
**Post date:** [April 14, 2022, 8:42am UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/7 "2022-04-14T08:42:58Z")

</div>

[@theharithsa](https://community.dynatrace.com/user/39872)&nbsp;you wouldn’t get any alert if OneAgent goes down, you will get alert only&nbsp; like&nbsp;[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;said **Unmonitored&nbsp;availability** state. Apart from that no alert. .

Thanks,

Sujit

---

<div class="post-metadata">

**Author:** ![thasthakir](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@thasthakir](https://community.dynatrace.com/u/thasthakir)\
**Post date:** [April 14, 2022, 2:22pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/8 "2022-04-14T14:22:52Z")

</div>

Hi [@theharithsa](https://community.dynatrace.com/user/39872),

Can you please share any documentation? Should we add in OS Service monitoring?

Please let us know.

---

<div class="post-metadata">

**Author:** ![thasthakir](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@thasthakir](https://community.dynatrace.com/u/thasthakir)\
**Post date:** [April 14, 2022, 2:56pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/9 "2022-04-14T14:56:56Z")

</div>

Hi Sujit,

So if one agent hangs or someone stops the one agent service, is there anyway we can be alerted ?

---

<div class="post-metadata">

**Author:** ![Sujit](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sujit/32/15043_2.png) [@Sujit](https://community.dynatrace.com/u/Sujit)\
**Post date:** [April 14, 2022, 2:59pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/10 "2022-04-14T14:59:41Z")

</div>

[@thasthakir](https://community.dynatrace.com/user/42799)&nbsp;No we wouldn’t. We will get **Unmonitored&nbsp;availability** &nbsp;because&nbsp;the moment OneAgent goes down Dynatrace will lost their connectivity&nbsp;and get&nbsp; **Unmonitored&nbsp;availability** &nbsp;alert but not related to specific OneAgent.

Thanks,

Sujit

---

<div class="post-metadata">

**Author:** ![thasthakir](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@thasthakir](https://community.dynatrace.com/u/thasthakir)\
**Post date:** [April 14, 2022, 3:03pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/11 "2022-04-14T15:03:03Z")

</div>

[@Sujit](https://community.dynatrace.com/user/44916)&nbsp;Thanks for your quick response.

Let me make it clear, If some user stops the one agent service or if the one agent hangs and crashes itself. we won’t get an alert that one agent is down but we will still get the&nbsp; **Unmonitored&nbsp;availability** &nbsp;alert?

Can you please confirm?

---

<div class="post-metadata">

**Author:** ![Sujit](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sujit/32/15043_2.png) [@Sujit](https://community.dynatrace.com/u/Sujit)\
**Post date:** [April 14, 2022, 3:29pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/12 "2022-04-14T15:29:14Z")

</div>

[@thasthakir](https://community.dynatrace.com/user/42799)&nbsp;Yes, you are riight.

---

<div class="post-metadata">

**Author:** ![thasthakir](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@thasthakir](https://community.dynatrace.com/u/thasthakir)\
**Post date:** [April 14, 2022, 3:53pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/13 "2022-04-14T15:53:36Z")

</div>

[@Sujit](https://community.dynatrace.com/user/44916)&nbsp;Thank you ! How ever when we test by stopping the one agents we are not getting the&nbsp; **Unmonitored&nbsp;availability** &nbsp;alert as well.

Can you please let me know if there is any specific setting for it ?

Thank you!

---

<div class="post-metadata">

**Author:** ![Sujit](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sujit/32/15043_2.png) [@Sujit](https://community.dynatrace.com/u/Sujit)\
**Post date:** [April 14, 2022, 3:59pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/14 "2022-04-14T15:59:14Z")

</div>

[@thasthakir](https://community.dynatrace.com/user/42799)&nbsp;Did you check under the Problem even though if you have not received the alert but Problem card will generate. Please check Problem card.

Thanks,

Sujit

---

<div class="post-metadata">

**Author:** ![thasthakir](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@thasthakir](https://community.dynatrace.com/u/thasthakir)\
**Post date:** [April 14, 2022, 4:30pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/15 "2022-04-14T16:30:03Z")

</div>

[@Sujit](https://community.dynatrace.com/user/44916)&nbsp;Checked the problems, We don’t see an alert when one agent is stopped from the server by an user.

---

<div class="post-metadata">

**Author:** ![Sujit](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sujit/32/15043_2.png) [@Sujit](https://community.dynatrace.com/u/Sujit)\
**Post date:** [April 14, 2022, 5:00pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/16 "2022-04-14T17:00:24Z")

</div>

[@thasthakir](https://community.dynatrace.com/user/42799)&nbsp;Can you run below command (if its linux) on the same host where you stopped user stopped oneagent…

service oneagent status

Or

Setting → Monitoring Overview → Enter the host name and see whether its Monitored or Unmonitored.

Thanks,

Sujit

Thanks,

Sujit

---

<div class="post-metadata">

**Author:** ![theharithsa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theharithsa/32/16236_2.png) [@theharithsa](https://community.dynatrace.com/u/theharithsa)\
**Post date:** [April 23, 2022, 6:46pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/17 "2022-04-23T18:46:05Z")

</div>

Hi&nbsp;[@Sujit](https://community.dynatrace.com/user/44916),&nbsp;  
I was talking about the process availability monitoring. It is possible to get the alert when OneAgent is down,

Please refer the below screenshot,

 ![Screenshot 2022-04-24 at 12.13.41 AM.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/24934e703bd338caee7d2f3f52ffc2308615c5eb.png)

I hope this will answer the question.

---

<div class="post-metadata">

**Author:** ![Sujit](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sujit/32/15043_2.png) [@Sujit](https://community.dynatrace.com/u/Sujit)\
**Post date:** [April 24, 2022, 12:51am UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/18 "2022-04-24T00:51:55Z")

</div>

[@theharithsa](https://community.dynatrace.com/user/39872)&nbsp;Ahh,… i didn’t noticed this part. Thanks for providing this valuable information.

Thanks,

Sujit

---

<div class="post-metadata">

**Author:** ![ben\_wrightson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ben_wrightson/32/34776_2.png) [@ben\_wrightson](https://community.dynatrace.com/u/ben_wrightson)\
**Post date:** [May 5, 2022, 7:31pm UTC](https://community.dynatrace.com/t/monitoring-oneagent-and-alerting-if-oneagent-alone-is-stopped-and-not-the-host/31884/19 "2022-05-05T19:31:47Z")

</div>

Have you seen my suggestion in&nbsp;[https://community.dynatrace.com/t5/Alerting/Alert-with-Unmonitored-Host/m-p/118676](https://community.dynatrace.com/post/118676)&nbsp;? Would that help in your case?
