summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/nrpe/nrpe.cfg7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/nrpe/nrpe.cfg b/templates/nrpe/nrpe.cfg
index b31e5f9..b666e42 100644
--- a/templates/nrpe/nrpe.cfg
+++ b/templates/nrpe/nrpe.cfg
@@ -34,8 +34,11 @@ server_port=5666
# and you do not want nrpe to bind on all interfaces.
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
-#server_address=192.168.1.1
-
+<%- if has_variable?("nagios_nrpe_server_address") then %>
+<%- if not nagios_nrpe_server_address.to_s.empty? then %>
+server_address=<%= nagios_nrpe_server_address %>
+<%- end %>
+<%- end %>
# NRPE USER