Репозитории ALT
S: | 3.0.6-alt16 |
5.1: | 3.0.6-alt1 |
4.1: | 3.0.3-alt1.M41.1 |
4.0: | 2.7-alt1 |
3.0: | 2.0-alt0.b3.1 |
Группа :: Мониторинг
Пакет: nagios
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: nagios-3.0.6-alt-ignore-empty-hostgroups.patch
Скачать
Скачать
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 */