diff --git a/templates/nagios/cgi_cfg.erb b/templates/nagios/cgi_cfg.erb index 99caea4..63a27e3 100644 --- a/templates/nagios/cgi_cfg.erb +++ b/templates/nagios/cgi_cfg.erb @@ -16,6 +16,18 @@ 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 %>