Hi, we have icinga deployed in remote location which is directly connected over 192.168.255.0/30 network with the main location. I add the host interconnect with address 192.168.255.2 which is the main location side. The check for reachability and ping4 work good. Also there is no problem with host dependency of the hosts in main location on interconnect host.
But sometimes happens that the interconnect host is reachable, only the ping4 has to high RTA value and the service goes in critical (warning) state. In that moment also hosts in main location are UP, but their services goes critical (warning).
I try to set up service-to-service dependecy, but the notifications from services are stil sent.
First time I tried with general Apply rule (commented lines were tried uncommented)
apply Dependency "ping4-interconnect" to Service {
//parent_host_name = "interconnect"
parent_service_name = "ping4"
disable_checks = true
//ignore_soft_states = false
disable_notifications = true
//states = [ OK ]
assign where service.check_command == "ping4" //assign where host.vars.location == "main"
ignore where service.name == "ping4-interconnect"
}
When this doesnât work for me, I tried with basic dependecy object
object Dependency "ping4-interconnect" {
parent_host_name = "interconnect"
parent_service_name = "ping4"
child_host_name = "testing.tacr.local"
child_service_name = "ping4"
states = [ OK ]
disable_checks = true
//ignore_soft_states = false
}
But the result is still the same when testing. Service interconnect!ping4 goes critical, the noticifation is send, testing!ping4 goes critical and the notification is send.
Here is part of debuglog, Iâm a bit confused about passed and filed dependecies
[2021-01-18 18:33:04 +0100] notice/Dependency: Dependency 'testing!ssh!disable-host-service-checks' passed: Parent host 'testing' matches state filter.
[2021-01-18 18:33:04 +0100] notice/Dependency: Dependency 'interconnect!ping4!disable-host-service-checks' passed: Parent host 'interconnect' matches state filter.
[2021-01-18 18:33:04 +0100] notice/Dependency: Dependency 'testing!ping4!ping4-interconnect' failed. Parent service 'interconnect!ping4' is CRITICAL
[2021-01-18 18:33:04 +0100] notice/Dependency: Dependency 'testing!ping4!disable-host-service-checks' passed: Parent host 'testing' matches state filter.
[2021-01-18 18:33:09 +0100] notice/Dependency: Dependency 'interconnect!ping4!disable-host-service-checks' passed: Parent host 'interconnect' matches state filter.
[2021-01-18 18:33:09 +0100] notice/Dependency: Dependency 'testing!ssh!disable-host-service-checks' passed: Parent host 'testing' matches state filter.
[2021-01-18 18:33:09 +0100] notice/Dependency: Dependency 'interconnect!ping4!disable-host-service-checks' passed: Parent host 'interconnect' matches state filter.
[2021-01-18 18:33:09 +0100] notice/Dependency: Dependency 'testing!ping4!ping4-interconnect' failed. Parent service 'interconnect!ping4' is CRITICAL
[2021-01-18 18:33:09 +0100] notice/Dependency: Dependency 'testing!ping4!disable-host-service-checks' passed: Parent host 'testing' matches state filter.
Is it even possible to make this type of dependency? If yes, have I forgot to set some parameter?
Thanks in advance