From 259493f6a6671a6eee7dfbd11147d7887e5a01bb Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Sun, 8 Mar 2026 14:50:21 +0100 Subject: [PATCH] OP#436 fix error 500 --- templates/nagios/cgi_cfg.erb | 99 ------------------------------------ 1 file changed, 99 deletions(-) diff --git a/templates/nagios/cgi_cfg.erb b/templates/nagios/cgi_cfg.erb index 29ae0f4..99caea4 100644 --- a/templates/nagios/cgi_cfg.erb +++ b/templates/nagios/cgi_cfg.erb @@ -16,105 +16,6 @@ use_pending_states=<%= @ng_pending_states %> use_authentication=<%= @ng_use_auth %> use_ssl_authentication=<%= @ng_use_ssl_auth %> -<% if @ng_enable_def_user == true -%> -default_user_name=<%= @ng_def_user_name %> -<% else -%> -#default_user_name=guest -<% end -%> - -authorized_for_system_information=<%= @ng_main_user %>,<%= @ng_sysinfo_auth %> -authorized_for_configuration_information=<%= @ng_main_user %>,<%= @ng_confinfo_auth %> -authorized_for_system_commands=<%= @ng_main_user %>,<%= @ng_command_auth %> -authorized_for_all_services=<%= @ng_main_user %>,<%= @ng_serviceview_auth %> -authorized_for_all_hosts=<%= @ng_main_user %>,<%= @ng_hostview_auth %> -authorized_for_all_service_commands=<%= @ng_main_user %>,<%= @ng_svc_cmd_auth %> -authorized_for_all_host_commands=<%= @ng_main_user %>,<%= @ng_host_cmd_auth %> - -<% unless @ng_readonly_auth.empty? -%> -authorized_for_read_only=<%= @ng_readonly_auth %> -<% end -%> -<% unless @ng_statusmap_img.empty? -%> -statusmap_background_image=<%= @ng_statusmap_img %> -<% end -%> - -<% if @ng_use_colormap == true -%> -color_transparency_index_r=<%= @ng_colormap_red %> -color_transparency_index_g=<%= @ng_colormap_green %> -color_transparency_index_b=<%= @ng_colormap_blue %> -<% else -%> -#color_transparency_index_r=255 -#color_transparency_index_g=255 -#color_transparency_index_b=255 -<% end -%> - -default_statusmap_layout=<%= @ng_statusmap_layout%> -default_statuswrl_layout=<%= @ng_wrl_layout %> - -#<% if @ng_incl_own_wrl == true -%> -#statuswrl_include=<%= @ng_statuswrl_incl %> -#<% else -%> -#statuswrl_include=myworld.wrl -#<% end -%> - -ping_syntax=<%= @ng_ping_syntax %> -refresh_rate=<%= @ng_refresh_rate %> -enable_page_tour=<%= @ng_enable_page_tour %> -result_limit=<%= @ng_result_limit %> -escape_html_tags=<%= @ng_escape_html_tags %> - -<% if @ng_use_sound == true -%> -host_unreachable_sound=<%= @ng_host_unreachable %> -host_down_sound=<%= @ng_host_down %> -service_critical_sound=<%= @ng_svc_critical %> -service_warning_sound=<%= @ng_svc_warn %> -service_unknown_sound=<%= @ng_svc_unknown %> -normal_sound=<%= @ng_normal_sound %> -<% else -%> -#host_unreachable_sound=hostdown.wav -#host_down_sound=hostdown.wav -#service_critical_sound=critical.wav -#service_warning_sound=warning.wav -#service_unknown_sound=warning.wav -#normal_sound=noproblem.wav -<% end -%> - -action_url_target=<%= @ng_action_url_target %> -notes_url_target=<%= @ng_notes_url_target %> - -lock_author_names=<%= @ng_lock_author_names %> - -<% if @ng_enable_splunk -%> -enable_splunk_integration=1 -splunk_url=<%= @ng_splunk_url %> -<% else -%> -enable_splunk_integration=0 -#splunk_url=http://127.0.0.1:8000/ -<% end -%> - -navbar_search_for_addresses=<%= @ng_navbar_addresses %> -navbar_search_for_aliases=<%= @ng_navbar_aliases %> - -ack_no_sticky=<%= @ng_ack_no_sticky %> -ack_no_send=<%= @ng_ack_no_send %> - -tac_cgi_hard_only=<%= @ng_tac_cgi_hard_only %> -# COMMAND COMMENTS -# These options control whether or not comments are required, optional, -# or not allowed for specific commands. The format for each line is: -# cmd-name=req,def-comment -# -# cmd-name is "CMT_" plus a command such as ADD_HOST_COMMENT -# req 0 = not allowed, 1 = optional, 2 = required -# def-comment optional default comment that will be put in the input field -# -# The following examples override the default comment requirements in -# some way. - -#CMT_ADD_HOST_COMMENT=1 -#CMT_ACKNOWLEDGE_HOST_PROBLEM=2,"Problem is being looked into" -#CMT_SCHEDULE_SVC_CHECK=1 -#CMT_SCHEDULE_HOST_DOWNTIME=0 -