--- status.c 2008-11-14 10:55:13.000000000 -0700 +++ .20080401.133208.status.c 2008-04-01 13:32:08.000000000 -0600 @@ -1365,8 +1365,6 @@ printf("Attempt Sort by current attempt (ascending)Sort by current attempt (descending)",temp_url,SORT_ASCENDING,SORT_CURRENTATTEMPT,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_CURRENTATTEMPT,url_images_path,DOWN_ARROW_ICON); - printf("Annotations\n"); - printf("Status Information\n"); printf("\n"); @@ -1759,29 +1757,6 @@ printf("%s\n",status_bg_class,date_time); printf("%s\n",status_bg_class,state_duration); printf("%d/%d\n",status_bg_class,temp_status->current_attempt,temp_status->max_attempts); - - /* changes (excluding table header hack) start here */ - - // name of annotation file - char *ann_file; - char ann[255]; - asprintf(&ann_file, "/usr/local/etc/nagios/annotate/%s/%s",temp_status->host_name,temp_status->description); - // read data in annotation file - FILE *res = fopen(ann_file,"r"); - - if (!res) { - sprintf(ann, "NOFILE: %s", ann_file); - } else { - int i = fread(ann, 1, 254, res); - ann[i] = '\0'; - fclose(res); - } - - printf("%s\n",status_bg_class,ann); - - /* changes end here */ - - printf("",status_bg_class); printf("%s ",(temp_status->plugin_output==NULL)?"":html_encode(temp_status->plugin_output,TRUE)); /* @@ -1957,8 +1932,6 @@ printf("Duration Sort by state duration (ascending)Sort by state duration time (descending)",temp_url,SORT_ASCENDING,SORT_STATEDURATION,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_STATEDURATION,url_images_path,DOWN_ARROW_ICON); - printf("Annotations\n"); - printf("Status Information\n"); printf("\n"); @@ -2185,28 +2158,6 @@ printf("%s\n",status_class,status); printf("%s\n",status_bg_class,date_time); printf("%s\n",status_bg_class,state_duration); - - /* changes start (excluding trivial other changes) */ - - // name of annotation file - char *ann_file; - char ann[255]; - asprintf(&ann_file, "/usr/local/etc/nagios/annotate/%s/hostinfo.txt",temp_status->host_name); - - // read data in annotation file - FILE *res = fopen(ann_file,"r"); - - if (!res) { - sprintf(ann, "NOFILE: %s", ann_file); - } else { - int i = fread(ann, 1, 254, res); - ann[i] = '\0'; - fclose(res); - } - - printf("%s\n",status_bg_class,ann); - /* changes end */ - printf("",status_bg_class); printf("%s ",(temp_status->plugin_output==NULL)?"":html_encode(temp_status->plugin_output,TRUE)); /*