From f853a7b923a54d33070e2c25ea8d91e34b4d93d9 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Tue, 25 Jul 2017 15:11:16 +0100 Subject: [PATCH] template syntax --- templates/nagios/nagios_cfg.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/nagios/nagios_cfg.erb b/templates/nagios/nagios_cfg.erb index ef2e061..3bd9c08 100644 --- a/templates/nagios/nagios_cfg.erb +++ b/templates/nagios/nagios_cfg.erb @@ -51,3 +51,12 @@ log_initial_states=<%= @ng_log_initial_states %> log_current_states=<%= @ng_log_current_states %> log_external_commands=<%= @ng_log_external_commands %> log_passive_checks=<%= @ng_log_passive_checks %> + +<% unless @ng_glob_host_evt_handler.empty? -%> +<% @ng_glob_host_evt_handler.each do |global_host_event_handler| -%> +global_host_event_handler=<%= @ng_glob_host_evt_handler %> +<% end end -%> +<% unless @ng_glob_svc_evt_handler.empty? -%> +<% @ng_glob_svc_evt_handler.each do |global_service_event_handler| -%> +global_service_event_handler=<%= @ng_glob_svc_evt_handler %> +<% end end -%>