From 806d6e4deca8661c889f96918196ff164abed928 Mon Sep 17 00:00:00 2001 From: Lennart Betz Date: Mon, 6 Jul 2015 13:30:43 +0200 Subject: [PATCH] ITL: Add missing options to 'ntp_time' CheckCommand fixes #9562 Signed-off-by: Michael Friedrich --- doc/7-icinga-template-library.md | 6 ++++++ itl/command-plugins.conf | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 2e4c8ed15..61d1a056e 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -498,6 +498,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 84ce6484b..10f53199b 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$" -- 2.40.0