--=-Vrz0ddrcdN7GYUSGbp5X
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Two liner change to make a couple of items clickable in the output.
--
Matthew Kent
http://magoazul.com
--=-Vrz0ddrcdN7GYUSGbp5X
Content-Disposition: attachment; filename=nagios-2.0a1-extinfo_links.patch
Content-Type: text/x-patch; name=nagios-2.0a1-extinfo_links.patch; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: 7bit
diff -u3 -r nagios_orig/cgi/extinfo.c nagios/cgi/extinfo.c
--- nagios_orig/cgi/extinfo.c 2004-05-20 01:47:21.000000000 -0400
+++ nagios/cgi/extinfo.c 2004-10-03 21:52:26.000000000 -0400
@@ -307,7 +307,7 @@
if(!strcmp(temp_member->host_name,temp_host->name)) {
if (found==TRUE)
printf(", ");
- printf("%s",temp_hostgroup->group_name);
+ printf("%s",STATUS_CGI,url_encode(temp_hostgroup->group_name),temp_hostgroup->group_name);
found=TRUE;
}
@@ -324,7 +324,7 @@
if(display_type==DISPLAY_SERVICE_INFO){
printf("Service%sOn Host\n",service_desc);
printf("%s\n",temp_host->alias);
- printf("(%s)\n",temp_host->name);
+ printf("(%s)\n",EXTINFO_CGI,DISPLAY_HOST_INFO,url_encode(temp_host->name),temp_host->name);
printf("%s\n",temp_host->address);
}
if(display_type==DISPLAY_HOSTGROUP_INFO){
--=-Vrz0ddrcdN7GYUSGbp5X--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]