Skip to content

Commit

Permalink
ITL: Add ipv4/ipv6 only to nrpe check command
Browse files Browse the repository at this point in the history
fixes #10129

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
  • Loading branch information
chrostek authored and Michael Friedrich committed Sep 14, 2015
1 parent 85a1372 commit 4f063b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/7-icinga-template-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions itl/command-plugins.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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$"
Expand Down

0 comments on commit 4f063b8

Please sign in to comment.