Page 1 of 1

[Nagios-devel] how to specify multiple dependencies

Posted: Tue Oct 07, 2008 9:38 am
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]