# \#host-groups

**URL:** https://community.icinga.com/tag/host-groups/232.md

[Latest](https://community.icinga.com/latest.md) · [Categories](https://community.icinga.com/categories.md) · [Tags](https://community.icinga.com/tags.md)

---

## [Generating hostgroups based on String array](https://community.icinga.com/t/generating-hostgroups-based-on-string-array/10444)

<div class="topic-metadata">

**Author:** [@Handfreezer](https://community.icinga.com/u/Handfreezer)\
**Replies:** 2\
**Last updated:** [October 10, 2022, 9:58pm UTC](https://community.icinga.com/t/generating-hostgroups-based-on-string-array/10444 "2022-10-10T21:58:33Z")

</div>

Hello, I’m trying something like: for (var dcname in \[“dc1”,“dc2”, “dc3”\]) { object HostGroup “dc-” + dcname { display\_name = “DC” + dcname assign where dcname == host.vars.dc } } Unfortunately, it is not working…

---

## [How does contains work in Director](https://community.icinga.com/t/how-does-contains-work-in-director/8816)

<div class="topic-metadata">

**Author:** [@why](https://community.icinga.com/u/why)\
**Replies:** 1\
**Last updated:** [December 9, 2021, 1:15pm UTC](https://community.icinga.com/t/how-does-contains-work-in-director/8816 "2021-12-09T13:15:30Z")

</div>

Hey. Today i noticed that one of my hosts wasnt sending notifications, eventhough he was down. I found out that was the case, because he was in 2 hostgroups, which were both mentioned in the notification rule, but with…

---

## [Service checks / remote monitoring of servers from icinga clients](https://community.icinga.com/t/service-checks-remote-monitoring-of-servers-from-icinga-clients/8345)

<div class="topic-metadata">

**Author:** [@peter.mikula.05](https://community.icinga.com/u/peter.mikula.05)\
**Replies:** 4\
**Last updated:** [October 3, 2021, 8:56pm UTC](https://community.icinga.com/t/service-checks-remote-monitoring-of-servers-from-icinga-clients/8345 "2021-10-03T20:56:30Z")

</div>

Dear Community, I am trying to execute remote checks by Icinga clients. The scripts are running eighter snmpwalk or snmpget, or doing curl API calls to remote servers where i am not able to install icinga agent, or nrp…

---

## [Adding host groups when using templates](https://community.icinga.com/t/adding-host-groups-when-using-templates/8193)

<div class="topic-metadata">

**Author:** [@fireba11](https://community.icinga.com/u/fireba11)\
**Replies:** 1\
**Last updated:** [September 10, 2021, 8:53am UTC](https://community.icinga.com/t/adding-host-groups-when-using-templates/8193 "2021-09-10T08:53:35Z")

</div>

I’m trying to have host templates that already come with host groups (things like linux, agent) but then add more groups to the host based on that template (server location etc.) all host groups from the template get rep…

---

## [Best practices on host-templates, apply for, host groups, service sets and so on using Director](https://community.icinga.com/t/best-practices-on-host-templates-apply-for-host-groups-service-sets-and-so-on-using-director/6377)

<div class="topic-metadata">

**Author:** [@blindzero](https://community.icinga.com/u/blindzero)\
**Replies:** 8\
**Last updated:** [January 9, 2021, 5:59pm UTC](https://community.icinga.com/t/best-practices-on-host-templates-apply-for-host-groups-service-sets-and-so-on-using-director/6377 "2021-01-09T17:59:22Z")

</div>

Hi everybody, I am now building up my third Icinga2 based monitoring environment. I was never 100% happy with the previous ones based on experiences I made here and there. As I am strive to optimize I was looking for so…
