How to Configure IBM WebSphere JAR Files | Site24x7

How to configure IBM WebSphere JAR files for monitoring using the Site24x7 On-Premise Poller

To monitor IBM WebSphere Application Server using Site24x7, you must configure the required IBM WebSphere JAR files in the Site24x7 On-Premise Poller.

This article explains how to locate the required JAR files, package them using the provided Python script, and add the generated JAR file to the On-Premise Poller.

Prerequisites

Before proceeding, ensure that:

  • IBM WebSphere Application Server is installed and accessible.
  • The Site24x7 On-Premise Poller is installed.
  • Java Development Kit (JDK) and Python 3 are available on the machine where the JAR packaging script will run.
  • You have access to the required IBM WebSphere JAR files.

Step 1: Locate the required IBM WebSphere JAR files

Locate the following JAR files in your IBM WebSphere installation directory.

ComponentJAR fileLocation
Core Administration Clientcom.ibm.ws.admin.client_X.X.X.jar<WAS_HOME>/runtimes/
ORB JARcom.ibm.ws.orb_X.X.X.jar<WAS_HOME>/runtimes/
Security and Encryptioncom.ibm.ws.security.crypto.jar<WAS_HOME>/plugins/
IBM JSSE Provideribmjsseprovider2.jar<WAS_HOME>/java/jre/lib/ext/

Notes
Notes:
  • Replace X.X.X with the corresponding IBM WebSphere release version.
  • <WAS_HOME> refers to the IBM WebSphere installation directory.
  • On newer WebSphere releases with multiple Java SDKs, the IBM JSSE Provider JAR may be located at:
    <WAS_HOME>/java/<version>/jre/lib/ext/

Step 2: Package the IBM WebSphere JAR files

After locating the required JAR files, package them using the provided Python script.

  1. Create a directory

    Create a directory named websphere to store the required JAR files.

    1. mkdir websphere

  2. Copy the JAR files

    Copy all four JAR files listed in Step 1 into the newly created websphere directory.

  3. Download the Python script

    Download the provided shade_ibm_jars.py script to the machine where you intend to package the JAR files.

  4. Run the script

    Execute the following command, specifying the path to the directory containing the IBM WebSphere JAR files:

    1. python3 shade_ibm_jars.py --ibm-dir ~/websphere

    Notes
    Note: The script will download the Jar Jar Abrahams JAR file from Maven.
  5. Locate the generated JAR file
    1. After the script executes successfully, it generates a JAR file.
    2. The script copies the generated JAR file to the On-Premise Poller path and prompts you to restart the poller.
    3. The poller must be restarted for the IBM JAR to be loaded. If you did not restart it when prompted, follow the steps below.

Step 3: Restart the Site24x7 On-Premise Poller

If you did not restart the poller when the script prompted you, restart it manually to apply the changes.

Windows:
  1. Open the Windows Services console by running services.msc.
  2. Locate Site24x7 On-Premise Poller.
  3. Right-click the service and select Restart.
Linux:

The restart procedure depends on your On-Premise Poller version.

For older On-Premise Poller versions:

Stop the poller using:

  1. sudo sh StopServer.sh

Restart the poller using:

  1. sudo nohup ./StartServer.sh >> logs/shell_script.log 2>&1 &

For On-Premise Poller version 6.7.9 and later (installed as a service):

Restart the poller using:

  1. sudo systemctl restart site24x7-onpremise-poller

Once the On-Premise Poller restarts, the configured IBM WebSphere JAR files will be available for use by the poller.

Related article

For more information about configuring and monitoring IBM WebSphere Application Server, refer to this help document.