From a2bdf1c825eb26ff862034ba1e19ff90156abff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= Date: Tue, 6 Aug 2024 17:20:20 +0200 Subject: [PATCH] Fix Icinga2 config for check_clock Previously the time reference value was evaluated only during the startup of Icinga 2 and therefore a fixed point in time. This change makes it a function which gets evaluated every time the check is executed. --- contrib/icinga2/CheckCommands.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/icinga2/CheckCommands.conf b/contrib/icinga2/CheckCommands.conf index 8902895a..f3209d20 100644 --- a/contrib/icinga2/CheckCommands.conf +++ b/contrib/icinga2/CheckCommands.conf @@ -23,7 +23,7 @@ object CheckCommand "madrisan-clock" { arguments += { "-r" = { description = "the clock reference (in seconds since the Epoch)" - value = DateTime().format("%s") + value = {{ DateTime().format("%s") }} } "-w" = { description = "Warning threshold"