]> granicus.if.org Git - icinga2/commitdiff
Documentation: Fix dependency example.
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 2 Jun 2014 11:51:28 +0000 (13:51 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 2 Jun 2014 11:51:28 +0000 (13:51 +0200)
Fixes #6372

doc/3-monitoring-basics.md

index 12c09cdfe20f51a370132ccfe9d69141263923d1..f431178ff329f257b76072f8381c81d88966fb55 100644 (file)
@@ -976,15 +976,16 @@ and `nrpe-disk` applied to the `nrpe-server`. The health check is defined as
     apply Dependency "disable-nrpe-checks" to Service {
       parent_service_name = "nrpe-health"
 
-      states = [ Warning, Critical, Unknown ]
+      states = [ OK ]
       disable_checks = true
       disable_notifications = true
-      assign where match("nrpe-*", host.name)
+      assign where service.check_command == "nrpe"
       ignore where service.name == "nrpe-health"
     }
 
 The `disable-nrpe-checks` dependency is applied to all services
-on the `nrpe-service` host but not the `nrpe-health` service itself.
+on the `nrpe-service` host using the `nrpe` check_command attribute
+but not the `nrpe-health` service itself.
 
 
 ## <a id="downtimes"></a> Downtimes