Page 1 of 1

Circular execution dependency detected

Posted: Thu Aug 01, 2019 10:03 am
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.

Re: Circular execution dependency detected

Posted: Mon Aug 05, 2019 8:57 am
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.