Nagios 2.0b1 serviceextinfo notes_url ignored

James S. White james at jameswhite.org
Fri Mar 18 16:19:18 CET 2005


This problem exists in 2.0b2 as well: This patch for cgi/status.c should
correct it. You can probably remove the /*FOOBAR*/ comment.

I am making the assumption that the serviceextifo icon should actually take you there instead of to the service description. If I'm wrong then disregard this email.

1664a1665,1666
>
> /*FOOBAR*/
1666,1667c1668
<                                       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));
---
>                                       printf("<A HREF='%s'>",temp_serviceextinfo->notes_url);
1669a1671,1673
>
>
>


-----------------------------------------------------------------------
James S. White                           primary/mobile: (256) 566-5866
c/o Two Rivers Campground        .O.                fax: (866) 260-5465
2616 Music Valley Drive #701     ..O               james at jameswhite.org
Nashville, TN 37214              OOO          http://www.jameswhite.org
-----------------------------------------------------------------------
A deep, unwavering belief is a sure sign that you're missing something.

> From: Stu Thompson <stu at tp...>
> Nagios 2.0b1 serviceextinfo notes_url ignored
> 2004-12-27 09:41
>
>  Hi all,
>
>  Either I have found a little bug, or I am suffering from another stupidity
>  fit.  Specifically, a serviceextinfo definition"s notes_url property is not
>  being used by the web interface to provide a link to a plug-in. The
>  icon_image and icon_image_alt properties work just fine and appear on the
>  web UI.  But the link is for the extinfo.cgi, just as the host or service
>  link is.
>
>  Has anyone else tried out Nagios 2.0b1 with an RRD graphing plug-in with any
>  success?
>
>  Linux: FC2
>  Nagios: 2.0b1
>  Plug-in: nagiosgraph 0.3
>  define serviceextinfo{
>         service_description  DNS
>         host_name            myserver
>         notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$
>         icon_image           graph.png
>         icon_image_alt       View graphs
>  }
>
>  Cheers for any help,
>  Stu



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list