Fix incorrect custom variable name for the -q option for ntp_time.

fixes #12274

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
This commit is contained in:
Bård Dahlmo-Lerbæk 2016-08-03 10:41:51 +02:00 committed by Gunnar Beutner
parent ff293661fc
commit 39890c00c0
2 changed files with 5 additions and 2 deletions

View 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_quit | **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).

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