service dependencies not working

Ethan Galstad nagios at nagios.org
Thu Apr 24 05:26:11 CEST 2003


You've got it backwards.  Based on your config, PING_NMS on fw 
depends on PING_FARM on sw01.  Switch the services and you should be 
good to go.



On 23 Apr 2003 at 16:51, Thomas Linden wrote:

> Hello folks,
> 
> we are using nagios 1.06b under FreeBSD (from the ports collection),
> which runs in a chrooted ram-disk. It works fine so far. 
> 
> The only problem we encounter is that it ignores service dependencies.
> 
> I configured the following dependency:
> 
> define servicedependency{
>         host_name                       sw01
>         service_description             PING_FARM
>         dependent_host_name             fw
>         dependent_service_description   PING_NMS
>         execution_failure_criteria      u,c
>         notification_failure_criteria   u,c
>         }
> 
> the host 'sw01' has the service 'PING_FARM' (which uses check_ping) and
> 'fw' has the service 'PING_NMS'. AFAIK this means 'sw01' depends upon
> 'fw'.
> 
> The problem is that if I take down the host 'fw' nagios still executes
> 'PING_FARM' on host 'sw01'. Since 'sw01' is no more reachable nagios
> sends a 'host down' event notification about 'sw01'. But it shouldn't
> do that as I understand the dependency configuration above.
> 
> Any ideas?
> 
> 
> 
> regards, Tom
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
> 



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list