WebSphere® are configured to use profiles. Therefore, configuration with the Java EE agent involves two steps. The first is to edit to the global setupCmdLine script. These changes only take effect if the environment variable QUEST_DEPLOYMENT_DIRECTORY has been set in your user profile setupCmdLine script. All other profiles ignore the code in the global setupCmdLine script.
Review the following exceptions before you configure your server.
Complete the following steps to configure a WebSphere® environment.
|
2 |
Create a Generic Installation Only integration on the host. For more information, see Creating a Generic Installation for Manual Java EE Agent Integration. |
|
3 |
Open the global setupCmdLine script in a text editor and make the following modifications: |
|
• |
|
• |
UNIX® — Add the following code to the end of the script: |
|
4 |
Set <integrate.cmd/sh> to the name of the integration task you created in step 2. For example: integrate-Generic_installation_only_on_Windows_Install_Configs_and_pre-instrument.cmd. |
|
5 |
Save your modified setupCmdLine script file. |
|
6 |
Locate your profile setupCmdLine script. The default installation places it in WAS_HOME/profiles/<profile_name>/bin. Set the QUEST_DEPLOYMENT_DIRECTORY at the end of the profile script to the Installation directory defined in step 2 to enable monitoring for that profile. |
|
7 |
Save the changes to your profile-specific setupCmdLine script. |
If you are starting your servers, Node agents, or WebSphere® Deployment Managers as a service, create a Windows® Service to use the Java EE agent instrumentation. See the IBM® documentation for instructions on creating and installing a Windows Service with the WASService.exe tool. You can keep your old Windows Service, but ensure that only one service for a particular WebSphere server, Node agent, or WebSphere Deployment Manager has a startup type of Automatic. All others should be set to Manual or Disabled.
When creating a Windows Service to integrate with the Java EE agent, provide an extra argument to the -startArgs option:
" -Dquest.agent.websphere.server"
" -Dquest.agent.websphere.nodeagent"
For WebSphere Deployment Manager use:
" -Dquest.agent.websphere.dmgr"
Use the steps in this section to modify the WebSphere startup scripts.
Review the following exceptions before you configure your server.
Complete the following steps to modify a WebSphere startup script.
After you have modified the startup script, restart the WebSphere® server.
|
CAUTION: Foglight starts a Java EE agent for each instrumented server. When the Java EE agent connects to the Management Server, the Management Server console displays a message to confirm that a Java EE agent has connected. For example: INFO agent licenses assigned; Type: websphere, Host: <hostName>, CPUs: 1; CPU licenses in use: INFO Accepted DCE connection from agent "server1 (WebSphere)" (WebSphere 6.X). The log file for the Java EE agent also contains an INFO message stating that it has connected to the Management Server. |