Circular execution dependency detected

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
erichymowitz
Posts: 10
Joined: Thu Aug 18, 2016 11:18 am

Circular execution dependency detected

Post by erichymowitz »

So I'm trying to set up monitoring for MySQL Replication. In short, if one host goes down, the other host shouldn't be surprised that replication has stopped.

Code: Select all

define servicedependency{
    host_name   svx
    service_description MySQL Replication MPS
    dependent_host_name       impreza
    dependent_service_description MySQL Replication MPS
    execution_failure_criteria  w,u,c,p
    notification_failure_criteria   w,u,c,p
}
define servicedependency{
    host_name   impreza
    service_description MySQL Replication MPS
    dependent_host_name       svx
    dependent_service_description MySQL Replication MPS
    execution_failure_criteria  w,u,c,p
    notification_failure_criteria   w,u,c,p
}
I end up with these two errors:
Error: Circular notification dependency detected for services 'impreza;MySQL Replication MPS' and 'svx;MySQL Replication MPS'
Error: Circular execution dependency detected for services 'impreza;MySQL Replication MPS' and 'svx;MySQL Replication MPS'
But I'm confused -- https://assets.nagios.com/downloads/nag ... ncies.html says
Service dependencies are not inherited (unless specifically configured to)
[...]
As mentioned before, service dependencies are not inherited by default. In the example above you can see that Service F is dependent on Service E. However, it does not automatically inherit Service E's dependencies on Service B and Service C.
What am I not understanding? Why do I have an error? How can I fix this?

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

Re: Circular execution dependency detected

Post by scottwilkerson »

In your configuration you have
'impreza;MySQL Replication MPS' depending on 'svx;MySQL Replication MPS'
and
'svx;MySQL Replication MPS' depending on 'impreza;MySQL Replication MPS'

They both cannot be dependent on one another, this is not possible because neither could ever fail.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked