On my system I can extend the point where top truncates each line, by increasing the value of the "COLUMNS" variable.  For example:<div><br></div><div>  COLUMNS=120 $TOP -c -b -n 1</div><div><br></div><div>Unfortunately, this pads out every line to 120 characters with spaces.  This might not be what you want, because when the spaces wrap, you end up with blank lines.  But give it a try and see how you like it.  You could clean up the trailing blanks with a bit if sed-fu like: sed 's/ *$//'</div>

<div><br></div><div>J</div><div><br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 8:27 AM, Mailing Lists <span dir="ltr"><<a href="mailto:lists@dzpconsulting.com">lists@dzpconsulting.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry about that. I should have proofread my original post.<br>
<br>
The -c argument to top will show the full command line instead of just the process name. I've made this change to hobbit client-linux.sh as shown below.<br>
<br>
 $TOP must be set, the install utility should do that for us if it exists.<br>
if test "$TOP" != ""<br>
then<br>
    if test -x "$TOP"<br>
    then<br>
        echo "[top]"<br>
    $TOP -c -b -n 1<br>
    fi<br>
fi<br>
<br>
I do see the beginning of the command line as shown in this before and after client data snapshot.<br>
<br>
BEFORE:<br>
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND<br>
24525 tomcat    20   0 2805m 958m  11m S   52  1.0  45:03.00 java<br>
<br>
AFTER:<br>
 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND<br>
31104 tomcat    20   0 2365m 942m  11m S   39  1.0 380:45.86 /var/jdk6/bin/java<br>
<br>
<br>
<br>
My thought is that top truncates based on terminal width because I see more of the command line when I run top -c manually in a fullscreen terminal. Is there anyway to get a wider column width when running top via the xymon client?<br>


<br>
By the way, I am running Xymon 4.3.0-0.20101114.beta3.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Apr 11, 2012, at 1:37 PM, Henrik Størner wrote:<br>
<br>
On 11-04-2012 22:07, Mailing Lists wrote:<br>
> I'd like to change the contents of the CPU test details page to<br>
> include the full command line in the top output. As I don't have my<br>
> head wrapped fully around how xymon renders this data, I'm not<br>
> certain where to start. I've modified the client side to include the<br>
> -c option but it still looks like the client data is truncating on<br>
> some default width…<br>
<br>
I don't understand - what command is it that you want displayed ?<br>
<br>
If it's the command used to run "top", then the easiest way is to just add this to the content of the "[top]" section of the message that the client generates (see the xymon-4.3.7/client/YOUR-OS.sh scripts). The "[top]" section is copied verbatim into the cpu-status text, without being processed in any way.<br>


<br>
<br>
Regards,<br>
Henrik<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br></div>