aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
authorGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-07-15 15:21:51 +0000
committerGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-07-15 15:21:51 +0000
commitd77b785d2364d436ff66c379b3a7818a150bbcf6 (patch)
tree42b2bb4d84c574fda47296068c54e458a489af56 /plugins/check_procs.c
parentc134205981203c7a6908f5ae1e3ca297bac83876 (diff)
downloadmonitoring-plugins-d77b785d2364d436ff66c379b3a7818a150bbcf6.tar.gz
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
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 2e283284..f5dc45df 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -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 ) {