Hello icinga community, i am currently rebuilding our monitoring based on icinga2 and icinga2 director.
Question is: How do i best organize my hosts and apply services to them baes on the role they have?
Ide would be maybe create different hostgroups, like HTTPS servers, Apache Servers, DB Servers and so on and assign particular hosts “by hand” in director. Like “Assign where host.name = foo” or so. the assign the services like check_https_certificxate or so to the hostgroups and therefore to the https hosts.
One could also add a variable or macro to each host like “is_http” and then do a apply the hosts to the hostgroups with “assign where host.role.https = yes” or so, the outcome was the same but the what i want to ask is how to you organize this in your environment? simple add the hosts name by name to the hostgroups or do this in a more sophisticated manner?