Hi Assaf, It is complaining because there are no services associated with the host. Host dependencies work for hosts while service dependancies work only with services. http://nagios.sourceforge.net/docs/3_0/dependencies.html
The reason for setting up hosts with check-host-alive (ping) as well as a PING service is because Nagios treats host and services differently. I would recommend checking out the doc "host checks" and "service checks" which explain the difference between them. A solution, even if you did not like the redundant ping checks, would be to have the host checked with check-host-alive but not include a check interval for the host. Then setup a ping service for that host with a check interval that you would like it checked at. The host check check-host-alive would be run at startup or when the service has a problem. Besides the docs, Marc Powell had a good post earlier this year which I am going to reference again. :-) http://article.gmane.org/gmane.network.nagios.user/52470 good luck. Mark Young ___ Nagios Enterprises, LLC Web: www.nagios.com On Jul 17, 2008, at 5:29 AM, Assaf Flatto wrote: > Hello > > I'm trying to implement hostgroup dependency on the router status . > I am able to do the host/hostgroup dependency , but I am uncertain > how to make sure that if a > router is in the "danger" status , i want to disable the service > notifications for all the hosts in > the host group. > > I am not having any service run on the router - just the default > check-host-alive , but when i try > to do dependency on that service , nagios complains on that no > services are assigned to the > host "router" . > > anyone got an idea how to get such a set up to work ? > > adding a ping test to the router is redundant and there for not an > option we want to implement . > > Assaf > > > > > > IMPORTANT . this email and the information in it may be > confidential, legally > privileged and/or protected by law. It is intended solely for the > use of the > person to whom it is addressed. If you are not the intended > recipient, please > notify the sender immediately and do not disclose the contents to > any other > person, use it for any purpose, or store or copy the information in > any medium. > Please also delete all copies of this email and any attachments from > your > system. > > We cannot guarantee the security or confidentiality of email > communications. We > do not accept any liability for losses or damages that you may > suffer as a > result of your receipt of this email including but not limited to > computer > service or system failure, access delays or interruption, data non- > delivery or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service > Partner UK > Limited. Should you communicate with anyone at Select Service > Partner UK Limited by > email, you consent to us monitoring and reading any such > correspondence. > > Nothing in this email shall be taken or read as suggesting, > proposing or > relating to any agreement concerted practice or other practice that > could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England > and Wales > (company number 05687183) whose registered office is at 1 The > Heights, Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > [email protected] > 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 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list [email protected] 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
