From 10d8cacb586fd75c521b453e8b636be08470fbff Mon Sep 17 00:00:00 2001 From: pvdputte Date: Fri, 5 Jul 2024 13:14:02 +0200 Subject: [PATCH] make the default reschedule spread configurable Cfr. https://github.com/sni/Thruk/issues/1328 --- docs/documentation/configuration.asciidoc | 10 ++++++++++ lib/Thruk/Config.pm | 1 + templates/_status_cmd_pane.tt | 16 ++++++++-------- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/docs/documentation/configuration.asciidoc b/docs/documentation/configuration.asciidoc index 053010813..430e2dc83 100644 --- a/docs/documentation/configuration.asciidoc +++ b/docs/documentation/configuration.asciidoc @@ -2141,6 +2141,16 @@ ex.: +=== reschedule_spread +Default spread of rescheduled checks in seconds. Default is none. +Options are 0, 10, 30, 60, 300, 900, 1800, 3600. + +ex.: + + reschedule_spread = 0 + + + === cmd_quick_status Configure which commands should be available as quick status commands. diff --git a/lib/Thruk/Config.pm b/lib/Thruk/Config.pm index 35dc23387..58a59f567 100644 --- a/lib/Thruk/Config.pm +++ b/lib/Thruk/Config.pm @@ -134,6 +134,7 @@ my $base_defaults = { 'use_expire' => 0, 'childoptions' => 0, 'hostserviceoptions' => 0, + 'reschedule_spread' => 0, }, 'command_disabled' => [], 'command_enabled' => [], diff --git a/templates/_status_cmd_pane.tt b/templates/_status_cmd_pane.tt index 522b79089..00a44f778 100644 --- a/templates/_status_cmd_pane.tt +++ b/templates/_status_cmd_pane.tt @@ -175,14 +175,14 @@ Force Check Spread Checks