]> granicus.if.org Git - icinga2/commitdiff
Fix: 'dig_lookup' custom attribute for the 'dig' check command isn't optional
authorGunnar Beutner <gunnar@beutner.name>
Thu, 22 Oct 2015 12:53:11 +0000 (14:53 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 22 Oct 2015 12:53:58 +0000 (14:53 +0200)
fixes #10433

doc/7-icinga-template-library.md
itl/command-plugins.conf

index ffdb14f98f709f835f63ce900330e5baabc340b9..45a088fa334a989accf21161ba4404438cce920c 100644 (file)
@@ -143,7 +143,7 @@ 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_lookup           | **Required.** 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.
index 4ebd338c3d1cae149faeac585ca89c3fa761ba4c..a46580b689b2850af0a85f6b20e51ed9c25e6fec 100644 (file)
@@ -1223,7 +1223,10 @@ object CheckCommand "dig" {
        arguments = {
                "-H" = "$dig_server$"
                "-p" = "$dig_port$"
-               "-l" = "$dig_lookup$"
+               "-l" = {
+                       value = "$dig_lookup$"
+                       required = true
+               }
                "-T" = "$dig_record_type$"
                "-a" = "$dig_expected_address$"
                "-A" = "$dig_arguments$"