ITL: Add support to NRPE v2 in NRPE CheckCommand

fixes #5126

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
Pawel Szafer 2017-04-03 09:51:55 -07:00 committed by Michael Friedrich
parent 98256ca0c7
commit 52a6b601d9
2 changed files with 6 additions and 1 deletions

View File

@ -816,6 +816,7 @@ 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 connection. Defaults to false.
nrpe_ipv6 | **Optional.** Use IPv6 connection. Defaults to false.
nrpe_version_2 | **Optional.** Use this if you want to connect using NRPE v2 protocol. Defaults to false.
### <a id="plugin-check-command-nscp"></a> nscp

View File

@ -1755,6 +1755,10 @@ object CheckCommand "nrpe" {
set_if = "$nrpe_ipv6$"
description = "Use IPv6 connection"
}
"-2" = {
set_if = "$nrpe_version_2$"
description = "Use this if you want to connect to NRPE v2"
}
}
vars.nrpe_address = "$check_address$"
@ -1762,7 +1766,7 @@ object CheckCommand "nrpe" {
vars.nrpe_timeout_unknown = false
vars.check_ipv4 = "$nrpe_ipv4$"
vars.check_ipv6 = "$nrpe_ipv6$"
vars.nrpe_version_2 = false
timeout = 5m
}