# Is there possible to enable infrastructure monitor based on the OS type?

**URL:** <https://community.dynatrace.com/t/is-there-possible-to-enable-infrastructure-monitor-based-on-the-os-type/41217>\
**Category:** Open Q&A\
**Tags:** hosts-classic\
**Created:** [August 15, 2023, 10:44pm UTC](https://community.dynatrace.com/t/is-there-possible-to-enable-infrastructure-monitor-based-on-the-os-type/41217 "2023-08-15T22:44:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joanne\_quan](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@joanne\_quan](https://community.dynatrace.com/u/joanne_quan)\
**Post date:** [August 15, 2023, 10:44pm UTC](https://community.dynatrace.com/t/is-there-possible-to-enable-infrastructure-monitor-based-on-the-os-type/41217/1 "2023-08-15T22:44:18Z")

</div>

hello,

We have oneagent deployed on both linux and Windows servers; however, the base monitors (CPU, memory, etc) for&nbsp; Windows servers will be monitored by SCOM and Linux servers will be monitored by Dynatrace.&nbsp; Is it possible to enable the infrastructure monitors base of the OS type?&nbsp; so infrastructure alerts for Windows servers will never generated problem record even though infrastructure monitors are enable at the global level.

Thanks in advance for your response

---

<div class="post-metadata">

**Author:** ![natanael\_mendes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/natanael_mendes/32/15264_2.png) [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Post date:** [August 15, 2023, 10:57pm UTC](https://community.dynatrace.com/t/is-there-possible-to-enable-infrastructure-monitor-based-on-the-os-type/41217/2 "2023-08-15T22:57:24Z")

</div>

i think its not possible but you can do this configuration with the host group anomaly detection

---

<div class="post-metadata">

**Author:** ![cesarsaravia](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/cesarsaravia/32/12818_2.png) [@cesarsaravia](https://community.dynatrace.com/u/cesarsaravia)\
**Post date:** [August 15, 2023, 11:05pm UTC](https://community.dynatrace.com/t/is-there-possible-to-enable-infrastructure-monitor-based-on-the-os-type/41217/3 "2023-08-15T23:05:11Z")

</div>

Yes! You can disable the anomaly detection for infra using the Host Group by OS for example.&nbsp;  
Another option is creating an Alerting profile for Windows which doesn’t notify for specific OS tag rules like infra CPU, memory, and disk. In this case, you still have problems in Dynatrace but are not integrated with another ITSM, Event tool, or email team.

 ![cesarsaravia_1-1692140780734.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/1/51e3f067bfe184a2b9af9cd780ceeaf0b456f3f5.png)

---

<div class="post-metadata">

**Author:** ![joanne\_quan](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@joanne\_quan](https://community.dynatrace.com/u/joanne_quan)\
**Post date:** [August 16, 2023, 3:21pm UTC](https://community.dynatrace.com/t/is-there-possible-to-enable-infrastructure-monitor-based-on-the-os-type/41217/4 "2023-08-16T15:21:58Z")

</div>

Thanks for your reply…it seems like there is only way to disable the infra abnormally detection based on host group;&nbsp; that means we will define a host group based on the OS

1.&nbsp; is there a quick way to add the hostgroup based on OS type

2.&nbsp; is there a way to add the OS hostgroup at the installation of the OneAgent?

Also, we have the similar situation for the network zone (i.e. aws/ on-prem);&nbsp; i think we will have to define&nbsp; the host group for the network zone as well if we do not want the alert on aws servers.

Thanks,

Joanne

---

<div class="post-metadata">

**Author:** ![joanne\_quan](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@joanne\_quan](https://community.dynatrace.com/u/joanne_quan)\
**Post date:** [August 16, 2023, 3:22pm UTC](https://community.dynatrace.com/t/is-there-possible-to-enable-infrastructure-monitor-based-on-the-os-type/41217/5 "2023-08-16T15:22:40Z")

</div>

Thanks for your reply

---

<div class="post-metadata">

**Author:** ![SjoerdB](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sjoerdb/32/157_2.png) [@SjoerdB](https://community.dynatrace.com/u/SjoerdB)\
**Post date:** [August 17, 2023, 7:09am UTC](https://community.dynatrace.com/t/is-there-possible-to-enable-infrastructure-monitor-based-on-the-os-type/41217/6 "2023-08-17T07:09:45Z")

</div>

Hi Joanne,

It is always a good practice to immediately assign host groups to your hosts. As you can find in the documentation, you can do this either during the installation of the oneagent (--set-host-group=XYZ) or with the oneagent commandline tool afterwards (oneagentctl).

Host Groups are not only important for anomaly detection settings for groups of servers, but you can also determine a number of other settings (like automatic agent updates / logmonitoring / OS process monitoring / naming / etc). Also you can use the hostgroup in various configurations as filter.

 ![sjoerd1_0-1692255021197.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/e/fe5cd532157ea7d0419bbcff1bacb8eeda6a7c13.png)

In my projects I tend to use strict naming policy for the hostgroups, so that I can also use them for tagging.

What I could suggest for you is using a naming like e.g.:

\<DC\>.\<OS\>.\<ENV\>.\<FUNCTION\>

- DC=ONPREM/AWS/GCP/…
- OS=WIN/LIN/…
- ENV=PROD/TEST/ACC/…
- FUNCTION=FRONTEND/DB/BACKEND/…

So: ONPREM.LIN.PROD.BACKEND or AWS.WIN.TEST.FRONTEND

If you have a larger landscape with multiple dedicated servergroups for specific application landscape, it also makes sense to add a Application/landscape to the HostGroup name, because in that way you can differentiate between servers running your GOLD applications to have other rules than the “internal tools” servers.

Of course you could use any schema, as long as you are consistent in naming, so that you can re-use the information in tags (think of an automated tag “Environment” with the regexp value of the third field in the HostGroupName).

The good thing is that you can embed this logic in the installscripts of your servers, so that you can always rely on the correct values.

Just my 2ct 😉

> **[Organize your environment using host groups](https://docs.dynatrace.com/docs/observe/infrastructure-observability/hosts/configuration/organize-your-environment-using-host-groups)**
>
> Find out how Dynatrace enables you to organize your hosts, processes, and services using host groups.

> **[OneAgent configuration via command-line interface](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/oneagent-configuration-via-command-line-interface)**
>
> Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent.

So in short the answer to your question 1+2: you can add the hostgroup definition to the installer scripts you use to roll-out the agents on your platform.

---

<div class="post-metadata">

**Author:** ![joanne\_quan](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@joanne\_quan](https://community.dynatrace.com/u/joanne_quan)\
**Post date:** [August 17, 2023, 2:54pm UTC](https://community.dynatrace.com/t/is-there-possible-to-enable-infrastructure-monitor-based-on-the-os-type/41217/7 "2023-08-17T14:54:03Z")

</div>

Thanks&nbsp;[cesarsaravia](https://community.dynatrace.com/user/30478)&nbsp;and&nbsp;[SjoerdB](https://community.dynatrace.com/user/16542)&nbsp;for your insights on the topic;&nbsp; it is really helpful
