]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect custom variable name for the -q option for ntp_time.
authorBård Dahlmo-Lerbæk <bard.dahlmo-lerbaek@skatteetaten.no>
Wed, 3 Aug 2016 08:41:51 +0000 (10:41 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 9 Aug 2016 08:43:55 +0000 (10:43 +0200)
fixes #12274

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
doc/7-icinga-template-library.md
itl/command-plugins.conf

index 5d3f8e335cc90497951439f38a05f927fbc9b171..739ec398a8a5241fa1051c617a5e7f62400c81a7 100644 (file)
@@ -772,7 +772,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.** Port number (default: 123).
-ntp_qui       | **Optional.** Returns UNKNOWN instead of CRITICAL if offset cannot be found.
+ntp_quiet       | **Optional.** Returns UNKNOWN instead of CRITICAL if offset cannot be found.
 ntp_warning     | **Optional.** Offset to result in warning status (seconds).
 ntp_critical    | **Optional.** Offset to result in critical status (seconds).
 ntp_timeoffset  | **Optional.** Expected offset of the ntp server relative to local server (seconds).
index a1426d76e0acb469556542b1ea1dc21bbbb806a0..0c041335530dce436d7fd995c3edb10ed4a8d257 100644 (file)
@@ -870,7 +870,10 @@ object CheckCommand "ntp_time" {
        arguments = {
                "-H" = "$ntp_address$"
                "-p" = "$ntp_port$"
-               "-q" = "$ntp_quit$"
+               "-q" = {
+                       set_if = "$ntp_quiet$"
+                       description = "Returns UNKNOWN instead of CRITICAL if offset cannot be found"
+               }
                "-w" = "$ntp_warning$"
                "-c" = "$ntp_critical$"
                "-o" = "$ntp_timeoffset$"