linux – Nagios创建大量的僵尸进程

前端之家收集整理的这篇文章主要介绍了linux – Nagios创建大量的僵尸进程前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在我的监控框中,我有很多由nagios创建的僵尸进程,它们也可以快速删除.我正在使用主动检查来执行我的服务器监控.我累积了使用以下命令创建的失效进程:
$top -d 0.25 -b -n 20 > topout.txt

这收集了顶部的输出0.25s延迟20次.

我在topout.txt上为greun进程做了grep.

$cat topout.txt | grep defunct

我得到以下输出.

8957 nagios    20   0     0    0    0 Z  6.0  0.0   0:00.02 nagios <defunct>                                                                         
 8951 nagios    20   0     0    0    0 Z  3.0  0.0   0:00.01 nagios <defunct>                                                                         
 8954 nagios    20   0     0    0    0 Z  3.0  0.0   0:00.01 nagios <defunct>                                                                         
 8945 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 8946 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 8980 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9000 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.00 nagios <defunct>                                                                         
 9024 nagios    20   0     0    0    0 Z  7.0  0.0   0:00.02 nagios <defunct>                                                                         
 9025 nagios    20   0     0    0    0 Z  3.5  0.0   0:00.01 nagios <defunct>                                                                         
 9040 nagios    20   0     0    0    0 Z  3.1  0.0   0:00.01 nagios <defunct>                                                                         
 9086 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9087 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9123 nagios    20   0     0    0    0 Z  6.1  0.0   0:00.02 nagios <defunct>                                                                         
 9126 nagios    20   0     0    0    0 Z  3.0  0.0   0:00.01 nagios <defunct>                                                                         
 9131 nagios    20   0     0    0    0 Z  3.0  0.0   0:00.01 nagios <defunct>                                                                         
 9091 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.05 nagios <defunct>                                                                         
 9111 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9119 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9118 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9151 nagios    20   0     0    0    0 Z  2.9  0.0   0:00.02 nagios <defunct>                                                                         
 9153 nagios    20   0     0    0    0 Z  2.9  0.0   0:00.02 nagios <defunct>                                                                         
 9150 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9164 nagios    20   0     0    0    0 Z  3.5  0.0   0:00.02 nagios <defunct>                                                                         
 9171 nagios    20   0     0    0    0 Z  3.5  0.0   0:00.02 nagios <defunct>                                                                         
 9154 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9156 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9163 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9167 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9178 nagios    20   0     0    0    0 Z  3.8  0.0   0:00.02 nagios <defunct>                                                                         
 9174 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9179 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>                                                                         
 9182 nagios    20   0     0    0    0 Z  0.0  0.0   0:00.01 nagios <defunct>

有人可以帮助我找出这些僵尸进程的原因以及我如何防止这些僵尸进程?

解决方法

Nagios还没有为SIGCHLD运行信号处理程序.这可能是因为它在运行队列中等待或忙于处理另一个信号.只要它们迅速消失,就不会引起关注.

猜你在找的Linux相关文章