From a902f3441b0341f2258efa2fe12f857e7849c10a Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Tue, 25 Jul 2017 15:15:07 +0100 Subject: [PATCH] template syntax --- README.md | 1 + templates/nagios/nagios_cfg.erb | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/README.md b/README.md index 12c5a67..0332d36 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ by Default, Nagios creates its own nagios.conf file, which is not a vhost file a * `--no-class_inherits_from_params_class-check`:relavant only to non-supported outdated puppet versions * `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters. * `--no-80chars-check`: it is not always possible to stay within 80 characters, although typically only occurring on the parameter vault `params.pp`. + * `--no-140chars-check`: it is not always possible to stay within 140 characters, although typically only occurring on the parameter vault `params.pp`. * `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class. * Puppet Parser * ERB Template Parser diff --git a/templates/nagios/nagios_cfg.erb b/templates/nagios/nagios_cfg.erb index 2241245..85c6261 100644 --- a/templates/nagios/nagios_cfg.erb +++ b/templates/nagios/nagios_cfg.erb @@ -76,3 +76,21 @@ check_result_path=<%= @ng_check_result_path %> max_check_result_file_age=<%= @ng_max_check_res_file_age %> cached_host_check_horizon=<%= @ng_cached_h_check_horizon %> cached_service_check_horizon=<%= @ng_cached_s_check_horizon %> + +enable_predictive_host_dependency_checks=<%= @ng_pred_host_dep_checks %> +enable_predictive_service_dependency_checks=<%= @ng_pred_svc_dep_checks %> + +soft_state_dependencies=<%= @ng_soft_state_dependencies %> + +time_change_threshold=<%= @ng_time_change_threshold %> + +auto_reschedule_checks=<%= @ng_auto_reschedule_checks %> +auto_rescheduling_interval=<%= @ng_auto_reschedule_intval %> +auto_rescheduling_window=<%= @ng_auto_reschedule_window %> + +service_check_timeout=<%= @ng_service_check_timeout %> +host_check_timeout=<%= @ng_host_check_timeout %> +event_handler_timeout=<%= @ng_event_handler_timeout %> +notification_timeout=<%= @ng_notification_timeout %> +ocsp_timeout=<%= @ng_ocsp_timeout %> +perfdata_timeout=<%= @ng_perfdata_timeout %>