# OneAgent Host Unit consumption

**URL:** <https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310>\
**Category:** Open Q&A\
**Tags:** oneagent, maintenance-window, licensing\
**Created:** [November 17, 2021, 4:51pm UTC](https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310 "2021-11-17T16:51:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonya\_patel](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sonya\_patel](https://community.dynatrace.com/u/sonya_patel)\
**Post date:** [November 17, 2021, 4:51pm UTC](https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310/1 "2021-11-17T16:51:51Z")

</div>

When a maintenance window is applied, is it possible to “shutdown” or “release” Host Units when the server/host is scheduled under a maintenance window with no alerting needed.

Unable to turn off the DT OneAgent Service on the server since app pools would need to be cycled when we start the agent back up.

Currently, when a maintenance window is applied to Synthetics, we are able to conserve DEM Units.

---

<div class="post-metadata">

**Author:** ![Marcelo\_santand](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marcelo_santand/32/13828_2.png) [@Marcelo\_santand](https://community.dynatrace.com/u/Marcelo_santand)\
**Post date:** [November 17, 2021, 5:29pm UTC](https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310/2 "2021-11-17T17:29:28Z")

</div>

Hello,

The agent is still working, only your alerts will not be identified. I suggest you create a task in shell or ansible to deactivate the OneAgent process. In a playbook you can write the timetables of your window applying non-alerting rules for shutting down Oneagent through stop service.&nbsp;  
Tell me if this helps you or also create a shell

best regard

---

<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:** [November 17, 2021, 6:48pm UTC](https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310/3 "2021-11-17T18:48:33Z")

</div>

You would have to disable monitoring on that host, which would be a manual process from the UI and is not conjoined with Maintenance Windows from an automation standpoint. Or AS&nbsp;[@Marcelo\_santand](https://community.dynatrace.com/user/36135)&nbsp;stated use an Ansible Playbook to formulate some flavor of automation.

---

<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:** [November 18, 2021, 2:24am UTC](https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310/4 "2021-11-18T02:24:56Z")

</div>

Hi Sonya,&nbsp;  
You can use Host Configuration API to turn off/on the monitoring of the host using Dynatrace APIs. With the use of APIs, you can schedule the script which disables monitoring from the required host. The scenario we used in one of the customers for host monitoring and real user monitoring as well.

The only downside is disabling monitoring of OneAgent is that you need to restart the processes once you turn back on if the watchdog loops reach more than 10000 in that host.

---

<div class="post-metadata">

**Author:** ![sonya\_patel](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sonya\_patel](https://community.dynatrace.com/u/sonya_patel)\
**Post date:** [November 19, 2021, 4:42pm UTC](https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310/5 "2021-11-19T16:42:49Z")

</div>

We have known that you can turn off the DT OneAgent service on the host/server via API or UI but that is not an optimal solution for us.&nbsp; Restarting the app pools on the host/server - as referenced in the original question is not possible for us in certain situations.

---

<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:** [November 21, 2021, 12:37am UTC](https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310/6 "2021-11-21T00:37:34Z")

</div>

I understood your concern,

May be we can use this as a suggestion to the product ideas page. This make sense for the users who wants to use their licenses efficiently.

However, in the view of product managers and team captains, implementation of this idea might be little bit challenging.

---

<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:** [November 21, 2021, 12:46am UTC](https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310/7 "2021-11-21T00:46:56Z")

</div>

I created this RFE in here as a product idea,

[https://community.dynatrace.com/t5/Dynatrace-product-ideas/Releasing-host-units-in-maintenance-window-situations/idi-p/176178](https://community.dynatrace.com/post/176178)

Please vote for this so that our product team will be able to look at it. I suggest you can also ask your teammates to vote for this idea so that it gets more attention.

Next time if you have ideas or suggestions like this to our team, feel free to suggest the idea in our product ideas page.

Hope this helps! Thank you.

---

<div class="post-metadata">

**Author:** ![sonya\_patel](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sonya\_patel](https://community.dynatrace.com/u/sonya_patel)\
**Post date:** [December 17, 2021, 2:15pm UTC](https://community.dynatrace.com/t/oneagent-host-unit-consumption/33310/8 "2021-12-17T14:15:36Z")

</div>

Hello

Thank you for your assistance. I had opened an RFE too.

[https://community.dynatrace.com/t5/Dynatrace-product-ideas/One-Agent-Host-Unit-consumption-maintenance-window/idi-p/176000](https://community.dynatrace.com/post/176000)
