I have some issue to configure dependencies in Nagios.
I did the following test on a totally new installation (Ubuntu 12.04 LTS):
Code: Select all
define service {
host_name localhost
service_description Test_service_1
check_command test_service_1
use generic-service
check_interval 1
}
define service {
host_name localhost
service_description Test_service_2
check_command test_service_2
use generic-service
check_interval 1
}
define servicedependency{
host_name localhost
service_description Test_service_1
dependent_host_name localhost
dependent_service_description Test_service_2
execution_failure_criteria c
notification_failure_criteria c
}
From what I understood, if Test_service_1 is in state CRITICAL, Test_service_2 should not be tested.
However, from the timestamp displayed in the output message, I can see that even when Test_service_1 is in CRITICAL, Test_service_2 is still tested.
Did I miss something?
Thanks a lot for your help,
Mike