diff --git a/templates/nagios/nagios_cfg.erb b/templates/nagios/nagios_cfg.erb index 35200d5..edb95ac 100644 --- a/templates/nagios/nagios_cfg.erb +++ b/templates/nagios/nagios_cfg.erb @@ -120,3 +120,20 @@ accept_passive_host_checks=<%= @ng_accept_pass_host_checks %> enable_notifications=<%= @ng_enable_notifications %> enable_event_handlers=<%= ng_enable_event_handlers %> process_performance_data=<%= @ng_process_perf_data %> + +<% if @ng_process_perf_data == '1' -%> +host_perfdata_command=<%= @ng_host_perfdata_command %> +service_perfdata_command=<%= @ng_svc_perfdata_command %> +host_perfdata_file=<%= @ng_host_perfdata_file %> +service_perfdata_file=<%= @ng_service_perfdata_file %> +host_perfdata_file_template=<%= @ng_host_perfdata_template %> +service_perfdata_file_template=ng_svc_perfdata_template +host_perfdata_file_mode=<%= @ng_host_perfdata_file_mode %> +service_perfdata_file_mode=<%= @ng_svc_perfdata_file_mode %> +host_perfdata_file_processing_interval=<%= @ng_h_perfdata_proc_intval %> +service_perfdata_file_processing_interval=<%= @ng_s_perfdata_proc_intval %> +host_perfdata_file_processing_command=<%= @ng_h_perfdata_proc_cmd %> +service_perfdata_file_processing_command=<%= @ng_s_perfdata_proc_cmd %> +host_perfdata_process_empty_results=<%= @ng_h_perfdata_proc_e_res %> +service_perfdata_process_empty_results=<%= @ng_s_perfdata_proc_e_res %> +<% end -%>