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:
Sebastian Chrostek 2015-09-09 20:27:14 +02:00 committed by Michael Friedrich
parent 85a1372b8a
commit 4f063b8aae
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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$"