Xymon Mailing List Archive search

PROC change needed

list David Welker
Thu, 16 Oct 2014 17:01:15 -0400
Message-Id: <user-8acb9ff21e45@xymon.invalid>

Galen and Greg,

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?

Thanks for the explanations!
David

On Thu, Oct 16, 2014 at 1:59 PM, Galen Johnson <user-87f955643e3d@xymon.invalid>
wrote:
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:

HOST=*
  PROC="java" 1 100 green "TEXT=java - with a lot of parameters"

Someone please correct me if I've misspoken.

=G=

From: Xymon <xymon-bounces at xymon.com> on behalf of shea, greg <
user-028bf2df2227@xymon.invalid>
Sent: Thursday, October 16, 2014 10:01 AM
To: David Welker; xymon at xymon.com
Cc: shea, greg
Subject: Re: [Xymon] PROC change needed
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of David Welker
Sent: Thursday, October 16, 2014 9:34 AM
To: xymon at xymon.com
Subject: [Xymon] PROC change needed

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?

Sample analysis.cfg file:

HOST=*
 PROC="java" 1 100 green TEXT="java - with a lot of parameters"

Any ideas or thoughts would be appreciated.

Thanks,
David
Hi David,

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
PROC that has 'java' in the process string.  Is that the intent?  Normally
it's the reverse.

Sample from analysis.cfg
HOST=%^gre.*
       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

Which would show on the PROCS test page as
Thu Oct 16 09:55:17 EDT 2014 Processes OK

 Axeda (found 1, req. 1 or more)

Instead of the whole line of text

Regards
Gregory Shea
EMC Corporation