Chinaunix首页 | 论坛 | 博客
  • 博客访问: 623086
  • 博文数量: 73
  • 博客积分: 1813
  • 博客等级: 上尉
  • 技术积分: 1213
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-27 19:59
文章分类
文章存档

2013年(1)

2012年(12)

2011年(28)

2010年(31)

2009年(1)

我的朋友

分类: LINUX

2010-12-30 17:41:20

 
问题描述:
刷新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) |
给主人留下些什么吧!~~

chinaunix网友2011-01-01 19:53:37

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com