nagios 1.1 bug xrddefault_read_state_information

Dietmar Ruzicka druzicka at cube1.cubit.at
Thu Jul 3 17:07:21 CEST 2003


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




More information about the Developers mailing list