mirror of https://github.com/Icinga/icinga2.git
Fix: 'dig_lookup' custom attribute for the 'dig' check command isn't optional
fixes #10433
This commit is contained in:
parent
d516d16c9a
commit
4cf4ffe893
|
@ -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.
|
||||
|
|
|
@ -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$"
|
||||
|
|
Loading…
Reference in New Issue