2.0b1 patch to make unreachables fully work, and some commentary

Ethan Galstad nagios at nagios.org
Wed Jan 5 04:03:37 CET 2005


Thanks -

Will be in CVS shortly.


On 4 Jan 2005 at 6:23, Joe Pruett wrote:

> of course i screwed up my patch.  i cleaned things up to post
> (removing extraneous comments) and messed it up.  it should be just a
> plain atoi(val).
> 
> --- xdata/xsddefault.c.orig	2005-01-03 20:14:18.000000000 -0800
> +++ xdata/xsddefault.c	2005-01-04 06:22:38.000000000 -0800
> @@ -638,7 +638,7 @@
>       else if(!strcmp(var,"check_latency"))
>        temp_hoststatus->latency=strtod(val,NULL);
>       else if(!strcmp(var,"current_state"))
> -						temp_hoststatus->status=(atoi(val)>0)?TRUE:FALSE;
> +						temp_hoststatus->status=atoi(val);
>       else if(!strcmp(var,"last_hard_state"))
>        temp_hoststatus->last_hard_state=atoi(val);
>       else if(!strcmp(var,"plugin_output"))
> 
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________ Nagios-devel mailing
> list Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> 
> 



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



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt




More information about the Developers mailing list