- 论坛徽章:
- 0
|
本帖最后由 lwlmj2011 于 2012-04-26 19:30 编辑
安装nagios软件计算机环境:
IP:192.168.0.90
apache(编译安装)软件目录:/usr/local/apache
nagios软件安装目录:/usr/local/nagios
nagios源文件位置:/usr/local/src/nagios-3.2.1
nagios插件源文件位置:/usr/local/src/nagios-plugins-1.4.14
nagios代理软件源文件位置:/usr/local/src/nrpe-2.12
现状:
我按照官方技术文档的步骤
在ip为192.168.0.90的机器上成功编译安装了nagios
但是访问nagios的时候遇到了问题
http://192.168.0.90/nagios
总是提示The requested URL /nagios was not found on this server错误
由于192.168.0.90的apache是源码编译安装不是rpm安装
据说需要在编译nagios的时候指定apache的配置文件位置
我
[...]#cd /usr/local/src/nagios-3.2.1
[...]#./configure --help
看到这个
--with-http-conf=<path_to_conf> sets path to Apache conf.d directory
于是
[...]#locate conf.d
看到
/etc/httpd/conf.d
接着
[...]#./configure --with-command-group=nagcmd --with-http-conf=/etc/httpd/conf.d
然后重启apache和nagios服务,发现访问http://192.168.0.90/nagios还是提示The requested URL /nagios was not found on this server错误
然后我将nagios重新安装并在编译这一步特地加上上面的参数
虽然重新安装成功了,但还是无法正常访问http://192.168.0.90/nagios
[...]#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg的结果是无警告和无错误
但为什么无法正常访问http://192.168.0.90/nagios这个地址呢 |
|