nagios 3.0b3 using macros in notes

Ethan Galstad nagios at nagios.org
Tue Sep 11 18:24:32 CEST 2007


Thanks for the note.  After cleaning up some of the macro code, I've 
added support for some macros to the $xNOTES$ macros in the CGIs.  Full 
support for all macros in the CGIs should be added before Nagios 3 is 
released as stable.


Søren Klintrup wrote:
> Salutations list,
> 
> Using macros in notes does not seem to work in nagios 3.0b3 at the 
> moment, it just prints whatever you type (does not expand the macro), 
> works fine for  notes_url and action_url.
> 
> example (host qwerty address 127.0.0.1)
> notes $HOSTNAME$ has address $HOSTADDRESS$
> 
> should output :
> qwerty has address 127.0.0.1
> 
> but outputs
> $HOSTNAME$ has address $HOSTADDRESS$
> 
> I have spottet this on extinfo.cgi, which is the only cgi that uses this 
> macro, I havn't tested it by using $HOSTNOTES$ or $SERVICENOTES$ in 
> other places - might just be a bug on the extinfo.cgi page.
> 


-- 


Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list