service dependencies not catching all

Andreas Ericsson ae at op5.se
Wed Jun 10 13:09:49 CEST 2009


Assaf Flatto wrote:
>> 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.
> 
> In that case can you point me to the location where i configure nagios to respond that way , since 
> it is not working in my setup ( nagios 3.0.6 from source , on SLES 10.2) ?
> 

It's supposed to do that automatically. Can you provide the relevant
excerpts from the logfiles showing it hasn't done so?

>>> 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.
> 
> I hate to disagree , but this is the setting i have in my nagios and i do no have the "264384000 " 
> dependencies .
> 

It can't be, because then all PING services would depend on themselves
which Nagios doesn't allow.
The fact that some 26 million dependencies are missing seems to indicate
that you've added it to a configuration file that Nagios doesn't parse.

-- 
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