Running the WebSphere Application Server monitoring extension
Controlling the WebSphere Application Server monitoring extension on Windows or UNIX
- Open a command prompt and change to the directory containing the distributed files.
Enter the monitoring extension command qpwasmon (Windows) qpwasmon.sh (UNIX) followed by the required command parameter.
To list all available command parameters, enter:
For Windows: qpwasmon --help
For UNIX: ./qpwasmon.sh --help
For example, in Windows qpwasmon --start starts the monitoring extension; in UNIX ./qpwasmon.sh --start starts the monitoring extension.
(UNIX only) WebSphere Application Server monitoring extension runs as a Java process. If you want to work directly with the process, use the ps command to find the active Java processes.
Pruning the monitored types
To reduce the number of types monitored and potentially save on system resources, you can edit ComMQSoftwareWASMonitor.xml to restrict the number of types qpwasmon monitors. ComMQSoftwareWASMonitor.xml is delivered with a complete list of all monitored types and a number of MonitoredType categories, all of which are commented out by default. The composition of the monitored type categories is based on customer requests.
This procedure can be applied to ComMQSoftwareWASMonitor.xml for each separate platform.
- Open ComMQSoftwareWASMonitor.xml in a text editor.
- Uncomment the MonitoredType categories that contain the types you want to monitor. Do this in each category by moving the close comment (-->) from the end of the category to the end of the category title line as shown in the examples below.
Comment in or comment out any of the individual monitored types within the category depending on whether you want them monitored (uncomment) or not monitored (comment out).
The first example shows the supplied, unedited database category in ComMQSoftwareWASMonitor.xml. The second example shows an edited version where the entire category has been uncommented and the third monitored type has been commented out. These edits mean that the first and second types only are monitored.Supplied, commented-out database category in ComMQSoftwareWASMonitor.xml
<!-- Database Category
<MonitoredType name="ComMQSoftwareWASJDBCConnectionPool" typeId="200063" desc="WAS6 JDBC Connection Pool" jmxKey="connectionPoolModule">
</MonitoredType>
<MonitoredType name="ComMQSoftwareWASJDBCProvider" typeId="200065" desc="WAS6 JDBC Provider" jmxKey="JDBCProvider">
</MonitoredType>
<MonitoredType name="ComMQSoftwareWASJDBCDataSource" typeId="200064" desc="WAS6 JDBC Data Source" jmxKey="JDBCDataSource">
</MonitoredType>
-->Edited database category
<!-- Database Category -->
<MonitoredType name="ComMQSoftwareWASJDBCConnectionPool" typeId="200063" desc="WAS6 JDBC Connection Pool" jmxKey="connectionPoolModule">
</MonitoredType>
<MonitoredType name="ComMQSoftwareWASJDBCProvider" typeId="200065" desc="WAS6 JDBC Provider" jmxKey="JDBCProvider">
</MonitoredType>
<!-- <MonitoredType name="ComMQSoftwareWASJDBCDataSource" typeId="200064" desc="WAS6 JDBC Data Source" jmxKey="JDBCDataSource"
</MonitoredType>
-->- To add a type to monitor, copy and paste it from the superset of types in the file into any of the MonitoredType categories. Change the name from Type to MonitoredType and close the line with </MonitoredType>.
- Save ComMQSoftwareWASMonitor.xml.
To remove a WAS Network Deployment Cell from monitoring
- Stop the qpwasmon extension.
- Navigate to the agent folder and run qpreg to unmonitor the WAS Cell or Server. For example:
./qpreg -u "ComMQSoftwareWASMonitor" " ComMQSoftwareWASCell" "yourCellName"