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@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@gdlx03 /root]#
regards
Dietmar
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]