Icinga2 HA上设备的依赖性

我想在Icinga2上configuration一个主机到主机的依赖关系,但是其中一个主机有一个HAconfiguration,所以我只需要在两个HA设备都closures的情况下触发它。 假设这种情况:

在这里输入图像说明

假设我在Icinga2上拥有所有这些设备。 很明显,广域网交换机对两台路由器都有依赖性,所以我只想避免在两台路由器都closures的情况下监控广域网交换机。 我在Icinga2文档上找不到这样的东西。 任何人有最好的方式来设置这个想法?

这个行为在2.3.10中已经被修复,所以可以存在多个主机依赖关系。 ( https://dev.icinga.org/issues/10058

文档中有一整章: http : //docs.icea.org/icinga2/latest/doc/module/icinga2/chapter/monitoring-basics#dependencies

你基本上做了两个依赖:

apply Dependency "behind-rtr1" to Host { parent_host_name = "rtr1" disable_checks = true disable_notifications = true // how ever you would specify that assign where host.vars.zone == "wan" } apply Dependency "behind-rtr2" to Host { parent_host_name = "rtr2" disable_checks = true disable_notifications = true // how ever you would specify that assign where host.vars.zone == "wan" }