<div dir="ltr">Galen and Greg,<div><br></div><div>Right about the quotes, and yes,Greg, I finally realized that my entry resulted in an extra line at the top of the PROCS status page rather than a reduction in the listing.  It appears that it would be easier to add some code to the xmond_client worker to reduce the output of the ps command coming from the client, correct? Or would writing a whole new "worker" that grabbed the proc status data work better?<div><br></div><div>Thanks for the explanations!</div><div>David</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 1:59 PM, Galen Johnson <span dir="ltr"><<a href="mailto:Galen.Johnson@sas.com" target="_blank">Galen.Johnson@sas.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also note: if you have spaces in your text description you have the initial quote in the wrong place...it has to wrap the whole TEXT statement...including TEXT:<br>
<br>
HOST=*<br>
  PROC="java" 1 100 green "TEXT=java - with a lot of parameters"<br>
<br>
Someone please correct me if I've misspoken.<br>
<br>
=G=<br>
<br>
________________________________________<br>
From: Xymon <<a href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>> on behalf of shea, greg <<a href="mailto:greg.shea@emc.com">greg.shea@emc.com</a>><br>
Sent: Thursday, October 16, 2014 10:01 AM<br>
To: David Welker; <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
Cc: shea, greg<br>
Subject: Re: [Xymon] PROC change needed<br>
<div><div class="h5"><br>
>From: Xymon [mailto:<a href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>] On Behalf Of David Welker<br>
>Sent: Thursday, October 16, 2014 9:34 AM<br>
>To: <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
>Subject: [Xymon] PROC change needed<br>
><br>
>I have this java command-line that shows up in a PROC status (ps listing) on multiple lines.  I'd like to be able to have this text replaced with some one-liner.  I thought the way to do that >was using a PROC line in the analysis.cfg file with the TEXT option, but that doesn't do anything to either the client data OR the PROC status page.  Can this somehow be done in a ?>xymond_worker?  Can it ONLY be done in a xymond_worker?<br>
><br>
>Sample analysis.cfg file:<br>
><br>
>HOST=*<br>
>  PROC="java" 1 100 green TEXT="java - with a lot of parameters"<br>
><br>
>Any ideas or thoughts would be appreciated.<br>
><br>
>Thanks,<br>
>David<br>
<br>
Hi David,<br>
<br>
What you have as an example would create an entry on the PROCS test page that would be ' java - with a lot of parameters' for any<br>
PROC that has 'java' in the process string.  Is that the intent?  Normally it's the reverse.<br>
<br>
Sample from analysis.cfg<br>
HOST=%^gre.*<br>
       PROC    "/apps/axeda/access/jre/bin/java -jar -Duser.dir=/apps/axeda/access/apache-tomcat-5.5.28 /apps/axeda/access/apache-tomcat-5.5.28/bin/bootstrap.jar start" TEXT=Axeda<br>
<br>
Which would show on the PROCS test page as<br>
Thu Oct 16 09:55:17 EDT 2014 Processes OK<br>
<br>
 Axeda (found 1, req. 1 or more)<br>
<br>
Instead of the whole line of text<br>
<br>
Regards<br>
Gregory Shea<br>
EMC Corporation<br>
<br>
</div></div>_______________________________________________<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></blockquote></div><br></div>