To trace transactions through the CICS® Transaction
Gateway for z/OS, you must configure each instance of the CICS TG daemon with the applicable
implementation of the AGMServerExit request monitoring exit. When you configure
the request monitoring exit, it enables the collection of transaction information that it passes
through the CICS TG Gateway daemon, and sends this information to the IBM® Z APM
Connect Distributed Gateway.
Before you begin
Install and configure the following software before you enable Z APM Connect CICS TG support.
-
Apply the available PTFs to the Z APM Connect z/OS®
components. For more information about the fix packs, see tech note.
-
The CICS TG uses IPIC protocol to connect to the relevant CICS Transaction Server.
Procedure
-
Download the 6.2.0-INSTANA-FP<version_number>-plugins.tar.gz file from
the fix pack package that you can download from Fix Central x86 or Fix Central s390x.
- Run the following command to extract the
6.2.0-INSTANA-FP<version_number>-plugins.tar.gz file:
tar -xvf 6.2.0-INSTANA-FP<version_number>-plugins.tar.gz
The following two files are extracted:
plugins
├── AGM-RequestExit.tar
└── ibm-agm-tmra-plugin-6.2.0-V.jar
- Run the following command to extract the AGM-RequestExit.tar
file:
tar -xvf AGM-RequestExit.tar
The following files are extracted:
AGM-RequestExit
├── AGM-RequestExit-Plugin.jar (for AppDynamics only)
└── AGM-RequestExit.jar
└── agmconfig.properties
└── log4j2.xml
- AGM-RequestExit.jar contains the AGMClientExit and
AGMServerExit classes.
- agmconfig.properties, a sample properties file that you can configure for
monitoring the flow.
- log4j2.xml, a sample configuration file for logging.
Note:
These files also exist on the host side, in the /usr/lpp/IBM/agm directory.
AGMREQE is the .tar file.
- Attach the Z APM Connect supplied server-side monitoring exit to your CICS TG.
- Move the AGM-RequestExit.jar file to the machine on which you are
running CICS TG.
- Add the AGM-RequestExit.jar file to the class
path.
- In the CICS TG .ini file,
add com.ibm.zapm.ctg.exit.AGMServerExit to the requestexits
property.
- Add the following system property to JVM:
AGM.CONF.LOCATION specifies a directory that you use for Z APM
Connect configuration. If you are using an ENV file, then you can add this property to the
CTGSTART_OPTS parameters.
- Add a .properties file, for example,
agmconfig.properties in the configuration directory that specifies the
environment variable AGM_CONF_LOCATION and set the property
bootstrap.servers to the address of your Z APM Connect DG in the form of
hostname:port
.
Note: A sample
agmconfig.properties file is provided with
AGM-RequestExit.tar
- Check the /etc/hosts file in the z/OS system to confirm the hostname
and IP of the DG are defined.
Results
The Z APM Connect request monitoring exits are installed.
To verify that AGMServerExit is attached to the CICS TG, configure agm.ctg.server.logging.level as
INFO and check the log output for the following message: .
AGMG0035I AGMServerExit completed initialization
What to do next
By default, Z APM Connect request monitoring exits log messages at
the INFO level. For more information about how to customize it, see Changing the logging level of request monitoring exits from Z APM Connect.