]> granicus.if.org Git - icinga2/commitdiff
ITL: Add ipv4/ipv6 only to nrpe check command
authorSebastian Chrostek <sebastian@chrostek.net>
Wed, 9 Sep 2015 18:27:14 +0000 (20:27 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 14 Sep 2015 08:13:04 +0000 (10:13 +0200)
fixes #10129

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
doc/7-icinga-template-library.md
itl/command-plugins.conf

index 68437d8b3bceeaf632359151ead0683eb9e695b3..a0f7aa366b95ba101c41ca05bf4c89cccef0d2d0 100644 (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
index 953e84b80f0299104a2e215ed2217dc23c20d079..0066e86b18b1591e2471e98f946aa3d5d61bd511 100644 (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$"