From dcdefa4e3714c79ff0755bc15b4554f14212a2c4 Mon Sep 17 00:00:00 2001 From: nemo Date: Sat, 29 Jun 2019 12:24:47 +0200 Subject: [PATCH] Add localhost IPv6 for nrpe allow param --- recipes/recipe_check_nrpe_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/recipe_check_nrpe_config.sh b/recipes/recipe_check_nrpe_config.sh index 52a93f3..3d11c5d 100755 --- a/recipes/recipe_check_nrpe_config.sh +++ b/recipes/recipe_check_nrpe_config.sh @@ -13,7 +13,7 @@ then else # allowed_hosts - check_value_in_conf_file "NRPE" "${conf_file_to_test}" "allowed_hosts" "127.0.0.1,[[:space:]]*${IPV4_ADMIN_NETWORK}0/24,[[:space:]]*${IPV6_ADMIN_NETWORK}:/64" + check_value_in_conf_file "NRPE" "${conf_file_to_test}" "allowed_hosts" "127.0.0.1,[[:space:]]*::1,[[:space:]]*${IPV4_ADMIN_NETWORK}0/24,[[:space:]]*${IPV6_ADMIN_NETWORK}:/64" case ${?} in 0) # OK, nothing to do