Interface Dependency

Dependency objects are used to specify dependencies between hosts and services. Dependencies can be defined as Host-to-Host, Service-to-Service, Service-to-Host, or Host-to-Service relations.

Best Practice

Rather than creating a Dependency object for a specific host or service it is usually easier to just create a Dependency template and use the apply keyword to assign the dependency to a number of hosts or services. Use the to keyword to set the specific target type for Host or Service. Check the dependencies chapter for detailed examples.

Example: Service-to-Service

object Dependency "webserver-internet" {
parent_host_name = "internet"
parent_service_name = "ping4"

child_host_name = "webserver"
child_service_name = "ping4"

states = [ OK, Warning ]

disable_checks = true
}

Example: Host-to-Host

object Dependency "webserver-internet" {
parent_host_name = "internet"

child_host_name = "webserver"

states = [ Up ]

disable_checks = true
}

See

doc/09-object-types.md L153-L258

interface Dependency {}