From 2843c571eac1e5c177655aa17dc14c408e4cb1f9 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Fri, 28 Jul 2017 18:32:57 +0100 Subject: [PATCH] updated template --- templates/nrpe_cfg.erb | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/templates/nrpe_cfg.erb b/templates/nrpe_cfg.erb index e6e839b..89dad0f 100644 --- a/templates/nrpe_cfg.erb +++ b/templates/nrpe_cfg.erb @@ -6,12 +6,7 @@ ########## https://confdroid.com/2017/07/nrpe-nrpe-cfg/ ########## ################################################################################ - -# LOG FACILITY -# The syslog facility that should be used for logging purposes. - -log_facility=daemon - +log_facility=<%= @ne_log_facility %> # LOG FILE # If a log file is specified in this option, nrpe will write to @@ -19,6 +14,9 @@ log_facility=daemon #log_file=/var/run/nrpe.log +#<% unless @ne_log_file.empty? -%> +#log_file=<%= @ne_log_file %> +#<% end -%> # DEBUGGING OPTION # This option determines whether or not debugging messages are logged to the @@ -296,11 +294,6 @@ command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200 ##################################### -#log_facility=<%= @ne_log_facility %> - -#<% unless @ne_log_file.empty? -%> -#log_file=<%= @ne_log_file %> -#<% end -%> #debug=<%= @ne_debug %>