Re: [Nagios-devel] 2.0b1 patch to make unreachables fully work, and some commentary
Posted: Tue Jan 04, 2005 7:03 pm
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 [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>
>
Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
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 [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>
>
Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]