--Boundary-00=_8tlJDDCPYUCkEuK
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello,
attached is a little patch againts events.c which fixes a bug, if nagios is
started with active service checks globally deactivated. Nagios will schedule
events endlessly until active service checks become activated. At this time
service_check->next_check gets increased till overflow (very bad if retain
scheduling_info is activated).
Hope this is the right place to fix this problem.
Best regards
Percy Jahn
--Boundary-00=_8tlJDDCPYUCkEuK
Content-Type: text/x-diff;
charset="us-ascii";
name="runtime.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="runtime.patch"
--- base/events_org.c 2005-09-06 12:21:58.000000000 +0200
+++ Base/events.c 2005-09-06 12:24:30.000000000 +0200
@@ -988,6 +988,7 @@
temp_service->next_check=(time_t)(temp_service->next_check+(temp_service->retry_interval*interval_length));
else
temp_service->next_check=(time_t)(temp_service->next_check+(temp_service->check_interval*interval_length));
+ temp_event->run_time = temp_service->next_check;
reschedule_event(temp_event,&event_list_low);
update_service_status(temp_service,FALSE);
--Boundary-00=_8tlJDDCPYUCkEuK--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]