From 702e3da7c61eadabc4e0cf1d72ababbe81f69557 Mon Sep 17 00:00:00 2001 From: Randy Fay Date: Tue, 18 Mar 2014 15:55:28 -0600 Subject: [PATCH] Use @ where required in nrpe.cfg.erb --- templates/nrpe.cfg.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/nrpe.cfg.erb b/templates/nrpe.cfg.erb index 696228d..08c90e8 100644 --- a/templates/nrpe.cfg.erb +++ b/templates/nrpe.cfg.erb @@ -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 @@ -29,7 +29,7 @@ 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. @@ -37,7 +37,7 @@ nrpe_user=<%= user %> # # 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 @@ -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 @@ -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