################################################################################ ##### nagios.cfg created by Puppet | manual changes will be overwritten ##### ################################################################################ ##### full reference for the original available at ##### ##### https://confdroid.com/2017/07/nagios-nagios-cfg-v-4-3-2/ ##### ################################################################################ log_file=<%= @ng_log_file %> cfg_dir=<%= @ng_conf_d_dir %> object_cache_file=<%= @ng_object_cache_file %> precached_object_file=<%= @ng_precached_obj_file %> resource_file=<%= @ng_resource_file %> status_file=<%= @ng_status_file %> status_update_interval=<%= @ng_status_upd_interval %> nagios_user=<%= @ng_user %> nagios_group=<%= @ng_user %> check_external_commands=<%= @ng_check_ext_commands %> command_file=<%= @ng_command_file %> <% if @ng_enable_query_handler == true -%> query_socket=<%= @ng_query_socket %> <% end -%> lock_file=<%= @ng_lock_file %> temp_file=<%= @ng_temp_file %> temp_path=<%= @ng_temp_path %> event_broker_options=<%= @ng_event_broker_options %> <% unless @ng_event_broker_module.empty? -%> <% @ng_event_broker_module.each do |broker_module| -%> broker_module=<%= broker_module %> <% end end -%> log_rotation_method=<%= @ng_log_rotation_method %> log_archive_path=<%= @ng_log_archive_path %> use_syslog=<%= @ng_use_syslog %> log_notifications=<%= @ng_log_notifications %> log_service_retries=<%= @ng_log_service_retries %> log_host_retries=<%= @ng_log_host_retries %> log_event_handlers=<%= @ng_log_event_handlers %> 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 -%> service_inter_check_delay_method=<%= @ng_svc_int_check_delay %> max_service_check_spread=<%= @ng_max_svc_check_spread %> service_interleave_factor=<%= @ng_svc_interleave_factor %> host_inter_check_delay_method=<%= @ng_host_int_check_delay %> max_host_check_spread=<%= @ng_max_host_check_spread %> max_concurrent_checks=<%= @ng_max_concurrent_checks %> check_result_reaper_frequency=<%= @ng_check_res_reaper_freq %> max_check_result_reaper_time=<%= @ng_max_check_res_reap_time %> 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 %> retain_state_information=<%= @ng_retain_state_inf %> state_retention_file=<%= @ng_state_retention_file %> retention_update_interval=<%= @ng_retention_update_intval %> use_retained_program_state=<%= @ng_use_ret_program_state %> use_retained_scheduling_info=<%= @ng_use_ret_scheduling_info %> retained_host_attribute_mask=<%= @ng_ret_host_attr_mask %> retained_service_attribute_mask=<%= @ng_ret_service_attr_mask %> retained_process_host_attribute_mask=<%= ng_ret_proc_host_attr_mask %> retained_process_service_attribute_mask=<%= @ng_ret_proc_svc_attr_mask %> retained_contact_host_attribute_mask=<%= @ng_ret_contact_h_attr_mask %> retained_contact_service_attribute_mask=<%= @ng_ret_contact_s_attr_mask %> interval_length=<%= @ng_interval_length %> check_for_updates=<%= @ng_check_for_updates %> bare_update_check=<%= @ng_bare_update_check %> use_aggressive_host_checking=<%= @ng_use_aggr_host_checking %> execute_service_checks=<%= @ng_execute_service_checks %> accept_passive_service_checks=<%= @ng_accept_pass_svc_checks %> execute_host_checks=<%= @ng_execute_host_checks %> 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 -%> obsess_over_services=<%= @ng_obsess_over_services %> <% if @ng_obsess_over_services == '1' -%> ocsp_command=<%= @ng_ocsp_command %> <% end -%> obsess_over_hosts=<%= @ng_obsess_over_hosts %> <% if @ng_obsess_over_hosts == '1' -%> ochp_command=<%= @ng_ochp_command %> <% end -%> translate_passive_host_checks=<%= @ng_translate_pass_h_checks %> passive_host_checks_are_soft=<%= @ng_pass_h_checks_are_soft %> check_for_orphaned_services=<%= @ng_check_orphaned_svc %> check_for_orphaned_hosts=<%= @ng_check_orphaned_hosts %> check_service_freshness=<%= @ng_check_service_freshness %> <% if @ng_check_service_freshness == '1' -%> service_freshness_check_interval=<%= @ng_svc_fresh_check_intval %> <% end -%>