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 737a87b1..ccf0891d 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -204,11 +204,15 @@ main (int argc, char **argv) /* Zombie processes do not give a procprog command */ if ( cols == 6 && strstr(procstat, zombie) ) { cols = 7; + /* Set some value for procargs for the strip command further below + Seen to be a problem on some Solaris 7 and 8 systems */ + input_buffer[pos] = '\n'; + input_buffer[pos+1] = 0x0; } if ( cols >= 7 ) { resultsum = 0; asprintf (&procargs, "%s", input_buffer + pos); - strip (procargs); + strip (procargs); if ((options & STAT) && (strstr (statopts, procstat))) resultsum |= STAT; |