From e17facfd57b04b844b0ab43be1a8924f6962fefe Mon Sep 17 00:00:00 2001 From: Lennart Betz Date: Sat, 12 Sep 2015 20:32:57 +0200 Subject: [PATCH] Add missing options to check command dig fixes #10139 Signed-off-by: Michael Friedrich --- doc/7-icinga-template-library.md | 8 ++++++++ itl/command-plugins.conf | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index f7c9b9aae..682da290d 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -142,7 +142,15 @@ Custom attributes passed as [command parameters](3-monitoring-basics.md#command- Name | Description ---------------------|-------------- dig_server | **Optional.** The DNS server to query. Defaults to "127.0.0.1". +dig_port | **Optional.** Port number (default: 53). dig_lookup | **Optional.** The address that should be looked up. +dig_record_type | **Optional.** Record type to lookup (default: A). +dig_expected_address | **Optional.** An address expected to be in the answer section. If not set, uses whatever was in -l. +dig_arguments | **Optional.** Pass STRING as argument(s) to dig. +dig_retries | **Optional.** Number of retries passed to dig, timeout is divided by this value (Default: 3). +dig_warning | **Optional.** Response time to result in warning status (seconds). +dig_critical | **Optional.** Response time to result in critical status (seconds). +dig_timeout | **Optional.** Seconds before connection times out (default: 10). ## disk diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index d81c642ea..78fbe04dc 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -1217,7 +1217,15 @@ object CheckCommand "dig" { arguments = { "-H" = "$dig_server$" + "-p" = "$dig_port$" "-l" = "$dig_lookup$" + "-T" = "$dig_record_type$" + "-a" = "$dig_expected_address$" + "-A" = "$dig_arguments$" + "-r" = "$dig_retries$" + "-w" = "$dig_warning$" + "-c" = "$dig_critical$" + "-t" = "$dig_timeout$" } vars.dig_server = "$check_address$"