summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c134205)
raw | patch | inline | side by side (parent: c134205)
author | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Sun, 15 Jul 2007 15:21:51 +0000 (15:21 +0000) | ||
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Sun, 15 Jul 2007 15:21:51 +0000 (15:21 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1758 f882894a-f735-0410-b71e-b25c423dba1c
THANKS.in | patch | blob | history | |
plugins/check_procs.c | patch | blob | history |
diff --git a/THANKS.in b/THANKS.in
index c788bac0df30a81ac28b83164cea3ee531e1b946..3644fe1a8c417b6c0896696a0f513a2bc4c6be57 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
Daniel Bimschas
Aurelien Bompard
Christoph Schell
+Andrew Elwell
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 2e2832849e50329bcb1de03bb5d9165515e480b3..f5dc45df532d7efc23d61d686e16acd2e23d3c10 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
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 ) {