Christoph Stoettner wrote: > HI, > > Have a look on this page: > http://nagios.sourceforge.net/docs/3_0/dependencies.html > > You have to make a define hostdependency section for each > dependent_host_name like on the bottom of the link above! > > Please look at the FAQ too, because of differences in parent/child and > dependency setups. > http://www.nagios.org/faqs/viewfaq.php?faq_id=145&expand=false&showdesc=false > > Greets Christoph > > On Jan 16, 2008 10:50 PM, Andrei-Florian Staicu <[EMAIL PROTECTED]> wrote: > >> Hello and excuse for being a bit thicker. >> >> Could you tell me why the following dependency: >> define hostdependency { >> dependent_host_name >> GWMogo,GW2Mai,GWBane,GWAuBM,GWPlSH,GWPlSV >> host_name quagga >> notification_failure_criteria d,u >> execution_failure_criteria d,u,p >> } >> yelds: >> Checking for circular host and service dependencies... >> Error: A circular execution dependency (which could result in a >> deadlock) exists for host 'quagga'! >> Error: A circular execution dependency (which could result in a >> deadlock) exists for host 'quagga'! >> Error: A circular execution dependency (which could result in a >> deadlock) exists for host 'quagga'! >> Error: A circular execution dependency (which could result in a >> deadlock) exists for host 'quagga'! >> Error: A circular execution dependency (which could result in a >> deadlock) exists for host 'quagga'! >> ? >> >> It is the only dependency in my files. >> Isn't this the correct way to telling Nagios that all those GW's depend >> on quagga shouldn't be checked or notified until quagga is up? >> >> Thanks >> I tried splitting that into six different dependencies (one for each host). With only two hosts, config check says ok. If I add another host (for a total of 3 hostst) I get 2 circular dependency errors. Also, with 3 hosts, it reports checking for 6 dependencies. If I leave it in the original form and I comment execution_failure_criteria, the config check yields no error, but this means the dependecies work only for notifications. I would like to stop executions based on dependecies and it seems that this is the problem. Could you help me with this?
Forgot to specify: Nagios 3.0b7 Thanks ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null