]> granicus.if.org Git - icinga2/commitdiff
Add missing options to check command dig
authorLennart Betz <lennart.betz@netways.de>
Sat, 12 Sep 2015 18:32:57 +0000 (20:32 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 14 Sep 2015 08:14:41 +0000 (10:14 +0200)
fixes #10139

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
doc/7-icinga-template-library.md
itl/command-plugins.conf

index 348817c5c5f83863d6257941ca6a6016050e2c22..5e4f47b77752cc9506c7d6496eaf1041295785ae 100644 (file)
@@ -130,7 +130,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).
 
 
 ## <a id="plugin-check-command-disk"></a> disk
index 220198b57863595a00d0cfcbb399ca699c6cbb7e..508793194df9ecaab25024851649da8fa4ceb814 100644 (file)
@@ -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$"