ITL: Add missing options to 'ntp_time' CheckCommand

fixes #9562

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
Lennart Betz 2015-07-06 13:30:43 +02:00 committed by Michael Friedrich
parent 1a06333b86
commit 0ab467c6b2
2 changed files with 12 additions and 0 deletions

View 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

View 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$"