我遵循网络上指南中的简单步骤:
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
Run Code Online (Sandbox Code Playgroud)
c) 重启nagios3服务,甚至重启apache2服务
但是当我尝试从 nagios 网络界面列出任何内容时,它仍然给我这个恼人的消息:
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.
Run Code Online (Sandbox Code Playgroud)
请问哪里有问题?