Nagios3-cvs: Possible bug in additive inheritance for escalations

Ethan Galstad nagios at nagios.org
Wed Mar 5 22:50:05 CET 2008


Matthias Eble wrote:
> Hi Ethan, hi list,
> 
> I think I found a bug in additive inheritance for escalations.
> 
> here's what the docs say:
>  > Service and host escalation definitions can make use of a special rule
>  > that combines the features of implied and additive inheritance. If
>  > escalations 1) do not inherit the values of their contact_groups or
>  > contacts directives from another escalation template and 2) their
>  > contact_groups or contacts directives begin with a plus sign (+), then
>  >  the values of their corresponding host or service definition's
>  > contact_groups or contacts directives will be used in the additive
>  > inheritance logic.
> 
> with the latests cvs version this doesn't seem work.
> I looked at the source and the problem is that 
> xodtemplate_clean_additive_strings() is called before 
> xod_template_inherit_object_properties(). But the latter tries to do 
> some additive inheritance, too. Unfortunately the + signs are gone then.
> 
> My suggest would be to move xod_template_inherit_object_properties() 
> before xodtemplate_clean_additive_strings() so that the inheritance work 
> is done before the duplication tasks.
> 
> Matthias

Thanks for the report Matthias.  A patch is now in CVS which should
resolve this issue.


Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web:   www.nagios.org

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




More information about the Developers mailing list