nagios3 监控出现It appears as though you do not have permission

在安装配置nagiosql时,启动正常,打开监控页面出现
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.
执行要修改过cgi.cfg文件就能解决了。
1、修改cgi.cfg
vi /usr/local/nagios/cgi.cfg

use_authentication=1 #把1修改为0,保存
root@nagios#/etc/init.d/nagios restart

cgi.cfg配置文件控制相关的cgi脚本,如果想在nagios页面执行cgi脚本,比如重启nagios进程,关闭nagios通知等,需要用到这个文件。

你可能感兴趣的:(nagios,nagios3)