我遵循网络指南中的简单步骤:
a)通过命令将用户添加到Nagios htpasswd htpasswd.users username
b)在cgi.cfg文件中将此用户添加到以下行:
authorized_for_system_information=nagiosadmin, username
authorized_for_configuration_information=nagiosadmin, username
authorized_for_system_commands=nagiosadmin, username
authorized_for_all_services=nagiosadmin, username
authorized_for_all_hosts=nagiosadmin, username
authorized_for_all_service_commands=nagiosadmin, username
authorized_for_all_host_commands=nagiosadmin, username
c)重新启动nagios3服务,甚至重新启动apache2服务
但是当我尝试从nagios Web界面中列出任何内容时,它仍然给我以下烦人的消息:
It appears as though you do not have permission to view information for any of the services you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
请问哪里有问题?
authorized_for
,例如authorized_for_all_hosts=nagiosadmin,username
。我怀疑这是问题所在,但是我所有可用的NAGIOS配置都没有空间。