mirror of https://github.com/Icinga/icinga2.git
ITL: Add ipv4/ipv6 only to nrpe check command
fixes #10129 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
85a1372b8a
commit
4f063b8aae
|
@ -492,6 +492,8 @@ nrpe_no_ssl | **Optional.** Whether to disable SSL or not. Defaults to `fals
|
|||
nrpe_timeout_unknown | **Optional.** Whether to set timeouts to unknown instead of critical state. Defaults to `false`.
|
||||
nrpe_timeout | **Optional.** The timeout in seconds.
|
||||
nrpe_arguments | **Optional.** Arguments that should be passed to the command. Multiple arguments must be defined as array.
|
||||
nrpe_ipv4 | **Optional.** Use IPv4 only.
|
||||
nrpe_ipv6 | **Optional.** Use IPv6 only.
|
||||
|
||||
|
||||
## <a id="plugin-check-command-nscp"></a> nscp
|
||||
|
|
|
@ -1351,6 +1351,14 @@ object CheckCommand "nrpe" {
|
|||
repeat_key = false
|
||||
order = 1
|
||||
}
|
||||
"-4" = {
|
||||
set_if = "$nrpe_ipv4$"
|
||||
description = "Use ipv4 only"
|
||||
}
|
||||
"-6" = {
|
||||
set_if = "$nrpe_ipv6$"
|
||||
description = "Use ipv6 only"
|
||||
}
|
||||
}
|
||||
|
||||
vars.nrpe_address = "$check_address$"
|
||||
|
|
Loading…
Reference in New Issue