Host / services dependencies are not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sac1472
Posts: 66
Joined: Thu May 25, 2017 5:06 am

Host / services dependencies are not working

Post by sac1472 »

Hello,
i have configured some hosts dependent on a "X" host. but when that "X" host goes down/unreachable those dependent hosts are also raising alerts.
I want that dependent hosts checks & notification should fail when "X" host is down. but that's not working.

Also, same with services- configured some services dependent on a "Y" service.
I want that dependent service checks & notification should fail when "Y" service is critical/warning but that's not working.

can somebody guide me?
check below dependency configs.

define hostdependency {
# config_name local2
dependent_host_name local4,local5,local6
host_name local2
inherits_parent 0
execution_failure_criteria u,d,p,
notification_failure_criteria u,d,
dependency_period xi_timeperiod_24x7
}


define servicedependency {
# config_name local12
dependent_host_name local8
dependent_service_description CPU Usage, Memory Usage
host_name local12
service_description cpu
inherits_parent 1
execution_failure_criteria w,u,c,p,
notification_failure_criteria w,u,c,p,
dependency_period xi_timeperiod_24x7

}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host / services dependencies are not working

Post by scottwilkerson »

I think you may have them backwards
https://assets.nagios.com/downloads/nag ... ncies.html
In each definition you specify the dependent service, the service you are depending on, and the criteria (if any) that cause the execution and notification dependencies to fail (these are described later).

You can create several dependencies for a given service, but you must add a separate service dependency definition for each dependency you create.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked