mirror of https://github.com/Icinga/icinga2.git
parent
6d8d25175d
commit
4e572b9b10
|
@ -205,10 +205,10 @@ Attributes:
|
|||
|
||||
Name |Description
|
||||
----------------|----------------
|
||||
parent_host |**Required.** The parent host.
|
||||
parent_service |**Optional.** The parent service. When not specified the host's check service is used.
|
||||
child_host |**Required.** The child host.
|
||||
child_service |**Optional.** The child service. When not specified the host's check service is used.
|
||||
parent_host_name |**Required.** The parent host.
|
||||
parent_service_name |**Optional.** The parent service. When not specified the host's check service is used.
|
||||
child_host_name |**Required.** The child host.
|
||||
child_service_name |**Optional.** The child service. When not specified the host's check service is used.
|
||||
disable_checks |**Optional.** Whether to disable checks when this dependency fails. Defaults to false.
|
||||
disable_notifications|**Optional.** Whether to disable notifications when this dependency fails. Defaults to true.
|
||||
period |**Optional.** Time period during which this dependency is enabled.
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
## <a id="dependencies"></a> Dependencies
|
||||
|
||||
Icinga 2 uses host and service [Dependency](#objecttype-dependency) objects either directly
|
||||
defined or as inline definition as `dependencies` dictionary. The `parent_host` and `parent_service`
|
||||
attributes are mandatory, `child_host` and `child_service` attributes are obsolete within
|
||||
inline definitions in an existing service object or service inline definition.
|
||||
defined or as inline definition as `dependencies` dictionary. The `parent_host_name` and `parent_service_name`
|
||||
attributes are mandatory.
|
||||
|
||||
A service can depend on a host, and vice versa. A service has an implicit dependency (parent)
|
||||
to its host. A host to host dependency acts implicit as host parent relation.
|
||||
|
@ -37,7 +36,7 @@ be suppressed. This is achieved by setting the `disable_checks` attribute to `tr
|
|||
}
|
||||
|
||||
apply Dependency "internet" to Service {
|
||||
parent_host = "dsl-router"
|
||||
parent_host_name = "dsl-router"
|
||||
disable_checks = true
|
||||
|
||||
assign where host.name != "dsl-router"
|
||||
|
|
Loading…
Reference in New Issue