From 195fae6113b2b58b115a85825ad7be348a4d1f45 Mon Sep 17 00:00:00 2001 From: Napsty Date: Tue, 12 Oct 2021 08:29:07 +0200 Subject: [PATCH] Add ITL config option for different NRPE payload size/length --- doc/10-icinga-template-library.md | 3 ++- itl/command-plugins.conf | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 320d968f5..27c263f60 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -880,7 +880,8 @@ 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. +nrpe_version_2 | **Optional.** Use this if you want to connect using NRPE v2 protocol (needed for NSClient++). Defaults to false. +nrpe_payload_size | **Optional.** Specify non-default payload size for NSClient++. Default is 1024. nrpe_ca | **Optional.** The CA file to use for PKI. Defaults to none. nrpe_cert | **Optional.** The client cert file to use for PKI. Defaults to none. nrpe_key | **Optional.** The client key file to use for PKI. Defaults to none. diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index e3b422f1b..02ae3cb20 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -2321,6 +2321,10 @@ object CheckCommand "nrpe" { set_if = "$nrpe_version_2$" description = "Use this if you want to connect to NRPE v2" } + "-P" = { + value = "$nrpe_payload_size$" + description = "Specify non-default payload size for NSClient++" + } "-A" = { value = "$nrpe_ca$" description = "The CA file to use for PKI"