mirror of https://github.com/Icinga/icinga2.git
ITL: Add missing options to 'ntp_time' CheckCommand
fixes #9562 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
3cf3a72ed0
commit
806d6e4dec
|
@ -498,6 +498,12 @@ Custom attributes passed as [command parameters](3-monitoring-basics.md#command-
|
||||||
Name | Description
|
Name | Description
|
||||||
----------------|--------------
|
----------------|--------------
|
||||||
ntp_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
|
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
|
## <a id="plugin-check-command-ntp-peer"></a> ntp_peer
|
||||||
|
|
|
@ -599,6 +599,12 @@ object CheckCommand "ntp_time" {
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
"-H" = "$ntp_address$"
|
"-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$"
|
vars.ntp_address = "$check_address$"
|
||||||
|
|
Loading…
Reference in New Issue