aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-04-07 23:40:33 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-04-07 23:40:33 +0000
commit7f2b0c8b5fda2d030f1e6534fc5d115eaf64b2b8 (patch)
tree70a100dc92b964bb7a9f4dc1568cd4f9e0b61d71 /plugins/check_procs.c
parent606da92af4d87b3841cf06873f8ddf2c7cffda14 (diff)
downloadmonitoring-plugins-7f2b0c8b5fda2d030f1e6534fc5d115eaf64b2b8.tar.gz
Fixed zombie processes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@476 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 2cf550cc..3671559b 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -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++;