--- status.c.orig 2010-08-20 18:06:46.000000000 +0200
+++ status.c 2010-10-08 14:21:00.000000000 +0200
@@ -533,7 +533,13 @@
printf("
\n");
printf("\n",url_images_path);
printf("\n");
- printf("Current Network Status\n");
+ if ((display_type==DISPLAY_HOSTS)&&(!show_all_hosts)&&host_name&&(*host_name!='\0'))
+ printf ("[%s]\n",html_encode(host_name,FALSE));
+ else if ((display_type==DISPLAY_HOSTGROUPS)&&(!show_all_hostgroups)&&hostgroup_name
+ &&(*hostgroup_name!='\0')) printf ("{%s}\n",html_encode(hostgroup_name,FALSE));
+ else if ((display_type==DISPLAY_SERVICEGROUPS)&&(!show_all_servicegroups)&&servicegroup_name
+ &&(*servicegroup_name!='\0')) printf ("(%s)\n",html_encode(servicegroup_name,FALSE));
+ else printf("Current Network Status\n");
printf("\n");
if(use_stylesheet==TRUE){
--- extinfo.c.orig 2010-08-03 14:44:33.000000000 +0200
+++ extinfo.c 2010-10-08 14:14:28.000000000 +0200
@@ -611,7 +611,17 @@
printf("\n");
printf("\n",url_images_path);
printf("\n");
- printf("Extended Information\n");
+ if ((display_type==DISPLAY_HOST_INFO)&&host_name&&(*host_name!='\0'))
+ printf ("[%s]\n",html_encode(host_name,FALSE));
+ else if ((display_type==DISPLAY_SERVICE_INFO)&&service_desc&&(*service_desc!='\0')) {
+ printf ("%s\n",service_desc);
+ if (host_name&&(*host_name!='\0')) printf ("@ %s\n",html_encode(host_name,FALSE));
+ }
+ else if ((display_type==DISPLAY_HOSTGROUP_INFO)&&hostgroup_name&&(*hostgroup_name!='\0'))
+ printf ("{%s}\n",html_encode(hostgroup_name,FALSE));
+ else if ((display_type==DISPLAY_SERVICEGROUP_INFO)&&servicegroup_name
+ &&(*servicegroup_name!='\0')) printf ("(%s)\n",html_encode(servicegroup_name,FALSE));
+ else printf("Extended Information\n");
printf("\n");
if(use_stylesheet==TRUE){