From 118b845d236f9cf4aa2a4e68aa999dec2e619729 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 26 Mar 2003 03:57:58 +0000 Subject: Removal of ps_raw and ps_vars git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@463 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_procs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/check_procs.c b/plugins/check_procs.c index e95a0722..29f86bed 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -117,12 +117,8 @@ main (int argc, char **argv) fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process); while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { -#ifdef USE_PS_VARS cols = sscanf (input_buffer, PS_FORMAT, PS_VARLIST); -#else - cols = sscanf (input_buffer, PS_FORMAT, procstat, &procuid, - &procppid, &pos, procprog); -#endif + /* Zombie processes do not give a procprog command */ if ( cols == 3 && strstr(procstat, zombie) ) { strcpy(procprog, ""); -- cgit v1.2.3-74-g34f1