question

Andre V. avatar image
Andre V. asked ·

WebSphere MQ Monitor plugin error

We're running dynaTrace version 4.1.0.2898 together with the WS MQ monitor plugin (1.0.3) and we get the following error:

Reason for failure:

External error occurred

Error Message:

Could not start process with shell command : '/opt/mqm/bin/runmqsc <queue manager name>

Detailed Error Message:

Plugin was unable to execute target service

We have a collector installed and running on the MQ server, connecting to the dT server. When we configure the MQ monitor, we select

- WS MQ bin dir: /opt/mqm/bin

- Object type: Queue

- Host: <the MQ server name>

Any ideas what else we can check? What we found weird is that the path in the error shows a single quotation mark in front of the path i.e. '/opt/mqm/bin - not sure if the system actual puts that in or whether it's just part of the error message.

The "runmqsc" command/executable does exist on the MQ server in the bin dir.

MQ version: 7.0.1.4 running on Sun Solaris 10 SPARC 64

plugins
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Rajesh J. avatar image
Rajesh J. answered ·

Daniel

Did that work for you, I have a Websphere MQ POC starting next week and I plan to use this plugin. Any updates?

Thanks

Rajesh

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Rajesh,

I did not had any luck using this plugin yet. But it may be something on my workstation setup that is messing things up.

I would advise you try it and be ready to install Eclispe and add a few trace here and there.

Daniel.

0 Likes 0 · ·
Daniel L. avatar image
Daniel L. answered ·

Hi,

Tomorrow morning is a bit crowded, but tomorrow afternoon should be fine.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Asad A. avatar image
Asad A. answered ·

Daniel,
Do you have time tomorrow (Thu) to look at this problem? I would be happy to help you in resolving it.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Daniel L. avatar image
Daniel L. answered ·

I got it to execute without error by removing the env part from getRuntime().exec.

While it solved the problem temporarly, I'm not sure it is the way to go. I'll need to do more testing .

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Daniel L. avatar image
Daniel L. answered ·

Asad,

Yes the error in the path was voluntary, I needed to see if something was executed or not.

If the path is corrected, then I have the could not retrieve the queue manager status error and I don't have much information to figure out why.

I added a few trace and here is the output

2012-09-19 07:42:51 INFO ConnectionMethod@ee8add96-2b74-4844-9185-4d085203878e Sending command string: "C:\Program Files\IBM\WebSphere MQ\bin\dspmq "
2012-09-19 07:42:51 INFO LocalConnectionMethod@ee8add96-2b74-4844-9185-4d085203878e Command: "C:\Program Files\IBM\WebSphere MQ\bin\dspmq "
2012-09-19 07:42:51 INFO LocalConnectionMethod@ee8add96-2b74-4844-9185-4d085203878e Env:
2012-09-19 07:42:51 INFO LocalConnectionMethod@ee8add96-2b74-4844-9185-4d085203878e output:
2012-09-19 07:42:51 INFO LocalConnectionMethod@ee8add96-2b74-4844-9185-4d085203878e outerr:

So the actual Runtime.getRuntime().exec returns nothing, I'll have to investigate this one

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Asad A. avatar image
Asad A. answered ·

Daniel,
I see that there is an error in the path you have specified for the dspmq executables. From the error:
Could not start process with shell command : 'C:\Program Files\IBM\WebSphere MQ\bi/dspmq

looks like you have put "bi" instead of "bin" in the path.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Daniel L. avatar image
Daniel L. answered ·

Hi,

I too have an error with this plugin.

dynaTrace Collector 4.2.0
com.dynatrace.plugins.mq_2.0.0

The collector is running as MUSR_MQADMIN (I don't think this should be, but for the test I'm ok with it)

error is : Could not retrieve queue manager 'SANDBOX2' status.

If I introduce an error in the path to the MQ binary the error is :

Could not start process with shell command : 'C:\Program Files\IBM\WebSphere MQ\bi/dspmq

So I guess the collector config is ok once the path is set properly.

If I run the mqdsp command myself I obtain the following

QMNAME(SANDBOX1) STATUS(Running)
QMNAME(SANDBOX2) STATUS(Ended immediately)
QMNAME(SANDBOX3) STATUS(Ended immediately)
QMNAME(TESTSSL_A) STATUS(Ended immediately)
QMNAME(TESTSSL_B) STATUS(Ended immediately)

Any idea anyone?

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Andre V. avatar image
Andre V. answered ·

Thanks Asad, appreciate your help!

André

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Asad A. avatar image
Asad A. answered ·

Andre,

For this plugin to work, the collector must be started by a user who can successfully run the following commands:

1. mqsilist

2. runmqsc <QMgrName>

Generally, customers using this plugin use the MQ admin user to start the dynaTrace collector. This way the collector gets the permission to run the above commands.

Asad

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Andre V. avatar image
Andre V. answered ·

Asad,

Thanks we managed to get the monitor working. Still not 100% sure what the exact cause was, but it seems to have been relating to permissions and the user used to start the collector. Their UNIX admin changed permissions on the startup script that is sitting under init.d

Once he made those changes and restarted the collector, we managed to connect successfully. If I remember correctly, he changed permissions from the MQ user to root and started it as root.

Which brings me to another point: the docs states a dynatrace user should be created and given the necessary permissions and privileges from an MQ point of view. Does this user also need to own/have permissions for the dT Collector which is installed on the MQ server? If so, what should these be? Any specifics re: the MQ privileges?

André

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.