问题描述:
刷新nagios页面的时候,有时候会刷出以前的页面,有时候是正常的页面,但是并不影响故障报警,监控日志出现如下现象
[root@localhost services]# tail -f /usr/local/nagios/var/nagios.log
[1293701249] Warning: The check of host 'wps-121' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host...
[1293701249] Warning: The check of host 'wps-124' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host...
[1293701249] Warning: The check of host 'wps-125' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host...
[1293701249] Warning: The check of host 'wps-127' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host...
[1293701249] Warning: The check of host 'wps-130' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host...
[1293701249] Warning: The check of host 'wps-133' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host...
[1293701289] Nagios 3.2.0 starting... (PID=29942)
问题原因:
找了几天出问题的地方,都没有找到,论坛有说重启nagios服务器就好了,但是不知道为什么,后来终于查出了出错的原因:开了两个nagios进程
[root@localhost services]# ps aux | grep nagios
nagios 4925 0.0 0.0 4888 920 ? Ss Dec29 0:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
nagios 9328 0.0 0.0 12996 1428 ? Ssl Dec16 19:06 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 23769 0.1 0.0 13132 1440 ? Ssl 16:49 0:02 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 29259 0.0 0.0 3916 676 pts/1 S+ 17:26 0:00 grep nagios
解决办法:
杀掉nagios全部进程,再次启动nagios,好了!
我也不知道什么时候启动了两个进程,论坛中说的重启服务器,这个肯定会解决的!
阅读(2224) | 评论(1) | 转发(0) |