service dependencies not catching all

Andreas Ericsson ae at op5.se
Wed Jun 10 12:38:18 CEST 2009


Assaf Flatto wrote:
> hello list
> 
> I have an odd issue with service dependencies 
> 
> I have 360 hosts with 2400 services  in my nagios , and i thought i set up an "all encompassing" 
> service dependency in order to get only one alert of a host goes down .
> 

There is an automatic service->host dependency that suppresses notifications
for all services that are on hosts in a non-UP state, so this seems like an
exercise in futility to me.

> define servicedependency{
>         host_name                  *
>         service_description             PING
>         dependent_host_name        *
>         dependent_service_description   *
>         execution_failure_criteria      c,u,w
>         notification_failure_criteria   c,u,w
>         inherits_parent         
> }
>  In my calculation i should be having a list of 2400 dependencies and in the "show config- > service 
> dependencies " it should generate a list of 4800 lines .
> 

This would add 360*360*(2400-$services_named_PING) dependencies.
Assuming you have one PING service on each host, that's a total of
264384000 service-dependencies. *ALL* those dependencies would be
circular, so this simply cannot be how you have configured Nagios.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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