Skip to content

Commit

Permalink
Fix Icinga2 config for check_clock
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Lorenz Kästle committed Aug 6, 2024
1 parent 65585de commit a2bdf1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/icinga2/CheckCommands.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a2bdf1c

Please sign in to comment.