nagios常见错误排查
一、启动时报错“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.cfgndo2db_user=nagiosndo2db_group=nagcmd注意第二个,ndo2db的所属组,是nagcmd.因为前面系统加的用户nagios是nagcmd组的.
该贴已经同步到 admin的微博 男人在结婚前觉得适合自己的女人很少,结婚后觉得适合自己的女人很多。 我抢、我抢、我抢沙发~ 帮你顶下哈!! 俺从不写措字,但俺写通假字! 与时俱进,你我共赴高潮! 所有刻骨铭心的爱都灵魂游离于床上的瞬间!
页:
[1]