diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-26 03:57:58 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-26 03:57:58 +0000 |
commit | 118b845d236f9cf4aa2a4e68aa999dec2e619729 (patch) | |
tree | b77ff9473f53ecbea29edc95283fcfc8c206837f /plugins | |
parent | fbb6e27531d83c2e7e15be5d38af6d3d207571ba (diff) | |
download | monitoring-plugins-118b845d236f9cf4aa2a4e68aa999dec2e619729.tar.gz |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_procs.c | 6 |
1 files changed, 1 insertions, 5 deletions
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, ""); |