Xymon Mailing List Archive search

Client feature request, bug?

4 messages in this thread

list David Gore · Mon, 08 Aug 2005 13:27:08 +0000 ·
I would like to request suppression of the client's 'ps' output on the web page.  With 'ps wwaux' the lines are really long which creates fairly unattractive output.  The long lines casuse the processes you are interested in to align flush to the left side of the page.  I would rather just see the processes I am interested in and their associated red, yellow, and green icons.

Additionally, we used to monitor a process like this in the BB client:

localhost :: JBoss3-workflow

On the hobbit server with the new client I have to get more specific:

PROC "-Dse.process.name=JBoss3-workflow"

Here is what it looks like with '/usr/ucb/ps wwaux | grep JBoss3-workflow | grep -v grep'

impact   12870  3.4  5.4493112430488 ?        S   Jul 19 2499:07 /usr/java/bin/java -server -Xms256m -Xmx2g -Xss256k -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=50 -XX:NewRatio=3 -XX:SurvivorRatio=14 -XX:MaxPermSize=128m -XX:+UseParallelGC -XX:+DisableExplicitGC -Dse.process.name=JBoss3-workflow -Djava.awt.headless=true -Djboss.home.dir=/export/home/impact/jboss3 -Djboss.server.base.dir=/export/home/impact/jboss3/server -Djboss.server.name=workflow -Dimpact.home=/export/home/impact/2005.1 -Djava.endorsed.dirs=/export/home/impact/jboss3/endorsedlib:/usr/java/jre/lib/endorsed -classpath /export/home/impact/jboss3/bin/run.jar:/usr/java/lib/tools.jar org.jboss.Main


Am I doing something wrong with the 'PROC' listing, or the server cannot pickout ANY string in the client's listing?

-- 
David Gore (v965-3670)
Enhanced Technology Support (ETS)
Network Management Systems (NMS)
IMPACT Transport Team Lead - SCSA, SCNA
Page: 1-800-PAG-eMCI pin 1406090
Vnet: 965-3676
list Henrik Størner · Mon, 8 Aug 2005 15:34:41 +0200 ·
quoted from David Gore
On Mon, Aug 08, 2005 at 01:27:08PM +0000, David Gore wrote:
I would like to request suppression of the client's 'ps' output on the web page.  With 'ps wwaux' the lines are really long which creates fairly unattractive output.  The long lines casuse the processes you are interested in to align flush to the left side of the page.  I would rather just see the processes I am interested in and their associated red, yellow, and green icons.
It's in the latest snapshot (the one from about 15 hours ago): Add "--no-ps-listing" to the hobbitd_client in hobbitlaunch.cfg
quoted from David Gore
Additionally, we used to monitor a process like this in the BB client:

localhost :: JBoss3-workflow

On the hobbit server with the new client I have to get more specific:
I got your mail about this - I'm looking into it. What you're doing *should* work; I think the process-name recognition is a bit too
restrictive right now.


Regards,
Henrik
list Henrik Størner · Mon, 8 Aug 2005 15:59:21 +0200 ·
quoted from David Gore
On Mon, Aug 08, 2005 at 01:27:08PM +0000, David Gore wrote:
Additionally, we used to monitor a process like this in the BB client:

localhost :: JBoss3-workflow

On the hobbit server with the new client I have to get more specific:

PROC "-Dse.process.name=JBoss3-workflow"
Could you try with
     PROC "%-Dse.process.name=JBoss3-workflow"
i.e. use a reg.expression instead of a simple string ?

Right now the process-name checks will accept any kind of match
for a regular expression. But for simple string matches, it assumes
the string is a program name, not an option - so it wants a blank or
a slash before and after the part of the string that it finds in 
the ps output.

I thought it was a good idea when I did that, but now I'm not so sure.


Regards,
Henrik
list David Gore · Mon, 08 Aug 2005 21:47:40 +0000 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Mon, Aug 08, 2005 at 01:27:08PM +0000, David Gore wrote:
 
Additionally, we used to monitor a process like this in the BB client:

localhost :: JBoss3-workflow

On the hobbit server with the new client I have to get more specific:

PROC "-Dse.process.name=JBoss3-workflow"
   
Could you try with
    PROC "%-Dse.process.name=JBoss3-workflow"
i.e. use a reg.expression instead of a simple string ?

Right now the process-name checks will accept any kind of match
for a regular expression. But for simple string matches, it assumes
the string is a program name, not an option - so it wants a blank or
a slash before and after the part of the string that it finds in 
the ps output.

I thought it was a good idea when I did that, but now I'm not so sure.


Regards,
Henrik

Tried this

PROC "%FilterManager" 1

and got this 

%FilterManager (found 1,  req. 1 or more)

Looks like '%' gets displayed, but this is closer to what I am looking for.

If I leave the '%' off then I get proc not found, and as you have already stated you said it is fairly restrictive.

Thanks for the '--no-ps-listing' by the way, that makes the web page look much better.

~David