Pre-requisites for Monitoring the IBM WebSphere Application Server

eG Enterprise provides different monitoring models for IBM WebSphere Application Server based on the WebSphere version being monitored. The WebSphere Application – 4/5.x monitoring model is used for WebSphere Application Server 4.0 and 5.1, while the WebSphere Application monitoring model is used for WebSphere Application Server 6.0 and above.

The prerequisites for configuring and monitoring IBM WebSphere Application Server vary depending on the WebSphere version and the monitoring model being used. This section provides the configuration and setup requirements for the supported WebSphere Application Server versions to enable eG Enterprise to monitor the server effectively.

In the case of the WebSphere application server version 6.0 and above, the eG agent uses the JMX architecture supported by the WebSphere server to gather the required metrics. The section given below explains the steps involved in configuring and monitoring a WebSphere Application Server 6.0 (and above).

Configuring a WebSphere Application Server 8.x to Work with the eG Agent

To monitor a WebSphere Application server 8.x (and above), a specific WebSphere monitoring eG component has to be installed on it. If the WebSphere server to be monitored uses a SOAP connector port for its internal communications, then the egurkha6.ear component will have to be installed on the server. On the other hand, if the target WebSphere server uses an RMI port for communicating internally, then the egurkha6rmi.ear component should be installed on the server. Before installing either of these components on a WebSphere server, do the following:

  • Copy the egurkha6.ear (or egurkha6rmi.ear) file from the <EG_INSTALL_DIR>\lib directoy (on Windows; on Unix, this will be /opt/egurkha/lib) to any temporary location on the eG agent host.

  • Rename the file in the temporary folder as egurkha.ear.

  • Copy the egurkha.ear file back to the <EG_INSTALL_DIR>\lib directoy (on Windows; on Unix, this will be /opt/egurkha/lib).

Then, follow the steps given below to perform the installation.

  1. Login to the WebSphere Administrative Console by first accessing the URL: http://<IP/hostname of the WebSphere server>:<WebSpherePort>/, and then provide the user ID and password of the Primary Administrator. The WebSphere Administrative Console will then appear.

  2. The first step towards installation is to ensure that the user installing the WebSphere monitoring eG component belongs to the Federated Repositories or an external LDAP directory i.e., Standalone LDAP registry. For this, expand the Security node in the tree- structure in the left panel of the Administrative Console. Click on the Global Security option, and Global Security page appears. If the user belongs to Federated Repositories i.e., if Federated reporsitories option is listed in the Current realm definition text box, then, you can directly proceed to step 4 to install the WebSphere monitoring eG component. If the user belongs to an external LDAP directory i.e., Standalone LDAP registry (see the Identifying if the user belongs to Standalone LDAP registry page), then, in order to collect the metrics, the user should posses Monitor role. Clicking on the Administrative user roles in the Global Security page will subsequently display a page using which you can ensure if the user is indeed assigned Monitor role. If the Monitor role has not been assigned to the user, then, a primary administrator can assign the Monitor role to the user by clicking the Add... button given in this page. Note that this user should be specified against the USER parameter while configuring the tests.

  3. Now, to begin the installation, expand the Applications node in the tree-structure in the left pane, and then click on the New Application sub-node within. Then, from the list of links displayed in the right panel, pick the New Enterprise Application link.

  4. In the page that appears, select the Local file system option, if the egurkha.ear file to be deployed is on the local host, and then specify the full path to the egurkha.ear application in the Full path text box. On the other hand, if the egurkha.ear file is available on a remote host in the environment, then, pick the Remote file system option and specify the full path to the remote egurkha.ear file in the Full path text box below. Typically, the 'ear' file will be available in the /opt/egurkha/lib directory (on Unix; on Windows, it will be the <EG_ INSTALL_DIR>\lib directory). Then, click the Next button.

  5. In the page that is displayed subsequently, select the Fast Path option, and click the Next button.

  6. Using the page that appears next, view the Installation Options, and select the options that you want to enable for your application deployment. Since the default installation settings apply to the egurkha.ear deployment, you need not explicitly enable/disable any specific options in this page. Therefore, simply scroll down the page and click the Next button therein.

  7. In the page that appears, map the egurkha module to the displayed Server, by selecting the check box corresponding to the egurkha module and clicking the Next button.

  8. Then, to map the egurkha web module to the default selection in the Virtual Host drop-down, select the check box corresponding to the egurkha module in the page that appeared, and click the Next button. This will ensure that the egurkha web module is installed on the default virtual host.

  9. Next, a summary of your specifications for egurkha.ear deployment will appear. Scroll down the summary to click the Finish button.

  10. This will trigger the deployment of the egurkha application. The page that displays indicates the progress of the installation. Scroll down this page to determine whether the egurkha application was successfully deployed or not. If application deployment is successful, a message to that effect will appear here.

  11. Then, proceed to save the egurkha application. The first step towards this is to save the changes to the master configuration. Before saving the master configuration, you may want to review the changes effected on it. For this, click the Review link.

  12. The page that appears displays the Total number of changed documents. To view the list of documents that changed, expand the Total changed documents node. To proceed with saving the application, click the Save button.

  13. If the user installing the WebSphere monitoring eG component i.e., the egurkha application belongs to Federated Repositories, then, proceed to start the egurkha application as mentioned in step 22.

  14. Alternately,if the user installing the WebSphere monitoring eG component i.e., egurkha application belongs to a Standalone LDAP registry, then, administrators have to ensure that the user is mapped to the egurkha application before attempting to start the application. For this, follow the Applications -> Application Types -> WebSphere enterprise applications node sequence in the tree-structure in the left panel. From the list of installed applications that appear in the right panel, click the egurkha application. A page will then appear displaying the configuration of the egurkha application.

  15. Clicking the Security role to user/group mapping link in this page will consequently reveal the list of Role associated with the application.

  16. Select the check box preceding the role for which you wish to map the user and click the Map Users... button in this page.

  17. This will take you to a page where you can Search for the user you wish to map with the role by keying in the user name or a partial search string in the Search string text box. The users will then be listed in the Available text box

  18. Now, select the user and move your selection to the Selected list box and then click the OK button. Now, you will be redirected to the previous page, where you could view the role is mapped to the chosen user.

  19. Clicking the OK button will reveal the Configuration page which will prompt you to save the changes made to the master configuration. Before saving the master configuration, you may want to review the changes effected on it. For this, click the Review link.

  20. The page that appears displays the Total number of changed documents. To view the list of documents that changed, expand the Total changed documents node. To proceed with saving the application, click the Save button.

  21. Now, proceed to start the egurkha application. For that, follow the Applications - > Application Types -> WebSphere enterprise applications node sequence in the tree- structure in the left panel. The list of installed applications will then appear in the right panel. Select the check box corresponding to the egurkha application and click the Start button therein to start it.

  22. Once the application is started, a message to that effect will appear.

Configuring a WebSphere Application Server 7.x to Work with the eG Agent

To monitor a WebSphere Application server 7.x (and above), a specific WebSphere monitoring eG component has to be installed on it. If the WebSphere server to be monitored uses a SOAP connector port for its internal communications, then the egurkha6.ear component will have to be installed on the server. On the other hand, if the target WebSphere server uses an RMI port for communicating internally, then the egurkha6rmi.ear component should be installed on the server. Before installing either of these components on a WebSphere server, do the following:

  • Copy the egurkha6.ear (or egurkha6rmi.ear) file from the <EG_INSTALL_DIR>\lib directoy (on Windows; on Unix, this will be /opt/egurkha/lib) to any temporary location on the eG agent host.

  • Rename the file in the temporary folder as egurkha.ear.

  • Copy the egurkha.ear file back to the <EG_INSTALL_DIR>\lib directoy (on Windows; on Unix, this will be /opt/egurkha/lib).

Then, follow the steps given below to perform the installation.

  1. Login to the WebSphere Administrative Console by first accessing the URL: http://<IP/hostname of the WebSphere server>:<WebSpherePort>/, and then providing a valid User ID and Password. The WebSphere Administrative Console will then appear.

  2. Expand the Applications node in the tree-structure in the left pane of the page, and then click on the New Application sub-node within. Then, from the list of links displayed in the right panel, pick the New Enterprise Application link.

  3. In the page that appears, select the Local file system option, if the egurkha.ear file to be deployed is on the local host, and then specify the full path to the egurkha.ear application in the Full path text box. On the other hand, if the egurkha.ear file is available on a remote host in the environment, then, pick the Remote file system option and specify the full path to the remote egurkha.ear file in the Full path text box below. Typically, the 'ear' file will be available in the /opt/egurkha/lib directory (on Unix; on Windows, it will be the <EG_ INSTALL_DIR>\lib directory). Then, click the Next button.

  4. In the page that is displayed subsequently, select the Fast Path option, and click the Next button.

  5. Using the page that appears next, view the Installation Options, and select the options that you want to enable for your application deployment. Since the default installation settings apply to the egurkha.ear deployment, you need not explicitly enable/disable any specific options in this page. Therefore, simply scroll down the page and click the Next button therein.

  6. In the page that appears, map the egurkha module to the displayed Server, by selecting the check box corresponding to the egurkha module and clicking the Next button.

  7. Then, to map the egurkha web module to the default selection in the Virtual Host drop-down, select the check box corresponding to the egurkha module in the page that appeared, and click the Next button. This will ensure that the egurkha web module is installed on the default virtual host.

  8. Next, a summary of your specifications for egurkha.ear deployment will appear. Scroll down the summary to click the Finish button.

  9. This will trigger the deployment of the egurkha application. The page that displays indicates the status of the installation.

  10. Scroll down to determine whether the egurkha application was successfully deployed or not. If application deployment is successful, a message to that effect will appear here.

  11. Then, proceed to save the egurkha application. The first step towards this is to save the changes to the master configuration. Before saving the master configuration, you may want to review the changes effected on it. For this, click the Review link.

  12. The page that appears displays the Total number of changed documents. To view the list of documents that changed, expand the Total changed documents node.

  13. Scroll down to review the complete list of changes. Finally, click the Save button to save the changes.

  14. Now, proceed to start the egurkha application. For that, follow the Applications -> Application Types -> WebSphere enterprise applications node sequence in the tree-structure in the left panel of this page. The list of installed applications will then appear in the right panel. Select the check box corresponding to the egurkha application and click the Start button therein to start it.

  15. Once the application is started, a message to that effect will appear. Finally, log out of the admin console.

Configuring a WebSphere Application Server 6.x to Work with the eG Agent

To monitor a WebSphere Application server 6.x (and above), a specific WebSphere monitoring eG component has to be installed on it. If the WebSphere server to be monitored uses a SOAP connector port for its internal communications, then the egurkha6.ear component will have to be installed on the server. On the other hand, if the target WebSphere server uses an RMI port for communicating internally, then the egurkha6rmi.ear component should be installed on the server. Before installing either of these components on a WebSphere server, do the following:

  • Copy the egurkha6.ear (or egurkha6rmi.ear) file from the <EG_INSTALL_DIR>\lib directoy (on Windows; on Unix, this will be /opt/egurkha/lib) to any temporary location on the eG agent host.

  • Rename the file in the temporary folder as egurkha.ear.

  • Copy the egurkha.ear file back to the <EG_INSTALL_DIR>\lib directoy (on Windows; on Unix, this will be /opt/egurkha/lib).

Then, follow the steps given below to perform the installation.

  1. Login to the WebSphere Administrative Console by first accessing the URL: http://<IP/hostname of the WebSphere server>:<WebSpherePort>/, and then providing a valid User ID and Password. The WebSphere Administrative Console will then appear.

  2. Expand the Applications node in the tree-structure in the left pane of the WebSphere Administrative Console page, and then click on the Install New Application sub-node within.

  3. In the page that appears, select the Local file system option, if the egurkha.ear file to be deployed is on the local host, and then specify the full path to the egurkha.ear application in the Full path text box. On the other hand, if the egurkha.ear file is available on a remote host in the environment, then, pick the Remote file system option and specify the full path to the remote egurkha.ear file in the Full path text box below. Typically, the 'ear' file will be available in the /opt/egurkha/lib directory (on Unix; on Windows, it will be the <EG_ INSTALL_DIR>\lib directory). Then, click the Next button.

  4. Using the page that appears next, view the Installation Options, and select the options that you want to enable for your application deployment. Since the default installation settings apply to the egurkha.ear deployment, you need not explicitly enable/disable any specific options in this page. Therefore, simply scroll down the page and click the Next button therein.

  5. In the page that appears, map the egurkha module to the displayed Server, by selecting the check box corresponding to the egurkha module and clicking the Next button.

  6. Then, to map the egurkha web module to the default selection in the Virtual Host drop-down, select the check box corresponding to the egurkha module in the page that appeared, and click the Next button. This will ensure that the egurkha web module is installed on the default virtual host.

  7. Next, a summary of your specifications for egurkha.ear deployment will appear. Scroll down the summary to click the Finish button.

  8. This will trigger the deployment of the egurkha application. The page that displays indicates the status of the installation.

  9. Scroll down to determine whether the egurkha application was successfully deployed or not. If application deployment is successful, a message to that effect will appear here.

  10. Then, proceed to save the egurkha application. The first step towards this is to save the changes to the master configuration. Before saving the master configuration, you may want to review the changes effected on it. For this, click the Review link.

  11. The page that appears displays the Total number of changed documents. To view the list of documents that changed, expand the Total changed documents node.

  12. Scroll down to review the complete list of changes. Finally, click the Save button to save the changes.

  13. Now, proceed to start the egurkha application. For that, first, click on the Enterprise Applications node in the tree-structure in the left panel of the page. The list of installed applications will then appear in the right panel. Select the check box corresponding to the egurkha application and click the Start button therein to start it.

  14. Once the application is started, a message to that effect will appear. Finally, log out of the admin console.

Enabling Performance Monitoring

To enable performance monitoring for the WebSphere server 6.0 (or above), do the following:

  1. Open WebSphere’s admin console as explained in steps 1-3 of Configuring a WebSphere Application Server 8.x to Work with the eG Agent

  2. In the screen that appears, expand the Monitoring and Tuning node in the left pane, and click on the Performance Monitoring Infrastructure (PMI) option within.

  3. As you can see, the right pane of this page displays the list of existing application servers. Now, click on the server that has been configured for monitoring by eG.

  4. In the page that appears, select the Enable Performance Monitoring Infrastructure (PMI) option, and then click the Apply and OK buttons to register the changes.

  5. Finally, restart the WebSphere server. For that, first stop the server using the command ./stopServer.sh <servername>, and then, start it using the command ./startServer.sh <servername>. Both these commands are available in the <WAS_HOME>/bin directory, where <WAS_HOME> is the install directory of the WebSphere server.

Configuring the eG Agent to Collect JVM-related Metrics from the WebSphere Server 6.1 and 7.0

By default, no tests are mapped to the JVM layer of the WebSphere monitoring model. If need be, you can map certain key tests with this layer, and configure these tests to report critical statistics related to the WebSphere server’s JVM. These statistics typically reveal the following:

  • The count of classes loaded/unloaded (Java Classes test)

  • JVM thread usage (JVM Threads test)

  • CPU and memory usage of the JVM (JVM Cpu Usage test and JVM Memory Usage test)

  • The effectiveness of the JVM’s garbage collection activity (JVM Garbage Collections test)

  • The uptime of the JVM (JVM Uptime test)

  • Whether JMX is currently enabled/disabled on the target WebLogic server (JMX Connection to JVM test)

  • The count and status of file descriptors (JVM File Descriptors test)

These key tests are disabled by default for the WebSphere server. These tests, if enabled, connect to the JRE used by the WebSphere application server to pull out the above-mentioned metrics. Prior to enabling these tests therefore, you should configure the eG agent to connect to the JRE and collect the required metrics, using either of the following methodologies:

  • JMX (Java Management Extensions)

  • SNMP (Simple Network Management Protocol)

Since both JMX and SNMP support are available for JRE 1.5 and above only, these tests should be enabled only if the WebSphere server being monitored runs JRE 1.5 and above. Once the JRE version requirement is fulfilled, you must proceed to enable the JMX support for the JRE or SNMP support for the JRE, before enabling the tests. If you choose to use JMX for pulling out the desired metrics from the JRE, then the following broad steps need to be followed:

  • First, determine whether the JMX requires no authentication at all, or requires authentication (but no security)

  • If JMX does not require authentication, follow the steps below:

    • Login to the target WebSphere server.

    • Edit the management.properties file that is used by the JRE of the target WebSphere server, and configure the following in it:

      • The JMX remote port

      • Whether JMX is SSL-enabled or not

      • Whether JMX requires authentication or not

      • To know how to configure these, refer to the Monitoring Java Applications document.

  • Save the file.

If the JMX requires authentication (but no security), follow the steps below:

  1. Login to the target WebSphere server. If the server is executing on a Windows host, then, login to the host as a local/domain administrator.

  2. Next, copy the jmxremote.password.template file in the <JAVA_HOME>\jre\lib\management folder to any other location on the host, rename it as as jmxremote.password, and then, copy it back to the <JAVA_HOME>\jre\lib\management folder.

  3. Next, edit the jmxremote.password file and the jmxremote.access file to create a user with read-write access to the JMX. To know how to create such a user, refer to Monitoring Java Applications document.

  4. Then, proceed to make the jmxremote.password file secure by granting a single user “full access” to that file. To know how to achieve this, refer to the Monitoring Java Applications document.

  5. Edit the management.properties file that is used by the JRE of the target WebSphere server, and configure the following in it:

    • The JMX remote port

    • Whether JMX is SSL-enabled or not

    • Whether JMX requires authentication or not

    • The full path to the jmxremote.access file

    • The full path to the jmxremote.password file

  6. To know how to configure these, refer to the Monitoring Java Applications document.

  7. Then, save the file.

  8. Connect to the Admin console of the target WebSphere server using the URL: http://<WebSphereServerIP>:<WebSpherePort>.

  9. The default port number of the WebSphere server is 9062.

  10. Provide the credentials for logging into the admin console, if prompted.

  11. Once the console opens, follow the node sequence, Server -> Server Types -> WebSphere application servers, in the tree-structure in the left pane of the console.

  12. From the list of application servers listed in the right panel, choose the server being monitored by clicking on it.

  13. Then, follow the node sequence Server Infrastructure -> Java and Process Management -> Process definition -> Java Virtual Machine.

  14. In the Generic JVM arguments text box of the Configuration section tab page that appears, add the following line:

    -Djavax.management.builder.initial= -Dcom.sun.management.jmxremote

  15. Then, click the Apply and OK buttons.

  16. Finally, stop and start the target WebSphere server.

After installation of the eG Agent, please follow the steps given in Managing IBM WebSphere Application Server 6.0 and above to configure eG to monitor WebSphere Application from the eG Manager.

Configuring a WebSphere Application Server 5.1 to work with the eG Agent

To configure the WebSphere application server 5.1, do the following:

  1. Open Internet Explorer, and type the following URL: http://<WebSphereIP>:<WebSpherePort>/, to connect to the WebSphere Application server’s administration console.

  2. A Login dialog box requesting a User Id will appear. In that, specify the login user id page, specify a user id to login to the admin console, and click the OK button.

  3. In the screen that appears next, select the Install New Application link in the left pane, to install a new application on the WebSphere server.

  4. Upon clicking the link, the Administrative console appears. Select the Local path option in the right pane and specify the full path to the location of the egurkha.ear file that is to be deployed on the WebSphere server.

  5. Then, click the Next button to proceed with the deployment.

  6. In the page that appears, select the Generate Default Bindings check box in the right pane and click the Next button to proceed.

  7. In the right pane of the page that appears, provide egurkha as the Application Name and click the Next button.

  8. Next, map the modules in the application with the servers. Since our application consists of only one module, egurkha, the same will be displayed under the Module column in the right pane. To map the egurkha module with the current server, select the check box alongside it, and click the Next button.

  9. Next, you will be prompted to map security toles to users/groups. If security has been enabled for the WebSphere server, then this mapping is mandatory. If not, simply click on the Next button to switch to the next step of the installation. In the case where security is enabled, it is recommended that you always map the administrator role with a specific admin user/group for monitoring purposes. To achieve this, first select the administrator role by clicking on the check box alongside it.

    Note:

    To determine whether security has been enabled for a WebSphere server or not, try logging into the administrative console of the WebSphere server. If you are requested for a user name and password, it is a clear indication that security has been enabled. On the contrary, if you are prompted only for a User ID, then it denotes that security has not been enabled.

  10. Then, click on the Lookup users button to associate the role with an administrator user or group.

  11. In the Lookup users/groups page that appears, specify the user ID that you want to search for and map to the administrator role in the Search String text box. Then, click on the Search button.

  12. All user IDs that match the specified Search String will appear in the Available list box. From this list box, select the users to be mapped to the administrator role, and click on the >> button to transfer the selection to the Selected list. Then, click on the OK button.

  13. You will then return to the Install New Application page, where the selected users will appear against the administrator role. Click on the Next button to proceed.

  14. View a summary of the chosen install options, and click the Finish button to begin installation.

  15. The subsequent screen will indicate the successful installation of the egurkha application. Now, click on the Save to Master Configuration link in the right pane of this screen.

  16. Next, click on the Save button in the page that appears to update the master repository with the changes.

  17. After updating the master configuration, click on the Update Web Server Plugin link under the Environment section in the left pane. Then, to update the plugin, click on the OK button in the right pane of the page that appears.

  18. If the web server plugin is updated successfully, the screen that appears next will display a message to that effect.

  19. Finally, log out of the admin console and restart the WebSphere server. For that, first stop the server using the command ./stopServer.sh <servername>, and then, start it using the command ./startServer.sh <servername>. Both these commands are available in the <WAS_ HOME>/bin directory, where <WAS_ HOME> is the install directory of the WebSphere server.

Configuring WebSphere Application Server 4.0 to work with the eG Agent

To monitor a WebSphere Application server 4.0, a specific WebSphere monitoring eG component has to be installed on it. In order to configure a WebSphere Application server for eG monitoring, do the following:

  1. Start the WebSphere Application server, by typing the command WAS_ HOME/bin/adminserver.sh, where WAS_HOME is the home directory of the WebSphere Application server.

  2. Start the WebShere Advanced Administrative Console using the command adminclient.sh.

  3. In order to install the eG component, right-click on Enterprise Applications in the left pane and select Install Enterprise Application from the menu that pops up.

  4. In the dialog box that appears, select the Install Application (*.ear) option and specify the Path to the egurkha.ear file (which will be located in <EG_ HOME_ DIR>/egurkha/lib directory, where <EG_HOME_DIR> is the directory in which eG has been installed). The Browse button can also be used for locating the file. Next, name the new component as egurkha by specifying the same against the Application Name text box. Then, click the Next > button in the dialog box.

  5. As Mapping of users to roles is not required for our component, click the Next > button in the Mapping Users to Roles dialog box.

  6. The dialog box that appears on clicking the Next > button is the Mapping EJB RunAs Roles to Users dialog box. As this mapping also does not apply to the eG component, click the Next > button in the dialog box to proceed with the installation.

  7. Once you arrive at the Binding Enterprise Beans to JNDI Names dialog box, click the Next > button and move on.

  8. This will take you to the Mapping EJB References to Enterprise Beans dialog box , where you would have to click the Next > button and navigate to the next step of the installation process.

  9. The Mapping Resource References to Resources dialog box will then come up. Click the Next > button in this dialog box to proceed.

  10. In the Specifying the Default Datasource for EJB Modules dialog box that appears, click the Next > button to move to the next step.

  11. The next dialog box will prompt you to specify the Datasource for individual CMP Beans. Once again, click the Next > button to proceed.

  12. In the dialog box that appears soon after, you need to select the virtual hosts on which the modules within the new component are to be installed. Just click the Next > button in the dialog box and move on.

  13. The next dialog box is where we select the application server on which the component egurkha is to be installed. For that, first, click the Select Server… button.

  14. When this is done, a dialog box will appear listing the Component Servers available and the nodes to which they are connected. Select the server on which the new component is to be installed and click the OK button in the dialog box.

  15. You will then return to the Selecting Component Servers dialog box. Here, you can see the application server you selected appear against the Module egurkha. Click the Next > button to view a summary of the settings that you had defined.

  16. After viewing the summary information, end the installation by clicking the Finish button in the Completing the Application Installation Wizard dialog box.

  17. Click the OK button in the message box that will pop up on successful installation of the eG component.

  18. Clicking OK will take you back to the Administrative Console. Refresh the contents of the console by clicking the Refresh button on the tool bar.

  19. Then, regenerate the Webserver plugin by expanding the Nodes option in the tree-structure, selecting the node on which you installed the new component, right-clicking on it and picking the Regen Webserver Plugin option from the shortcut menu. Doing so will update the Webserver Plugin with the changes made to the configuration of the WebSphere Application Server.

  20. Then, to ensure that the changes made take effect, stop the application server (if it has been started already) and then restart it. In order to do this, expand Nodes in the tree-structure, select the application server on which the new component egurkha has been installed, right- click on it, and select Stop from the pop-up menu. Later, right-click on the server once again, but this time, select Start from the pop- up menu.

Now, to run the application, follow the steps given below:

  1. Open the Administrative Console by following steps 1 and 2.

  2. Then, expand Enterprise Applications in the tree-structure, select the egurkha application, right-click on it and choose Start from the menu.

Setting Instrumentation Levels

The resources in a WebSphere administrative domain are instrumented so that statistical data can be collected. Instrumentation refers to the mechanism by which some aspect of the running system is measured. Each resource category has an instrumentation level that determines which measurements are available to be collected for that category. Before you commence monitoring of WebSphere Application servers, the instrumentation levels of resource categories need to be set. To do so, follow the steps given below:

  1. In the Administrative Console, highlight your application server.

  2. Then, from the series of tabs listed in the right pane, select Services as shown in the Selecting the Services.

  3. From the Services displayed therein, choose Performance Monitoring Settings and click the Edit Properties… button.

  4. In the dialog box that appears, expanding the Performance node will bring to light the resource categories whose performance can be instrumented. To instrument a resource category, select it and then choose High as the Monitoring Level of the same. This ensures that all the key measurements are collected.

  5. Choosing “High” as the monitoring level is a must for eG to Monitor your WebSphere Application Server.

Enabling Performance Monitoring

To enable performance monitoring for the WebSphere server 5.0, do the following:

  1. Open WebSphere’s admin console as explained in steps 1-3 given in Pre-requisites for Monitoring the IBM WebSphere Application Server.

  2. In the screen that appears, expand the Servers node in the left pane, and click on the Application Servers link within.

  3. As you can see, the right pane of the page displays the list of existing application servers. Now, click on the server that has been configured for monitoring by eG.

  4. From the list of options displayed in the right pane of the page that appears, select the Performance Monitoring Service link.

  5. In the page that appears, select the Startup check box, choose the Custom option, and set all the variables to X. Alternatively, the variables can also be set to H, but we recommend X. If you set the variables to H, then a few measures may not be available to you. Finally, click on the Apply button to register the changes.

Deploying the egurkha.ear file in a Clustered Environment

If the WebSphere server to be monitored is in a clustered environment, then the ear file deployment should be performed in the following manner:

  1. Open Internet Explorer, and type the following URL: http://<WebSphereIP>:<WebSpherePort>, to connect to the administration console of the Node manager, which manages the application servers in the cluster.

  2. Then, follow step 2 to step 8 of Pre-requisites for Monitoring the IBM WebSphere Application Server.

  3. Next, specify the application server in the cluster on which the egurkha.ear file is to be deployed, by selecting the cluster name from the Clusters and Servers list. Then, select the check box against the egurkha module, click the Apply button, and then the Next button.

  4. Next, you will be prompted to map security roles to users/groups. If security has been enabled for the WebSphere server, then this mapping is mandatory. If not, simply click on the Next button to switch to the next step of the installation. In the case where security is enabled, it is recommended that you always map the administrator role with a specific admin user/group for monitoring purposes. To achieve this, follow step 10 to step 14 of the procedure discussed in Pre-requisites for Monitoring the IBM WebSphere Application Server

  5. A page that displays a summary of the install options chosen will then appear.

  6. Click on the Finish button begin installation of the egurkha application.Then a page will appear indicating the progress of the deployment.

  7. Upon successful installation, a message to that effect will appear. Now, click on the Save to Master Configuration link. Consequently, another page will appear wherein the Save button will have to be clicked in order to save the configuration changes to the node manager.

  8. Finally, log out of the admin console and restart the WebSphere server. For that, first stop the server using the command ./stopServer.sh <servername>, and then, start it using the command ./startServer.sh <servername>. Both these commands are available in the <WAS_ HOME>/bin directory, where <WAS_ HOME> is the install directory of the WebSphere server.

  9. Then, proceed to enable performance monitoring for the application servers to be monitored using the procedure discussed Pre-requisites for Monitoring the IBM WebSphere Application Server.

Verifying the Deployment of the 'egurkha' Application

To verify whether the egurkha application has been deployed properly or not, do the following:

  1. Open the Internet Explorer and specify the following URL in its Address bar: http://<WebSphereIP>:<WebSpherePort>.

  2. If the ear file has been deployed properly, a page displaying "Hello World" will be displayed.

  3. If the ear file has not been deployed, then an error message will appear instead.

After installation of the eG Agent, please follow the steps given in Managing the IBM WebSphere Application – 4/5.x Server to configure eG to monitor WebSphere Application from the eG Manager.