Hello list,

i think i have found a weird behaviour (possibly a bug?) when assigning a 
dependency to hosts based on a host's vars.
I have a variable host.vars.network which defines the subnet the host is 
located in.

I'm monitoring some systems from multiple icinga2 nodes from different zones.
To do so, i redefine these hosts in multiple zones (using different names of 
course).
Therefor i also need to apply the dependencies based on the zones the hosts are 
located.

So i have this configuration:

apply Dependency "dmz1" to Host {
  parent_host_name = "dmz-router"
  assign where host.vars.network == "dmz1" && ZoneName == "satellite-2"
}

When i check the icinga2 objects on the CLI on the satellite for zone 
"satellite-2", i can see the dependency object with all parameters correctly 
set for all hosts with vars.network == dmz1.
But Icinga2-ClassicUI and Thruk both say that these systems do not have any 
parent hosts.

Does anyone have any insight on this topic?

Greetings,
Markus
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to