diff options
-rw-r--r-- | plugins/check_procs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 737a87b..ccf0891 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c | |||
@@ -204,11 +204,15 @@ main (int argc, char **argv) | |||
204 | /* Zombie processes do not give a procprog command */ | 204 | /* Zombie processes do not give a procprog command */ |
205 | if ( cols == 6 && strstr(procstat, zombie) ) { | 205 | if ( cols == 6 && strstr(procstat, zombie) ) { |
206 | cols = 7; | 206 | cols = 7; |
207 | /* Set some value for procargs for the strip command further below | ||
208 | Seen to be a problem on some Solaris 7 and 8 systems */ | ||
209 | input_buffer[pos] = '\n'; | ||
210 | input_buffer[pos+1] = 0x0; | ||
207 | } | 211 | } |
208 | if ( cols >= 7 ) { | 212 | if ( cols >= 7 ) { |
209 | resultsum = 0; | 213 | resultsum = 0; |
210 | asprintf (&procargs, "%s", input_buffer + pos); | 214 | asprintf (&procargs, "%s", input_buffer + pos); |
211 | strip (procargs); | 215 | strip (procargs); |
212 | 216 | ||
213 | if ((options & STAT) && (strstr (statopts, procstat))) | 217 | if ((options & STAT) && (strstr (statopts, procstat))) |
214 | resultsum |= STAT; | 218 | resultsum |= STAT; |