admin@glassfish.java.net

logging-mode for asadmin monitor available?

From: Wolfram Rittmeyer <w.rittmeyer_at_jsptutorial.org>
Date: Tue, 06 May 2008 20:33:35 +0200

Hello,

I want to use "asadmin monitor" in some scripts to periodically send me
some reports. Now there are some issues when I try to do this:

First I believe there is no logging/batch mode (like e.g. "top -l 1" or
"top -n 1", depending on which top version you are using). For a command
used to monitor something I think this is essential. I could file an
enhancement request, but maybe I am only missing something?

Secondly "asadmin monitor --type xyz --filename xyz.log server" prints
monitoring results to stdout as well as to the file stated. Even an
additional "--terse" didn't prevent output from being printed on stdout.
This also is not the desired result for my skript ;-)

A very weird behaviour occurs when issuing asadmin monitor with a
trailing "&" so to run in in the background (using filename and terse
again). The headline gets printed but afterwards no output gets printed
until I kill the process. After killing the process all lines get
printed at once.


Regards,

Wolfram Rittmeyer