LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1988|回复: 2

nagios cgi执行权限的问题

[复制链接]
发表于 2007-6-1 14:20:38 | 显示全部楼层 |阅读模式
nagios安装好后.从浏览器进入
Service Detail
Host Detail
Hostgroup Overview
Hostgroup Summary
Hostgroup Grid
点击以上这几个链接,出现如下的错误:
[color="Red"]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.


在apache中添加了如下信息:
ScriptAlias /nagios/cgi-bin "/home/nagios/sbin/"
   <Directory "/home/nagios/sbin/">
      Options ExecCGI
      AllowOverride None
      Order allow,deny
      Allow from all
      AuthName "Nagios Access"
      AuthType Basic
      AuthUserFile /home/nagios/etc/htpasswd.users
      Require valid-user
   </Directory>
   
   Alias /nagios "/home/nagios/share/"
   <Directory "/home/nagios/share/">
      Options None
      AllowOverride None
      Order allow,deny
      Allow from all
      AuthName "Nagios Access"
      AuthType Basic
      AuthUserFile /home/nagios/etc/htpasswd.users
      Require valid-user
   </Directory>
请问是怎么回事?
发表于 2009-5-6 15:09:52 | 显示全部楼层
注意以下操作:./configure --with-group-command=nagcmd
回复 支持 反对

使用道具 举报

发表于 2009-5-15 15:17:45 | 显示全部楼层
nagios cgi.cfg

如果use_authentication=1
侧下面的参数需加上你的认证用户(htpasswd.users里的用户)

default_user_name=admin
authorized_for_system_information=admin
authorized_.....
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表