From: Dirk Melchers Date: Mon, 16 Oct 2017 11:59:18 +0000 (+0200) Subject: ITL: Add "-q" parameter to ntp_peer CheckCommand X-Git-Tag: v2.8.0~22^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=324940d8b4410cc816e86bccb900f8baa9fa39fc;p=icinga2 ITL: Add "-q" parameter to ntp_peer CheckCommand Signed-off-by: Michael Friedrich --- diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index ad315e2d3..17bb38b71 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -897,6 +897,7 @@ Name | Description ----------------|-------------- ntp_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise. ntp_port | **Optional.** The port to use. Default to 123. +ntp_quiet | **Optional.** Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized. ntp_warning | **Optional.** Offset to result in warning status (seconds). ntp_critical | **Optional.** Offset to result in critical status (seconds). ntp_wstratum | **Optional.** Warning threshold for stratum of server's synchronization peer. diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 2f5823e15..f4c01134c 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -1291,6 +1291,10 @@ object CheckCommand "ntp_peer" { value = "$ntp_port$" description = "Port number (default: 123)" } + "-q" = { + set_if = "$ntp_quiet$" + description = "Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized" + } "-w" = { value = "$ntp_warning$" description = "Offset to result in warning status (seconds)"