mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Merge pull request #5678 from Tuxdiver/Tuxdiver-patch-ntp_peer
Added missing "-q" parameter to check_ntp_peer
This commit is contained in:
commit
b439a45299
@ -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_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_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_warning | **Optional.** Offset to result in warning status (seconds).
|
||||||
ntp_critical | **Optional.** Offset to result in critical status (seconds).
|
ntp_critical | **Optional.** Offset to result in critical status (seconds).
|
||||||
ntp_wstratum | **Optional.** Warning threshold for stratum of server's synchronization peer.
|
ntp_wstratum | **Optional.** Warning threshold for stratum of server's synchronization peer.
|
||||||
|
@ -1291,6 +1291,10 @@ object CheckCommand "ntp_peer" {
|
|||||||
value = "$ntp_port$"
|
value = "$ntp_port$"
|
||||||
description = "Port number (default: 123)"
|
description = "Port number (default: 123)"
|
||||||
}
|
}
|
||||||
|
"-q" = {
|
||||||
|
set_if = "$ntp_quiet$"
|
||||||
|
description = "Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized"
|
||||||
|
}
|
||||||
"-w" = {
|
"-w" = {
|
||||||
value = "$ntp_warning$"
|
value = "$ntp_warning$"
|
||||||
description = "Offset to result in warning status (seconds)"
|
description = "Offset to result in warning status (seconds)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user