In order to get our hostgroup templates to inherit the ContactGroup
from out generic-hostgroup hostgroup template we had to uncomment the
following in xdata/xodtemplate.c
*** xodtemplate.old.c Tue Jun 4 15:12:40 2002
--- xodtemplate.c Tue Jun 4 14:18:38 2002
***************
*** 3916,3922 ****
xodtemplate_timeperiod *temp_timeperiod;
xodtemplate_command *temp_command;
xodtemplate_contactgroup *temp_contactgroup;
! /*xodtemplate_hostgroup *temp_hostgroup;*/
xodtemplate_servicedependency *temp_servicedependency;
xodtemplate_serviceescalation *temp_serviceescalation;
xodtemplate_hostgroupescalation *temp_hostgroupescalation;
--- 3916,3922 ----
xodtemplate_timeperiod *temp_timeperiod;
xodtemplate_command *temp_command;
xodtemplate_contactgroup *temp_contactgroup;
! xodtemplate_hostgroup *temp_hostgroup;
xodtemplate_servicedependency *temp_servicedependency;
xodtemplate_serviceescalation *temp_serviceescalation;
xodtemplate_hostgroupescalation *temp_hostgroupescalation;
***************
*** 3950,3961 ****
/* HOSTGROUPS DON'T NEED TO BE RESOLVED HERE BECAUSE THEY WERE
ALREADY RESOLVED IN duplicate_objects() */
/* resolve all hostgroup objects */
- /*
for(temp_hostgroup=xodtemplate_hostgroup_list;temp_hostgroup!=NULL;temp_host
group=temp_hostgroup->next){
if(xodtemplate_resolve_hostgroup(temp_hostgroup)==ERROR)
return ERROR;
}
- */
/* resolve all servicedependency objects */
for(temp_servicedependency=xodtemplate_servicedependency_list;temp_servicede
pendency!=NULL;temp_servicedependency=temp_servicedependency->next){
--- 3950,3959 ----
Contrary to the comment, xodtemplate_resolve_hostgroup is not called from
xodtemplate_duplicate_objects!!!
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: jcyr@dillobits.com