mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 08:42:17 -04:00
Make ps column count in zombie detection less restrictive. Thanks to Andrew Elwell (#1280470)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1758 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
c134205981
commit
d77b785d23
2 changed files with 2 additions and 1 deletions
|
|
@ -222,3 +222,4 @@ Ask Bjoern Hansen
|
|||
Daniel Bimschas
|
||||
Aurelien Bompard
|
||||
Christoph Schell
|
||||
Andrew Elwell
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ main (int argc, char **argv)
|
|||
cols = sscanf (input_line, PS_FORMAT, PS_VARLIST);
|
||||
|
||||
/* Zombie processes do not give a procprog command */
|
||||
if ( cols == (expected_cols - 1) && strstr(procstat, zombie) ) {
|
||||
if ( cols < expected_cols && strstr(procstat, zombie) ) {
|
||||
cols = expected_cols;
|
||||
}
|
||||
if ( cols >= expected_cols ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue