一、启动时报错 “Starting nagios:This account is currently not available”
解决方法: 修改/etc/passwd 将/sbin/nologin改成/bin/bash
二、nagios安装好后,网页访问出现如下错误: 无权查看任何主机的信息。
请检查HTTP服务器关于该CGI的访问权限设置。
解决办法: vi /usr/local/nagios/etc/cgi.cfg 将use_authentication的值改为0. use_authentication=0 然后重启nagios服务 service nagios restart
还有可能:
配置文件中的hostname和service_description使用了中文。 建议hostname和service_description 不要使用中文
三、访问时出现乱码 一般是apache 配置文件的编码问题 解决方法: vim /usr/local/apache2/conf/httpd.conf 最后添加AddDefaultCharset utf-8
四、出现 The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server错误
解决方法: 确定安装gd-devel包 然后回到解压目录, #make clean 重新编译安装一下 # ./configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include 接下来 #./configure --with-command-group=nagcmd #make all; make install; make install-init; make install-config; make install-commandmode; makeinstall-webconf
五、查看nagios.log日志出现如下错误: ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
解决思路: # vim /usr/local/nagios/etc/ndo2db.cfg ndo2db_user=nagios ndo2db_group=nagcmd 注意第二个,ndo2db的所属组,是nagcmd.因为前面系统加的用户nagios是nagcmd组的.
该贴已经同步到 admin的微博 |