Documentation: Fix dependency example.

Fixes #6372
This commit is contained in:
Michael Friedrich 2014-06-02 13:51:28 +02:00
parent 9225f7ed00
commit 64a6ca9022
1 changed files with 4 additions and 3 deletions

View 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 { apply Dependency "disable-nrpe-checks" to Service {
parent_service_name = "nrpe-health" parent_service_name = "nrpe-health"
states = [ Warning, Critical, Unknown ] states = [ OK ]
disable_checks = true disable_checks = true
disable_notifications = true disable_notifications = true
assign where match("nrpe-*", host.name) assign where service.check_command == "nrpe"
ignore where service.name == "nrpe-health" ignore where service.name == "nrpe-health"
} }
The `disable-nrpe-checks` dependency is applied to all services 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 ## <a id="downtimes"></a> Downtimes