diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 11b48e40c..17b5ac0b7 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -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). ## ntp_peer diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 56c717efe..51f098709 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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$"