您无权访问此服务器上的/ nagios /

时间:2012-10-19 01:50:33

标签: apache nagios graphite

我一直在尝试在Mac上设置nagios,这看起来非常简单,但我现在卡住了 - 我无法加载localhost/nagios/页面。据我所知,我有正确的配置。

我已经安装了PHP并将httpd.conf更改为包含index.html的“index.php”。我不认为还有更多,但这件小事不让我继续下去。

任何人都可以解释一下并指明我的方​​式吗?

这是我在aph的hhtpd.conf中的nagios配置文件中所拥有的:

# Nagios的东西

ScriptAlias / nagios / cgi-bin /“/ opt / local / sbin / nagios /”

<目录“/ opt / local / sbin / nagios”>

AllowOverride无

Options ExecCGI
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /opt/local/etc/nagios/htpasswd.users
require valid-user

< /目录>

Alias / nagios“/ opt / local / share / nagios”

<目录“/ opt / local / share / nagios”>

Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all

< /目录>

#  结束Nagios的东西

- apache的error_log文件包含:

[Fri Oct 19 11:02:09 2012] [error] [client :: 1] Options指令禁止的目录索引:/ opt / local / share / nagios /

2 个答案:

答案 0 :(得分:14)

要解决此问题:

  1. 只需在Nagios Server上安装“ PHP ”即可。 yum install php.i686

  2. 安装php后重新启动 Apache / httpd 服务器。

  3. 服务httpd重启

答案 1 :(得分:1)

您必须在apache配置中更改nagios文件夹权限。在apache中查找nagios配置文件(可能是conf.d或额外文件夹)。

Check here

相关问题