[Nagios-devel] how to specify multiple dependencies

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] how to specify multiple dependencies

Post by Guest »

Hello list.

I understand the main idea behind service dependencies, to avoid
duplicated alerts for service A when another depended service B is down.
However, when this other service B is redunded by service C, how to
specify than A depends on (B or C) ?

AFAIK, the syntax specifying multiple host in a dependency relationship
doesn't imply any relationship between those host, but is just syntaxic
sugar for multiple declaration:

define servicedependency {
host_name B,C
service_description X
dependent_host_name A
dependent_service_description Y
}

is strictly equivalent to:
define servicedependency {
host_name B
service_description X
dependent_host_name A
dependent_service_description Y
}
define servicedependency {
host_name C
service_description X
dependent_host_name A
dependent_service_description Y
}
--
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked