Am 09.02.2015 um 14:35 schrieb Markus Joosten:
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.
And do they trigger during runtime? (logs)
But Icinga2-ClassicUI and Thruk both say that these systems do not have any
parent hosts.
If they are telling otherwise, I'd check their backends.
Does anyone have any insight on this topic?
Greetings,
Markus
_______________________________________________
icinga-users mailing list
[email protected]<mailto:[email protected]>
https://lists.icinga.org/mailman/listinfo/icinga-users
--
Michael Friedrich, DI (FH)
Application Developer
NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | [email protected]
** CeBIT 2015 - 16.-20. März 2015 - http://www.netways.de/cebit **
** OSDC 2015 - April - osdc.de **
** Puppet Camp Berlin 2015 - April - netways.de/puppetcamp **
** OSBConf 2015 - September - osbconf.org **
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users