免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2323 | 回复: 5
打印 上一主题 下一主题

nagios启动时报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-10-27 11:04 |只看该作者 |倒序浏览
系统centos 5.1 虚拟机实验 apahce 2.2 默认配置 并添加如下内容
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory "/usr/local/nagios/sbin">
AuthType Basic
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>

Alias /nagios /usr/local/nagios/share
<Directory "/usr/local/nagios/share">
AuthType Basic
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>


nagios下的目录 默认权限都是nagios包括 htpasswd.users这个文件

真实机系统为windows xp 可正常ping通虚拟机 访问apache网页正常

当访问http://ip/nagios 提示:
   403错误  “您可能没有权限用您提供的凭据查看此目录或网页”

查看日志 如下内容提示:
[Mon Oct 26 23:01:49 2009] [notice] SIGHUP received.  Attempting to restart
[Mon Oct 26 23:01:49 2009] [notice] Apache/2.2.14 (Unix) configured -- resuming normal operations
[Mon Oct 26 23:02:03 2009] [error] [client 192.168.159.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
[Mon Oct 26 23:02:27 2009] [error] [client 192.168.159.1] Directory index forbidden by Options directive: /usr/local/nagios/share/


给htpasswd.users 的权限为 755 并把daemon这个用户加入nagios组里面,效果还是不行

清各位帮忙 谢谢

[ 本帖最后由 huachenyang 于 2009-10-27 11:16 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-10-27 11:11 |只看该作者

nagiso

自己 顶一下  在线等

论坛徽章:
0
3 [报告]
发表于 2009-10-28 22:56 |只看该作者

回复 #1 huachenyang 的帖子

Directory index forbidden by Options directive: /usr/local/nagios/share/
这个提示信息是很明显呀

论坛徽章:
0
4 [报告]
发表于 2009-10-29 09:48 |只看该作者
权限问题

论坛徽章:
0
5 [报告]
发表于 2009-11-02 11:02 |只看该作者

问题已经解决

3.1版本需支持php,装玩php5.1 这个错误就不再显示,可正常访问nagios监控信息

论坛徽章:
0
6 [报告]
发表于 2009-11-02 15:38 |只看该作者
修改一下配置   
忘了哪个值了,google一下,网上有的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP