From 7f2b0c8b5fda2d030f1e6534fc5d115eaf64b2b8 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 7 Apr 2003 23:40:33 +0000 Subject: Fixed zombie processes git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@476 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 2cf550c..3671559 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++; -- cgit v0.10-9-g596f