Hello everybody,
recently I filed a "bug" about Object Inheritance and Important values:
https://dev.icinga.org/issues/1066
I found out how to fix this, at least in my setup it works as expected,
please see the patch attached. But I'm not that good at coding and I'm
not sure if it's not a misuse of the xodtemplate_get_inherited_string
function - maybe someone can take a look into that and tell me if this
is okay. In that case I will create a feature request to bring that
piece of code (it's a oneliner, really ... :-) ) upstream.
Regards,
Thomas
*** xodtemplate.c 2011-02-15 14:28:41.000000000 +0100
--- /home/thomas/Downloads/xodtemplate.c 2011-02-21 11:07:38.000000000 +0100
***************
*** 7318,7323 ****
--- 7318,7324 ----
xodtemplate_get_inherited_string(&template_service->have_service_groups,&template_service->service_groups,&this_service->have_service_groups,&this_service->service_groups);
xodtemplate_get_inherited_string(&template_service->have_contact_groups,&template_service->contact_groups,&this_service->have_contact_groups,&this_service->contact_groups);
xodtemplate_get_inherited_string(&template_service->have_contacts,&template_service->contacts,&this_service->have_contacts,&this_service->contacts);
+ xodtemplate_get_inherited_string(&template_service->have_check_command,&template_service->check_command,&template_service->have_important_check_command,&this_service->check_command);
if(template_service->have_check_command==TRUE){
if(template_service->have_important_check_command==TRUE){
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
icinga-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-devel