users@glassfish.java.net

Re: Writing probes for Glassfish container events

From: Comerford, Sean <Sean.Comerford_at_espn.com>
Date: Thu, 16 Feb 2012 12:11:38 -0500

When I run list-probes in asadmin to see what's available I get this:

asadmin> list-probes
Command list-probes not found.
Check the entry of command name. This command may be provided by a package that is not installed.
Closest matching local and remote command(s):
    list-nodes
Command list-probes executed successfully.

I'm using v3.1.1 if that matters.

--
Sean Comerford
ESPN.com Site Architecture
From: Jennifer Galloway <jennifer.chou_at_oracle.com<mailto:jennifer.chou_at_oracle.com>>
Date: Wed, 15 Feb 2012 23:07:12 -0500
To: Sean Comerford <Sean.Comerford_at_espn.com<mailto:Sean.Comerford_at_espn.com>>
Cc: "users_at_glassfish.java.net<mailto:users_at_glassfish.java.net>" <users_at_glassfish.java.net<mailto:users_at_glassfish.java.net>>
Subject: Re: Writing probes for Glassfish container events
Did you see the doc on Monitoring Scripting Client?
http://docs.oracle.com/cd/E19226-01/821-1008/index.html
There is a sample script you can follow to see how it works.
There may not be probes specifically for 'http-listener's connection queue overflows or even when it reaches a certain threshold'.   You can run 'asadmin list-probes' to list all the probes available, and 'list-probes --details name_of_probe' to get more info.  I know there are many that are begin and end events for the containers.
Jennifer
On 2/15/12 9:21 PM, Comerford, Sean wrote:
We're finally about to turn the keys on V3 in production here at ESPN.
Been doing a bit of reading on the probes that have been added to the V3 monitoring framework.
These look really promising.
But I'm a little stuck on how to actually go about creating and deploying one that listens for container events.
For example, I want to create a probe to be notified of things like when an http-listener's connection queue overflows or even when it reaches a certain threshold (i.e. more than X requests are queued).
Can anyone point me in the right direction?
--
Sean Comerford
ESPN.com Site Architecture
________________________________
Please consider the environment before printing this e-mail.