[Nagios-devel] display scheduling info

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] display scheduling info

Post by Guest »

This is a multi-part message in MIME format.
--------------050906060706030808010608
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

the minimum concurrent checks method 1 looks like it would divide by 0
even if scheduling_info.service_inter_check_delay is 0.
diff attached.

--------------050906060706030808010608
Content-Type: text/plain;
name="diff1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="diff1"

--- events.c 2008-12-08 19:30:27.000000000 +0200
+++ /tmp/events.c 2009-05-30 23:00:03.000000000 +0200
@@ -715,7 +715,8 @@
/* first method (old) - assume a 100% (2x) service check burst for max concurrent checks */
if(scheduling_info.service_inter_check_delay==0.0)
minimum_concurrent_checks1=ceil(check_reaper_interval*2.0);
- minimum_concurrent_checks1=ceil((check_reaper_interval*2.0)/scheduling_info.service_inter_check_delay);
+ else
+ minimum_concurrent_checks1=ceil((check_reaper_interval*2.0)/scheduling_info.service_inter_check_delay);

/* second method (new) - assume a 25% (1.25x) service check burst for max concurrent checks */
minimum_concurrent_checks2=ceil((((double)scheduling_info.total_scheduled_services)/scheduling_info.average_service_check_interval) * 1.25 * check_reaper_interval * scheduling_info.average_service_execution_time);

--------------050906060706030808010608--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked