nagios安装注意点

装了最新版nagios(3.3.1),在装得过程遇到如下问题:

1、nagios.conf的配置信息追加到httpd.conf

安装nagios.conf时,会把文件放在/etc/httpd/conf.d,找半天都没有在我red hat上找这个路径,就自己mkdir了,安装好nagios后,把nagios.conf的内容追加httpd.conf

2、You don’t have permission to access /nagios/ on this server
access_log:

10.13.115.1 - nagiosadmin [26/Jun/2011:13:01:10 +0800] "GET /nagios/side.php HTTP/1.1" 304 -
10.13.115.1 - nagiosadmin [26/Jun/2011:13:01:10 +0800] "GET /nagios/images/sblogo.png HTTP/1.1" 304 -
10.13.115.1 - nagiosadmin [26/Jun/2011:13:01:10 +0800] "GET /nagios/stylesheets/common.css HTTP/1.1" 304 -
10.13.115.1 - nagiosadmin [26/Jun/2011:13:01:10 +0800] "GET /nagios/images/greendot.gif HTTP/1.1" 304 -

error_log:

 [notice] Apache/2.2.19 (Unix) DAV/2 configured -- resuming normal operations
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/

php页面无法被apache解析???

解决:
在apache的配置文件httpd.conf修改
第一步:

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

改成

<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

第二步:
增加如下内容,记得装php

LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType applicatoin/x-httpd-php-source .phps

猜你喜欢

转载自dbua.iteye.com/blog/1351252