疑问 1: 
 
It appears as though you do not have permission to view information for any of the hosts you requested.
 
临时处理 : 
 
sed -i 's/use_authentication=1/use_authentication=0/g' /usr/local/nagios/etc/cgi.cfg 
 
(撤销了认证 能够阅读主机状态 但是无法 在 nagios web端 执行外部命令 ) 
 
处理 : 
 
登陆 nagios web接口的用户,须要和 /usr/local/nagios/etc/cgi.cfg 里面配置的用户匹配,没有能够手动添加,用逗号隔开。 
 
疑问 2: 
 
 
Sorry Dave, I can't let you do that... It seems that you have chosen to not use the authentication functionality of the CGIs. I don't want to be personally responsible for what may happen as a result of allowing unauthorized users to issue commands to Nagios,so you'll have to disable this safeguard if you are really stubborn and want to invite trouble. Read the section on CGI authentication in the HTML documentation to learn how you can enable authentication and why you should want to. 
 
原由 : 未开启认证 
 
处理:开启认证可处理疑问,编辑文件 /usr/local/nagios/etc/cgi.cfg,将 use_authentication 值设成1 (0/1 关上 /开启)use_authentication=1,并重启nagios。
 
service nagios restart 
 
疑问 3: 
 
 
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 配置文件里有的 默认是 nagiosadmin,假如你新建的其他用户,须要添加进去,多用户用逗号分开。
 
 
authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin 
 
authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin 
 
authorized_for_all_host_commands=nagiosadmin 
假如不是 nagiosadmin 须要到后面添加,例子:
 
authorized_for_system_information=nagiosadmin,admin
 
疑问 4: 
 
调用外部命令不正确,可能权限不够 。
 
处理 : 
 
临时处理 : 
 
chown -R nagios.nagcmd /usr/local/nagios/var/rw 
 
chmod -R 777 /usr/local/nagios/var/rw 
 
为什么说临时处理 ? 因为重启nagios后,权限会还原,仍旧没权限执行。 
 
处理 : 
 
在安装 nagios 时,就要把用户选对,然后再安装。 
 
 
./configure --with-group=nagios --with-user=nagios --with-command-group=nagcmd --with-gd-lib=/usr/lib --with-gd-inc=/usr/include
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
 
读写 nagios.cmd 权限是 nagios.nagcmd,还须要把web用户添加加到 nagcmd组里 这样才有权限执行 nagios.cmd .
 
疑问 5: 
 
3D阅读不正确,提示下载 statuswrl.cgi .
 
处理 : 需安装3D阅读插件。
 
原由是未安装支撑 vrml 3D阅读的插件,vrml 面向对象的三维造型语言,须要安装 vrml 支撑插件才能阅读,Cortona VRML Client 是一个优秀的VRML阅读插件。 
 
 
 
疑问 6: 
 
查看帮助文档时,无法 看到图片。
 
原由:是url不正确。 
 
图片源地址 http://p_w_picpaths.enet.com.cn/2011/0902/04/9438374.png 
 
实际地址 /usr/local/nagios/share/docs/p_w_picpaths/reachability1.png 
 
处理:配置apache参加别名 
 
Alias /pub "/usr/local/nagios/share/docs" 
 
apachectl restart 
 
重启apache 疑问处理。