check_logfiles: 3.7.5.1
[omd.git] / packages / nagios / patches / 0005-start-without-hosts-or-services.dif
blob9d683ee833f29ef68991f796d825406be1a540d4
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
4 @@ -1770,10 +1770,6 @@
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!");
10 -               errors++;
11 -               }
12         total_objects = 0;
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!");
21 -               errors++;
22 -               }
24         total_objects = 0;
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!");
33 -               errors++;
34 -               }
35         for(temp_contact = contact_list, total_objects = 0; temp_contact != NULL; temp_contact = temp_contact->next, total_objects++) {
37                 /* check service notification commands */