From 2a44556f205f313c8d7c76c2bbdc7749cf846c01 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Sun, 8 Mar 2026 15:07:33 +0100 Subject: [PATCH] OP#436 fix error 500 --- templates/nagios/cgi_cfg.erb | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/templates/nagios/cgi_cfg.erb b/templates/nagios/cgi_cfg.erb index fbfe505..c5f0fdc 100644 --- a/templates/nagios/cgi_cfg.erb +++ b/templates/nagios/cgi_cfg.erb @@ -36,3 +36,85 @@ authorized_for_read_only=<%= @ng_readonly_auth %> <% unless @ng_statusmap_img.undef? -%> 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 \ No newline at end of file