Issues with the serviceextifo icon usage - not working

James S. White james at jameswhite.org
Fri Nov 4 23:36:15 CET 2005


This was the behavior I expected  as well. I just patch status.c to make it so.


diff -ruN nagios-2.0b4/cgi/status.c nagios-2.0b4-p1/cgi/status.c
--- nagios-2.0b4/cgi/status.c   2005-06-11 19:17:55.000000000 -0500
+++ nagios-2.0b4-p1/cgi/status.c        2005-10-07 17:30:24.000000000 -0500
@@ -1662,10 +1662,14 @@
                        if(temp_serviceextinfo!=NULL){
                                if(temp_serviceextinfo->icon_image!=NULL){
                                        printf("<TD ALIGN=center valign=center>");
-                                       printf("<A HREF='%s?type=%d&host=%s",EXTINFO_CGI,DISPLAY_SERVICE_INFO,url_encode(temp_service->host_name));
-                                       printf("&service=%s'>",url_encode(temp_service->description));
+
+/*FOOBAR*/
+                                       printf("<A HREF='%s'>",temp_serviceextinfo->notes_url);
                                        printf("<IMG SRC='%s%s' BORDER=0 WIDTH=%d HEIGHT=%d ALT='%s' TITLE='%s'>",url_logo_images_path,temp_serviceextinfo->icon_image,STATUS_ICON_WIDTH,STATUS_ICON_HEIGHT,(temp_serviceextinfo->icon_image_alt==NULL)?"":temp_serviceextinfo->icon_image_alt,(temp_serviceextinfo->icon_image_alt==NULL)?"":temp_serviceextinfo->icon_image_alt);
                                        printf("</A>");
+
+
+
                                        printf("</TD>\n");
                                        }
                                }

-----------------------------------------------------------------------
James S. White                             primary/voip: (615) 469-0268
928 Mountain Valley Dr.          .O.             mobile: (256) 476-2619
Nashville, TN 37209              ..O               work: (615) 341-8218
http://www.jameswhite.org        OOO        work-mobile: (615) 519-5160
james at jameswhite.org                                fax: (866) 260-5465
-----------------------------------------------------------------------
"Computers are useless. They only give you answers." -- Pablo Picasso

On Thu, 3 Nov 2005, Andreas Ericsson wrote:

> Albert Whale wrote:
> > I have the following definition on Nagios-2.0b3 in serviceextinfo.cfg.
> >
> >      define serviceextinfo {
> >        service_description  Cisco_Memory
> >        hostgroup       CiscoEquipment
> >        notes_url       /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$
> >        icon_image      graph.gif
> >        icon_image_alt  View graphs
> >      }
> >
> > What I planned on happening was that the graph.gif icon would launch the
> > notes_url.  This does not happen.
>
>
> You've misread the docs. The notes_url is displayed by clicking the
> folder icon in the extinfo.cgi view of the service.
>
> --
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php




More information about the Developers mailing list