On 04/06/2017 01:31 PM, Michael Martinez wrote: > I've got a bunch of hosts that have a "check_nrpe_service" check and a > "check_radar" check. I've defined a dependency as shown below. I do a > service icinga2 reload and the log file does not show any errors > pertaining to the dependency, which I assume means it loaded correctly > for all of the hosts that are running these services. >
I would suggest running icinga2 daemon -C to see the count of Dependencies (and warning if it won't be applied to anything). As you make changes (change the assign value, ignore), that number should change. > My understanding of this dependency is that if the check_nrpe_service > is Critical, then check_radar will not perform its scheduled checks. > > apply Dependency "sre-2895a" to Service { > parent_service_name = "check_nrpe_service" > disable_checks = true > disable_notifications = true > assign where service.name == "check_radar" > ignore where host.vars.host_type == "dummy" > } Try removing the ignore rule and seeing if the count changes. > > However, if I disable xinetd, causing "check_nrpe_service" to be > Critical, "check_radar" continues to do its scheduled checks and also > becomes Critical. This means the Dependency is not working. Am I doing > something wrong or is there a bug? > _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users