]> granicus.if.org Git - icinga2/commitdiff
ITL: Add "-q" parameter to ntp_peer CheckCommand 5678/head
authorDirk Melchers <dirk@dirk-melchers.de>
Mon, 16 Oct 2017 11:59:18 +0000 (13:59 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 2 Nov 2017 14:31:36 +0000 (15:31 +0100)
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
doc/10-icinga-template-library.md
itl/command-plugins.conf

index ad315e2d33be2b7e89809b6f5ca448cfa4ea328c..17bb38b7151d4b9ff22578067717f6828c8ec58a 100644 (file)
@@ -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.
index 2f5823e15eb4a489b84326d258439caf27df2725..f4c01134c7ebb4fa1a9626a5442a6fe6fc85ab75 100644 (file)
@@ -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)"