API for monitoring MQ and ESB

Posted by Admin on 24-Jun-2009 06:11

Looking for some info on how we can write our own simple view on the status of MQ & ESB etc.

anyone got any info they can point us to?

All Replies

Posted by Admin on 24-Jun-2009 12:47

http://communities.progress.com/pcom/message/9795#9795

is not simple, but you can take a look to the code source.

*-----------------------------------------------------------------------------*
!Require: jdk/jre 1.6
*-----------------------------------------------------------------------------*
Usage:
- edit the setenv.sh(bat) script to set local library paths
- check if the SonicMQ Broker is running
- open the SMC console and add some metrics enabled, like:
    broker.bytes.TopicDBSize
    broker.connections.Count
    broker.messages.Delivered
    broker.messages.Received
    queue.messages.Size.*
    system.memory.CurrentUsage
    system.memory.MaxUsage
- optional:
     * start a ESB container and add some metrics
     * deploy some ESB process (HM is listening the dev.RME topic)
- invoke HeuristicMonitor script in one window
- check if there is some SonicMQ activity (sending/receiving messages)
- wait for a while, give it the time to collect some data

Note:
* The notifications filter is: "application.*"
* if you wants to change metrics you have to delete the
  hm-yyyy.mm.dd.stf file and restart HM.
* if you wants to change the nonitications filter or tracking Topic
  check the file: HeuristicMonitor.properties

Posted by Thomas Mercer-Hursh on 24-Jun-2009 13:50

Why re-invent the wheel?  Especially when a Ferrari already exists?  Looked at Actional?

Posted by Admin on 25-Jun-2009 02:01

Hmmm why buy a Ferrari when all you need is a mini?

any other info?

Posted by Thomas Mercer-Hursh on 25-Jun-2009 11:09

Because, when needs grow, so does the effort and before you know it you have spent more money that you would if you just purchased the tool in the first place, but yours will be less complete.

Posted by Admin on 25-Jun-2009 12:14

Here is the "mini" in bash:

$: netstat -tln | grep 2506

if echo $? = 1 then SonicMQ is non alive

over the network you can use:

$: nmap -p 2506 [sonicMQ ip adress] | grep 2506 >/dev/null 2>&1

if echo $? = 1 then SonicMQ is non alive

Check for ESB:

$:  ps -auxeww| grep [your container.xml]

if echo $? = 1 then ESB is non alive

Posted by Admin on 25-Jun-2009 12:20

Something like that would actually be very nice:

http://blog.perforce.com/blog/?p=1047

Monitors my SCM server on the iPhone...

Posted by Admin on 26-Jun-2009 01:23

I understand your point, but i really didn't expect to get "buy actional" advice on this forum - this I can get already from my Progress Account manager.

At the moment I have a black box called Sonic ESB / MQ and while i would love to have Actional full solution - its not an option right now.

I was hoping someone may know some ways that i could get sonme of that info with and i'll put the effort in.

This may tide me over until Action is an option.

Posted by mjabali on 26-Jun-2009 16:11

Tony,

There is a really simple example of the runtime Sonic Management API available with the SonicMQ samples. Take a look at $SONICMQ_HOME/samples/Management/runtimeAPI/javaJMX

Running that sample and then using > show status should give you a good start.

Hope this helps,

-Marcelo

Posted by Admin on 29-Jun-2009 13:00

yes

This thread is closed