--- nagios-2.5/cgi/history.c 2006-03-21 21:31:46.000000000 +0000 +++ history.c 2006-08-22 10:57:20.866507168 +0100 @@ -148,8 +148,8 @@ printf("
| \n");
if(display_type==DISPLAY_HOSTS){
- printf("View Status Detail For %s \n",STATUS_CGI,(show_all_hosts==TRUE)?"all":url_encode(host_name),(show_all_hosts==TRUE)?"All Hosts":"This Host"); - printf("View Notifications For %s \n",NOTIFICATIONS_CGI,(show_all_hosts==TRUE)?"all":url_encode(host_name),(show_all_hosts==TRUE)?"All Hosts":"This Host"); + printf("View Status Detail For %s \n",STATUS_CGI,(show_all_hosts==TRUE)?"all":url_encode(host_name),(show_all_hosts==TRUE)?"All Hosts":"This Host"); + printf("View Notifications For %s \n",NOTIFICATIONS_CGI,(show_all_hosts==TRUE)?"all":url_encode(host_name),(show_all_hosts==TRUE)?"All Hosts":"This Host"); #ifdef USE_TRENDS if(show_all_hosts==FALSE) printf("View Trends For This Host\n",TRENDS_CGI,url_encode(host_name)); @@ -157,10 +157,10 @@ } else{ printf("View Notifications For This Service \n",url_encode(svc_description)); + printf("service=%s'>View Notifications For This Service \n",url_encode(svc_description)); #ifdef USE_TRENDS printf("View Trends For This Service \n",url_encode(svc_description)); + printf("service=%s'>View Trends For This Service \n",url_encode(svc_description)); #endif printf("View History For This Host\n",HISTORY_CGI,url_encode(host_name)); } @@ -181,7 +181,7 @@ else printf("Host '%s'",host_name); printf("\n"); - printf(" \n"); + printf(" \n"); snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s?%shost=%s&type=%d&statetype=%d&",HISTORY_CGI,(use_lifo==FALSE)?"oldestfirst&":"",url_encode(host_name),history_options,state_options); temp_buffer[sizeof(temp_buffer)-1]='\x0'; @@ -199,8 +199,8 @@ /* right hand column of top row */ printf(" | \n");
- printf(" \n");
+ printf(" ",(log_archive==0)?"the current":"this archived");
}
\n");
strncpy(last_message_date,current_message_date,sizeof(last_message_date));
last_message_date[sizeof(last_message_date)-1]='\x0';
}
if(display_frills==TRUE)
- printf(" \n");
if(found_line==FALSE){
printf("\n",date_time,strip_plugin_html(temp_buffer)); + printf(" \n",date_time,strip_plugin_html(temp_buffer)); found_line=TRUE; } } } - printf("\n"); + printf(" \n"); @@ -916,7 +916,7 @@ if(display_type==DISPLAY_HOSTS) printf("%s",(show_all_hosts==TRUE)?"":"for this host "); else - printf("for this this service "); + printf("for this service "); printf("in %s log file |