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