]> granicus.if.org Git - icinga2/commitdiff
ITL: Add missing options to 'ntp_time' CheckCommand
authorLennart Betz <lennart.betz@netways.de>
Mon, 6 Jul 2015 11:30:43 +0000 (13:30 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 6 Jul 2015 15:12:04 +0000 (17:12 +0200)
fixes #9562

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
doc/7-icinga-template-library.md
itl/command-plugins.conf

index 11b48e40c430e086268561bfdfe9e85f661d772d..17b5ac0b7a026014ba045489414b3c25e718057e 100644 (file)
@@ -532,6 +532,12 @@ Custom attributes passed as [command parameters](3-monitoring-basics.md#command-
 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_quit        | **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).
+ntp_timeout     | **Optional.** Seconds before connection times out (default: 10).
 
 
 ## <a id="plugin-check-command-ntp-peer"></a> ntp_peer
index 56c717efe07db04740d4715efa0dc04e67e0ea89..51f0987097416b1686743b5cd64fa28c2fe6c8f0 100644 (file)
@@ -599,6 +599,12 @@ object CheckCommand "ntp_time" {
 
        arguments = {
                "-H" = "$ntp_address$"
+               "-p" = "$ntp_port$"
+               "-q" = "$ntp_quit$"
+               "-w" = "$ntp_warning$"
+               "-c" = "$ntp_critical$"
+               "-o" = "$ntp_timeoffset$"
+               "-t" = "$ntp_timeout$"
        }
 
        vars.ntp_address = "$check_address$"