nagios 1.1 bug xrddefault_read_state_information

Ethan Galstad nagios at nagios.org
Fri Jul 4 01:48:50 CEST 2003


Thanks!  I'll get this into CVS.

On 3 Jul 2003 at 17:07, Dietmar Ruzicka wrote:

> hi,
> 
> there is a bug in nagios 1.1. 
> the service state information is written with the order:
> 
> host_name,..,checks_enabled,accept_passive_checks,event_handler_enabled,..,plugin_output
> 
> but is readed with the order:
> 
> host_name,..,checks_enabled,event_handler_enabled,accept_passive_checks,..,plugin_output
> 
> [root at gdlx03 /root]# diff -u3 nagios-1.1/xdata/xrddefault.c
> nagios-1.1-patched/xdata/xrddefault.c
> --- nagios-1.1/xdata/xrddefault.c       Fri Mar 15 04:01:48 2002
> +++ nagios-1.1-patched/xdata/xrddefault.c       Thu Jul  3 15:52:34 2003
> @@ -547,12 +547,12 @@
>                         temp_ptr=strtok(NULL,";");
>                         if(temp_ptr==NULL)
>                                 continue;
> -                       event_handler_enabled=atoi(temp_ptr);
> +                       accept_passive_checks=atoi(temp_ptr);
>   
>                         temp_ptr=strtok(NULL,";");
>                         if(temp_ptr==NULL)
>                                 continue;
> -                       accept_passive_checks=atoi(temp_ptr);
> +                       event_handler_enabled=atoi(temp_ptr);
>   
>                         temp_ptr=strtok(NULL,";");
>                         if(temp_ptr==NULL)
> [root at gdlx03 /root]#
> 
> regards
> 
> Dietmar
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> 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



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01




More information about the Developers mailing list