Add missing options to check command dig

fixes #10139

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
Lennart Betz 2015-09-12 20:32:57 +02:00 committed by Michael Friedrich
parent c601e691ba
commit 397b151d5e
2 changed files with 16 additions and 0 deletions

View File

@ -130,7 +130,15 @@ Custom attributes passed as [command parameters](3-monitoring-basics.md#command-
Name | Description Name | Description
---------------------|-------------- ---------------------|--------------
dig_server | **Optional.** The DNS server to query. Defaults to "127.0.0.1". 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_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).
## <a id="plugin-check-command-disk"></a> disk ## <a id="plugin-check-command-disk"></a> disk

View File

@ -1217,7 +1217,15 @@ object CheckCommand "dig" {
arguments = { arguments = {
"-H" = "$dig_server$" "-H" = "$dig_server$"
"-p" = "$dig_port$"
"-l" = "$dig_lookup$" "-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$" vars.dig_server = "$check_address$"