nagios出现It appears as though you do not have permission的解决办法

发布时间:2020-09-22编辑:脚本学堂
nagios出现It appears as though you do not have permission的解决办法

nagios安装配置完毕后,通过网页访问,出现如下的提示:
It appears as though you do not have permission to view information for any of the hosts 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.

解决办法:
修改/usr/local/nagios/etc/cgi.cfg
# vi /usr/local/nagios/etc/cgi.cfg

找到use_authentication=1,将1修改为0,保存退出。
# service nagios restart
重启nagios服务,页面恢复正常。

注:
nagios为保障系统的安全性,设置了此参数,默认为1,改为0即可。