# OS Service Monitoring : How to exclude some OS services from being monitored on some servers

**URL:** <https://community.dynatrace.com/t/os-service-monitoring-how-to-exclude-some-os-services-from-being-monitored-on-some-servers/46301>\
**Category:** Open Q&A\
**Tags:** hosts-classic\
**Created:** [June 25, 2024, 2:49pm UTC](https://community.dynatrace.com/t/os-service-monitoring-how-to-exclude-some-os-services-from-being-monitored-on-some-servers/46301 "2024-06-25T14:49:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaurentBignens](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/laurentbignens/32/1198_2.png) [@LaurentBignens](https://community.dynatrace.com/u/LaurentBignens)\
**Post date:** [June 25, 2024, 2:49pm UTC](https://community.dynatrace.com/t/os-service-monitoring-how-to-exclude-some-os-services-from-being-monitored-on-some-servers/46301/1 "2024-06-25T14:49:56Z")

</div>

Hi Community,

We have a policy in place at the HostGroup level which monitors a list of OS Services on our Windows Servers.  
On 1-2 servers, we do not want to monitor those OS Services.

Does anyone know how to do this? Any help would be appreciated 🙂  
##########################################  
Here are some details of our setup in our Dynatrace Managed environment:

##########################################  
In Host Groups/\*/Setting/OS services monitoring, we setup  
a policy to monitor the OS Services with detection rules similar to these:  
1- : Startup Type matches $not($eq(disabled))  
2- : Service Name matches $or($contains(Domino Server),$contains(DominoServer))  
There is an option to also add rules based on Host metadata, but I have not figured out how to use it yet.  
For now, I tried this as a 3rd detection rule:  
3- Host: Custom metadata Detected name matches $not($eq(hostname\_placeholder))

---

<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:** [June 25, 2024, 11:07pm UTC](https://community.dynatrace.com/t/os-service-monitoring-how-to-exclude-some-os-services-from-being-monitored-on-some-servers/46301/2 "2024-06-25T23:07:32Z")

</div>

Hi,

I have just not test it, but maybe creating same rule, in host level, with flag disabled?

Best regards

---

<div class="post-metadata">

**Author:** ![LaurentBignens](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/laurentbignens/32/1198_2.png) [@LaurentBignens](https://community.dynatrace.com/u/LaurentBignens)\
**Post date:** [June 26, 2024, 10:59am UTC](https://community.dynatrace.com/t/os-service-monitoring-how-to-exclude-some-os-services-from-being-monitored-on-some-servers/46301/3 "2024-06-26T10:59:35Z")

</div>

Hi Anton,  
Your suggestion worked.  
At Host Group level, I had this in my policy

 ![HostGroupPolicy.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/c/cc010727df64b731402444e09abe7ef79e417465.jpeg)

At Host level, I added this policy which is the same, except that is has the “Alert” button disabled

 ![HostOnlyPolicy.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/9/5/95eea1fb3298e8db20cf78b0d0d3c265154325f5.jpeg)

As, a result the problem that was open from the HostGroup OS:Services policy, is now closed.

Thanks for your help.  
Regards, LB

---

<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:** [June 26, 2024, 10:35pm UTC](https://community.dynatrace.com/t/os-service-monitoring-how-to-exclude-some-os-services-from-being-monitored-on-some-servers/46301/4 "2024-06-26T22:35:57Z")

</div>

Hi,

Nice to know it, thank you!&nbsp;&nbsp;😎

Best regards
