Skip to content

Commit

Permalink
Merge pull request #2 from rfay/20140318_@_in_template
Browse files Browse the repository at this point in the history
Use @ where required in nrpe.cfg.erb
  • Loading branch information
Pete Brown committed Mar 18, 2014
2 parents 47ce204 + 702e3da commit eba9574
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/nrpe.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
# number. The file is only written if the NRPE daemon is started by the root
# user and is running in standalone mode.

pid_file=<%= pid_file %>
pid_file=<%= @pid_file %>

# PORT NUMBER
# Port number we should wait for connections on.
# NOTE: This must be a non-priviledged port (i.e. > 1024).
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

server_port=<%= port %>
server_port=<%= @port %>

# SERVER ADDRESS
# Address that nrpe should bind to in case there are more than one interface
Expand All @@ -29,15 +29,15 @@ server_port=<%= port %>
#
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

nrpe_user=<%= user %>
nrpe_user=<%= @user %>

# NRPE GROUP
# This determines the effective group that the NRPE daemon should run as.
# You can either supply a group name or a GID.
#
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

nrpe_group=<%= group %>
nrpe_group=<%= @group %>

# ALLOWED HOST ADDRESSES
# This is an optional comma-delimited list of IP address or hostnames
Expand All @@ -50,7 +50,7 @@ nrpe_group=<%= group %>
#
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

allowed_hosts=127.0.0.1,<%= nagios_ips %>
allowed_hosts=127.0.0.1,<%= @nagios_ips %>

# COMMAND ARGUMENT PROCESSING
# This option determines whether or not the NRPE daemon will allow clients
Expand Down Expand Up @@ -96,7 +96,7 @@ debug=0
# This specifies the maximum number of seconds that the NRPE daemon will
# allow plugins to finish executing before killing them off.

command_timeout=<%= command_timeout %>
command_timeout=<%= @command_timeout %>

# CONNECTION TIMEOUT
# This specifies the maximum number of seconds that the NRPE daemon will
Expand Down

0 comments on commit eba9574

Please sign in to comment.