diff options
author | Gabriel Filion <gabriel@koumbit.org> | 2011-02-15 19:11:50 -0500 |
---|---|---|
committer | Gabriel Filion <lelutin@gmail.com> | 2012-04-10 00:09:15 -0400 |
commit | dddff2316ee0ce0dab3540538de44a3829cc5c07 (patch) | |
tree | e8825fd1f4a8c7f3f6a7d02f70ab40a3feaf8b02 /templates | |
parent | 7d9843fae4c939670f005661d5867578d0a0827e (diff) |
nrpe.cfg: enable setting server_address
By default, nrpe listens on every interfaces on the server. This is
undesirable on Linux VServer hosts, since it will conflict with
vservers.
With a new variable, $nagios_nrpe_server_address, it is now possible to
set the ip address on which the nrpe server will listen.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/nrpe/nrpe.cfg | 7 |
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 |