1 diff -ru nagios-3.4.4.orig//base/config.c nagios-3.4.4/base/config.c
2 --- nagios-3.4.4.orig//base/config.c 2013-01-27 11:42:37.761784344 +0100
3 +++ nagios-3.4.4/base/config.c 2013-01-27 11:43:32.078583379 +0100
5 /*****************************************/
6 if(verify_config == TRUE)
7 printf("Checking services...\n");
8 - if(get_service_count() == 0) {
9 - logit(NSLOG_VERIFICATION_ERROR, TRUE, "Error: There are no services defined!");
13 for(temp_service = service_list; temp_service != NULL; temp_service = temp_service->next) {
15 @@ -1935,11 +1931,6 @@
16 if(verify_config == TRUE)
17 printf("Checking hosts...\n");
19 - if(get_host_count() == 0) {
20 - logit(NSLOG_VERIFICATION_ERROR, TRUE, "Error: There are no hosts defined!");
25 for(temp_host = host_list; temp_host != NULL; temp_host = temp_host->next) {
27 @@ -2181,10 +2172,6 @@
28 /*****************************************/
29 if(verify_config == TRUE)
30 printf("Checking contacts...\n");
31 - if(contact_list == NULL) {
32 - logit(NSLOG_VERIFICATION_ERROR, TRUE, "Error: There are no contacts defined!");
35 for(temp_contact = contact_list, total_objects = 0; temp_contact != NULL; temp_contact = temp_contact->next, total_objects++) {
37 /* check service notification commands */