From 60d516c21e0387b51810acf599163e9b63f7c6e5 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Fri, 28 Jul 2017 18:44:04 +0100 Subject: [PATCH] updated template --- templates/nrpe_cfg.erb | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/templates/nrpe_cfg.erb b/templates/nrpe_cfg.erb index afa46ae..fc48bfe 100644 --- a/templates/nrpe_cfg.erb +++ b/templates/nrpe_cfg.erb @@ -32,34 +32,10 @@ allow_bash_command_substitution=<%= @ne_allow_bash_cmd_subst %> command_prefix=<%= @ne_command_prefix %> <% end -%> +command_timeout=<%= @ne_command_timeout %> +connection_timeout=<%= @ne_connection_timeout %> -# COMMAND TIMEOUT -# This specifies the maximum number of seconds that the NRPE daemon will -# allow plugins to finish executing before killing them off. - -command_timeout=60 - - -# CONNECTION TIMEOUT -# This specifies the maximum number of seconds that the NRPE daemon will -# wait for a connection to be established before exiting. This is sometimes -# seen where a network problem stops the SSL being established even though -# all network sessions are connected. This causes the nrpe daemons to -# accumulate, eating system resources. Do not set this too low. - -connection_timeout=300 - - -# WEAK RANDOM SEED OPTION -# This directive allows you to use SSL even if your system does not have -# a /dev/random or /dev/urandom (on purpose or because the necessary patches -# were not applied). The random number generator will be seeded from a file -# which is either a file pointed to by the environment valiable $RANDFILE -# or $HOME/.rnd. If neither exists, the pseudo random number generator will -# be initialized and a warning will be issued. -# Values: 0=only seed from /dev/[u]random, 1=also seed from weak randomness - -#allow_weak_random_seed=1 +allow_weak_random_seed=<%= @ne_allow_weak_rnd_seed %> # SSL/TLS OPTIONS @@ -189,10 +165,7 @@ command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200 -#command_timeout=<%= @ne_command_timeout %> -#connection_timeout=<%= @ne_connection_timeout %> -#allow_weak_random_seed=<%= @ne_allow_weak_rnd_seed %> #ssl_version=<%= @ne_ssl_version %> #ssl_use_adh=<%= @ne_ssl_use_adh %>