diff --git a/templates/nagios/cgi_cfg.erb b/templates/nagios/cgi_cfg.erb index cf7d6d4..6b7c78f 100644 --- a/templates/nagios/cgi_cfg.erb +++ b/templates/nagios/cgi_cfg.erb @@ -30,15 +30,13 @@ 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.undef? -%> +<% unless @ng_readonly_auth.nil? -%> authorized_for_read_only=<%= @ng_readonly_auth %> <% end -%> -<% unless @ng_statusmap_img.undef? -%> +<% unless @ng_statusmap_img.nil? -%> 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 %>