URL Escaping in action_url -- Bug?

Don Tetreault Don.Tetreault at celero.ca
Thu Mar 19 00:31:21 CET 2009


Hi,
 
We are in the process on upgrading fromNagios 2.8 to Nagios 3.0.6. Our
original configuration includes serviceextinfo definitions which set the
action_url to include a pair of macros as follows:
 
define serviceextinfo{
        hostgroup_name          meta-windows
        service_description     disk usage on C:
        action_url
/nagios_ext/cgi-bin/disk.cgi?h=$HOSTNAME$&s=$SERVICEDESC$
}
 
In version 2.8, the resulting HREF URL was properly escaped (with a plus
sign replacing each space in the service description), but the spaces
remain unchanged in version 3.0.6. A check of the apache access_log
shows that Firefox replaces the space with %20 in the HTTP request, but
I am concerned about unexpected behavior in our production environment.
 
Is this a bug? Should I replace the macros with literal strings,
properly escaped? Is there a better solution?
 
Thank you in advance for any guidance.
 
D. Tetreault
 


This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090318/0bb22283/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list