ALT Linux repos
Group :: Monitoring
RPM: nagios
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: nagios-3.0.6-alt-ignore-empty-hostgroups.patch
Download
Download
diff --git a/nagios/xdata/xodtemplate.c b/nagios/xdata/xodtemplate.c
index fea8e47..7b4f5b8 100644
--- a/nagios/xdata/xodtemplate.c
+++ b/nagios/xdata/xodtemplate.c
@@ -5154,10 +5154,7 @@ int xodtemplate_duplicate_services(void){
/* get list of hosts */
temp_memberlist=xodtemplate_expand_hostgroups_and_hosts(temp_service->hostgroup_name,temp_service->host_name,temp_service->_config_file,temp_service->_start_line);
if(temp_memberlist==NULL){
-#ifdef NSCORE
- logit(NSLOG_CONFIG_ERROR,TRUE,"Error: Could not expand hostgroups and/or hosts specified in service (config file '%s', starting on line %d)\n",xodtemplate_config_file_name(temp_service->_config_file),temp_service->_start_line);
-#endif
- return ERROR;
+ continue;
}
/* add a copy of the service for every host in the hostgroup/host name list */