# Oneagent goes offline(Unmonitored state) for a longtime

**URL:** <https://community.dynatrace.com/t/oneagent-goes-offline-unmonitored-state-for-a-longtime/42300>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, oneagent\
**Created:** [October 26, 2023, 10:37am UTC](https://community.dynatrace.com/t/oneagent-goes-offline-unmonitored-state-for-a-longtime/42300 "2023-10-26T10:37:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pitshyapong](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@Pitshyapong](https://community.dynatrace.com/u/Pitshyapong)\
**Post date:** [October 26, 2023, 10:37am UTC](https://community.dynatrace.com/t/oneagent-goes-offline-unmonitored-state-for-a-longtime/42300/1 "2023-10-26T10:37:47Z")

</div>

I Have 4 hosts monitored and one of them goes offline. In Monitoring tab, it said Oneagent is offline but when I checked Dynatrace oneagent still running in the host process. Oneagent is running on&nbsp;Windows Server 2008 R2 (64-bit) and I have tried restarting oneagent service via oneagentctl nothing changed.&nbsp; Any suggestion or Idea to get it back online I left it offline for 70+ days

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [October 26, 2023, 11:07am UTC](https://community.dynatrace.com/t/oneagent-goes-offline-unmonitored-state-for-a-longtime/42300/2 "2023-10-26T11:07:47Z")

</div>

Hello,

Did you checked the network connectivity? which AG is supposed to receive the traffic from that agent. try also to restart dynatrace services from services window.

Thanks,

Islam

---

<div class="post-metadata">

**Author:** ![Pitshyapong](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@Pitshyapong](https://community.dynatrace.com/u/Pitshyapong)\
**Post date:** [October 27, 2023, 3:38am UTC](https://community.dynatrace.com/t/oneagent-goes-offline-unmonitored-state-for-a-longtime/42300/3 "2023-10-27T03:38:36Z")

</div>

Hello Islam,

I tried to run&nbsp;.\oneagentctl.exe --get-server on the unmonitored host and got this “Encountered malformed line - key-value separator not found” I ran this on a normal host and it was fine only for this one host. Any idea how to fix this issue

Thank you for your reply

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [October 27, 2023, 10:48am UTC](https://community.dynatrace.com/t/oneagent-goes-offline-unmonitored-state-for-a-longtime/42300/4 "2023-10-27T10:48:55Z")

</div>

I think the easiest way is to reinstall the agent again on the host with the latest update. or you can open a support ticket to go through the troubleshooting.

---

<div class="post-metadata">

**Author:** ![Pitshyapong](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@Pitshyapong](https://community.dynatrace.com/u/Pitshyapong)\
**Post date:** [October 27, 2023, 10:52am UTC](https://community.dynatrace.com/t/oneagent-goes-offline-unmonitored-state-for-a-longtime/42300/5 "2023-10-27T10:52:12Z")

</div>

Thank you for your suggestion I already opened a support ticket, If it comes down to reinstalling the agent that is fine by me
