From 52a6b601d9cc0e78c84d3fb96b0fe2d418633b6d Mon Sep 17 00:00:00 2001 From: Pawel Szafer Date: Mon, 3 Apr 2017 09:51:55 -0700 Subject: [PATCH] ITL: Add support to NRPE v2 in NRPE CheckCommand fixes #5126 Signed-off-by: Michael Friedrich --- doc/10-icinga-template-library.md | 1 + itl/command-plugins.conf | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 03fcc8a5b..91ee91441 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -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. ### nscp diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 56995f877..a807bffdd 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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 }