diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-26 03:57:58 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-26 03:57:58 (GMT) |
commit | 118b845d236f9cf4aa2a4e68aa999dec2e619729 (patch) | |
tree | b77ff9473f53ecbea29edc95283fcfc8c206837f /plugins/check_procs.c | |
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/check_procs.c')
-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 e95a072..29f86be 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c | |||
@@ -117,12 +117,8 @@ main (int argc, char **argv) | |||
117 | fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process); | 117 | fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process); |
118 | 118 | ||
119 | while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { | 119 | while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { |
120 | #ifdef USE_PS_VARS | ||
121 | cols = sscanf (input_buffer, PS_FORMAT, PS_VARLIST); | 120 | cols = sscanf (input_buffer, PS_FORMAT, PS_VARLIST); |
122 | #else | 121 | |
123 | cols = sscanf (input_buffer, PS_FORMAT, procstat, &procuid, | ||
124 | &procppid, &pos, procprog); | ||
125 | #endif | ||
126 | /* Zombie processes do not give a procprog command */ | 122 | /* Zombie processes do not give a procprog command */ |
127 | if ( cols == 3 && strstr(procstat, zombie) ) { | 123 | if ( cols == 3 && strstr(procstat, zombie) ) { |
128 | strcpy(procprog, ""); | 124 | strcpy(procprog, ""); |