From d77b785d2364d436ff66c379b3a7818a150bbcf6 Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Sun, 15 Jul 2007 15:21:51 +0000 Subject: 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 diff --git a/THANKS.in b/THANKS.in index c788bac..3644fe1 100644 --- a/THANKS.in +++ b/THANKS.in @@ -222,3 +222,4 @@ Ask Bjoern Hansen Daniel Bimschas Aurelien Bompard Christoph Schell +Andrew Elwell diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 2e28328..f5dc45d 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 ) { -- cgit v0.10-9-g596f