Files
confdroid_nagios/templates/nagios/nagios_cfg.erb
2017-07-25 15:11:16 +01:00

63 lines
2.2 KiB
Plaintext

################################################################################
##### 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 -%>