[icinga-devel] PATCH: Bugfix in escalation conditions

Vitali Voroth voroth at decoit.de
Fri Aug 27 15:24:12 CEST 2010


  Hi!

Unfortunately there was a bug in the escalation conditions.
Yes, I didn't test them enough ;-)

There will be a segfault during the processing of configuration files if
you define one escalation (with escalation conditions) for more than
one host/service using the 'time saving tricks' ([1], [2]).

There are two files attached, one for icinga 1.0.1 and another for 1.0.2.
   - escalation_conditions_patch-icinga1.0.1.patch
     This one is for icinga 1.0.1 and is tested

   - escalation_conditions_patch-icinga1.0.2.patch
     This is not tested but should work fine for 1.0.2 and 1.0.3
     since there were no changes in 1.0.3 in the xodtemplate.c

Example configurations which would cause the sigfault:

define hostescalation{
     host_name                      host1,host2,host3
     ...
}

define hostescalation{
     hostgroup_name           escalation-hosts
     ...
}

define serviceescalation{
     servicegroup_name       escalation-services
     ...
}


[1] 
http://docs.icinga.org/latest/en/objecttricks.html#objecttricks-hostescalation
[2] 
http://docs.icinga.org/latest/en/objecttricks.html#objecttricks-serviceescalation

-- 
Regards,

Vitali Voroth
Decoit GmbH
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: escalation_conditions_patch-icinga1.0.1.patch
URL: <http://lists.icinga.org/pipermail/icinga-devel/attachments/20100827/22f2e5f7/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: escalation_conditions_patch-icinga1.0.2.patch
URL: <http://lists.icinga.org/pipermail/icinga-devel/attachments/20100827/22f2e5f7/attachment-0001.ksh>


More information about the icinga-devel mailing list