Skip to content

Fix PRE-38200 #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ If this extension is configured for **CLIENT** transport type
### Dependencies
The extension has a dependency on the following jar's depending on IBM MQ version:

* v8.0.0 and above
* v9.2.4.0 and above
```
org.json.jar
com.ibm.mq.allclient.jar
```
* v8.0.0 - v9.2.3.0
```
com.ibm.mq.allclient.jar
```
Expand All @@ -44,11 +49,16 @@ In case of **CLIENT** transport type, IBM MQ Client must be installed to get the
## Installation
1. To build from source, clone this repository using `git clone <repoUrl>` command.
2. Create a `lib` folder in "websphere-mq-monitoring-extension" and copy the following jars in the `websphere-mq-monitoring-extension/lib` folder. (These jars are shipped with your Websphere MQ product itself)
* For MQ v8.0.0 and above
* v9.2.4.0 and above
```
org.json.jar
com.ibm.mq.allclient.jar
```
* For other versions, please comment the "com.ibm.mq.allclient" dependency in pom.xml and uncomment the following dependencies. Then add these dependencies in `websphere-mq-monitoring-extension/lib` folder
* v8.0.0 - v9.2.3.0
```
com.ibm.mq.allclient.jar
```
* For other versions
```
com.ibm.mq.commonservices.jar
com.ibm.mq.jar
Expand All @@ -64,6 +74,10 @@ connector.jar
* **Binding** : Requires WMQ Extension to be deployed in machine agent on the same machine where WMQ server is installed.
* **Client** : In this mode, the WMQ extension is installed on a different host than the IBM MQ server. Please install the [IBM MQ Client](https://developer.ibm.com/messaging/mq-downloads/) for this mode to get the necessary jars as mentioned previously.
6. Edit the classpath element in WMQMonitor/monitor.xml with the path to the required jar files.
```
<classpath>websphere-mq-monitoring-extension.jar;/opt/mqm/java/lib/com.ibm.mq.allclient.jar;/opt/mqm/java/lib/org.json.jar</classpath>
```
OR
```
<classpath>websphere-mq-monitoring-extension.jar;/opt/mqm/java/lib/com.ibm.mq.allclient.jar</classpath>
```
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.appdynamics.extensions</groupId>
<artifactId>websphere-mq-monitoring-extension</artifactId>
<version>7.0.6</version>
<version>7.0.7</version>
<packaging>jar</packaging>
<name>websphere-mq-monitoring-extension</name>
<url>http://maven.apache.org</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/conf/monitor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<argument name="config-file" is-required="false" default-value="monitors/WMQMonitor/config.yml"/>
</task-arguments>
<java-task>
<classpath>websphere-mq-monitoring-extension.jar;/opt/mqm/java/lib/com.ibm.mq.allclient.jar</classpath>
<classpath>websphere-mq-monitoring-extension.jar;/opt/mqm/java/lib/com.ibm.mq.allclient.jar;/opt/mqm/java/lib/org.json.jar</classpath>
<impl-class>com.appdynamics.extensions.webspheremq.WMQMonitor</impl-class>
</java-task>
</monitor-run-task>
Expand Down