--Boundary-00=_BOSxD7bUZ/i+pMA
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello,
latest CVS Version segfaults if globally all active checks are disabled. I've
debugged it and found the problem within the changes of the 20. dec 05.
Attached is a patch (tmpevent.patch) that solves the problem (temp_event
structure was not initialised).
Attached too is a patch (maxinput.patch) that increases
MAX_XODTEMPLATE_INPUT_BUFFER to 256k. In our case 65k isn't enough, because
of very large growing servicegroup membership lines.
Outsourcing the information into the service definition, doesn't solve the
problem. In fact it transfers it into the objects.cache and gets the cgis
crashing.
Best regards
Percy Jahn
--Boundary-00=_BOSxD7bUZ/i+pMA
Content-Type: text/x-diff;
charset="us-ascii";
name="tmpevent.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="tmpevent.patch"
--- nagios-cvs/base/events.c_org 2006-01-10 14:38:48.000000000 +0100
+++ nagios-cvs/base/events.c 2006-01-10 14:38:49.000000000 +0100
@@ -995,9 +995,9 @@ int event_execution_loop(void){
/* remove the service check from the event queue and reschedule it for a later time */
/* 12/20/05 since event was not executed, it needs to be remove()'ed to maintain sync with event broker modules */
+ temp_event=event_list_low;
remove_event(temp_event,&event_list_low);
/*
- temp_event=event_list_low;
event_list_low=event_list_low->next;
*/
if(temp_service->state_type==SOFT_STATE && temp_service->current_state!=STATE_OK)
--Boundary-00=_BOSxD7bUZ/i+pMA
Content-Type: text/x-diff;
charset="us-ascii";
name="maxinput.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="maxinput.patch"
--- nagios-cvs/xdata/xodtemplate.h_org 2006-01-10 13:07:23.000000000 +0100
+++ nagios-cvs/xdata/xodtemplate.h 2006-01-10 13:09:39.000000000 +0100
@@ -30,7 +30,7 @@
/*********** GENERAL DEFINITIONS ************/
-#define MAX_XODTEMPLATE_INPUT_BUFFER 65535
+#define MAX_XODTEMPLATE_INPUT_BUFFER 262144
#define MAX_XODTEMPLATE_CONTACT_ADDRESSES 6
--Boundary-00=_BOSxD7bUZ/i+pMA--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]