您的位置:首页 > 移动开发 > IOS开发

Nagios状态长时间处于Pending的解决方法

2015-02-09 00:50 274 查看
1 nagios 守护进程引起的一系列问题
1 影响nagios web页面收集监控信息 致使页面出现时而收集不到服务信息
2 影响pnp查看图形化,出图缓慢
3 影响查看服务状态信息,致使有时候查看不了服务状态

解决方法
通过命令
ps -ef|grep nagios.cfg
确认 是否开启多个守护进程
如果发现多个全部kill掉在重新启动守护进程

kill -9 xxxx
原因:启动了两个nagios进程,可通过命令ps -ef|grep nagios.cfg确认。全kill掉之后再启动就可以了。也可以在nagios启动脚本(/etc/init.d/nagios)中加入判 断,start时如果已有nagios进程在运行则强制kill,kill成功再继续启动,失败则退出。

Warning: The check of service 'load' on host 'Nagios' looks like it was orphaned (results never came back).  I'm scheduling an immediate check of the service...

[1354527841] Warning: The check of service 'procs' on host 'Nagios' looks like it was orphaned (results never came back).  I'm scheduling an immediate check of the service...

/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
添加网卡流量监控的错误

Unknown - Read or Write File /var/tmp/check_traffic_localhost_2_root_itnms.hist_dat_64 Error with user uid=501(nagios) gid=501(nagios) groups=501(nagios),502(nagcmd).
解决方案:删除/var/tmp/check_traffic_localhost_2_root_itnms.hist_dat_64

感谢原作者:【http://www.cnblogs.com/nhlinkin/p/3603708.html】
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐