From: Sebastian Chrostek Date: Wed, 9 Sep 2015 18:27:14 +0000 (+0200) Subject: ITL: Add ipv4/ipv6 only to nrpe check command X-Git-Tag: v2.3.11~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f063b8aae51d9828df43240a2a441f65eb96ab0;p=icinga2 ITL: Add ipv4/ipv6 only to nrpe check command fixes #10129 Signed-off-by: Michael Friedrich --- diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 68437d8b3..a0f7aa366 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -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. ## nscp diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 953e84b80..0066e86b1 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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$"