Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7485031
  • 博文数量: 368
  • 博客积分: 9600
  • 博客等级: 上校
  • 技术积分: 18875
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-01 00:00
文章分类

全部博文(368)

文章存档

2017年(9)

2016年(19)

2015年(3)

2014年(6)

2013年(8)

2012年(78)

2011年(66)

2010年(135)

2009年(44)

分类: LINUX

2011-12-22 14:50:21

安装好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即可。

重启nagios服务后页面恢复正常。
阅读(4257) | 评论(0) | 转发(3) |
给主人留下些什么吧!~~