On demand macros with empty host name not working since 3.0b7

Ethan Galstad nagios at nagios.org
Sun Feb 10 20:26:46 CET 2008


Matthias Eble wrote:
> Hi list,
> 
> when testing around with nagios 3.0 I recognized that support for empty 
> host names in on demand macros was broken somewhere between b6 and b7.
> 
> The problem is located in common/macros.c line 842:
> /* if first arg is blank, it means use the current host name */
> if(arg1==NULL){
> 
> But arg1 isn't a null pointer in this case. Changing the line to
> if(*arg1=='\x0'){
> 
> brings back expected behaviour.
> It'd be great to see this fixed in next rc/stable
> 
> Matthias
> 

Thanks Matthias - patch will be in CVS shortly.



Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web:   www.nagios.org

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




More information about the Developers mailing list