mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
Fixed zombie processes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@476 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
606da92af4
commit
7f2b0c8b5f
1 changed files with 2 additions and 3 deletions
|
|
@ -202,9 +202,8 @@ main (int argc, char **argv)
|
|||
cols = sscanf (input_buffer, PS_FORMAT, PS_VARLIST);
|
||||
|
||||
/* Zombie processes do not give a procprog command */
|
||||
/* - would they give other columns? */
|
||||
if ( cols == 3 && strstr(procstat, zombie) ) {
|
||||
cols = 4;
|
||||
if ( cols == 6 && strstr(procstat, zombie) ) {
|
||||
cols = 7;
|
||||
}
|
||||
if ( cols >= 7 ) {
|
||||
found++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue