action_url issues

Mathieu Gagné mgagne at iweb.com
Thu Jun 19 21:03:09 CEST 2008


Nagios User wrote:
> Hugo,
> Thanks for checking into this. I rolled back to version 3.0.1 and
> everything is working fine. For some reason the new code is reading
> the slashes on urls differently. See the lines on URL to Acknowledge.

A bugfix has been applied in Nagios 3.0.2. In fact, the behavior in 
Nagios 3.0.1 was the wrong one I guess.

Some "clean_options" for *_url are defined in ./common/macros on lines: 
485, 1846,  1919, 2157 and 2235

To revert to the old behavior, those "clean_options" should be removed 
and/or tweaked.

Mathieu

----------------------------------------------------------------

--- nagios-3.0.1/common/macros.c        2008-03-10 18:35:30.000000000 -0400
+++ nagios-3.0.2/common/macros.c        2008-05-19 14:01:58.000000000 -0400
@@ -206,7 +206,7 @@
  #endif

                                 /* include any cleaning options passed 
back to us */
-                               macro_options=(options & clean_options);
+                               macro_options=(options | clean_options);

  #ifdef NSCORE
                                 log_debug_info(DEBUGL_MACROS,2," 
Cleaning options: global=%d, local=%d, 
effective=%d\n",options,clean_options,macro_options);

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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