Configuring Z APM Connect Base in default mode
As product installer, by using the default configuration process, you need to configure a default environment for Z APM Connect Base on your z/OS® systems.
Procedure
Complete the following steps to configure Z APM Connect Base:
-
Create and customize the Base started task (STC) JCL.
-
Copy the
SAGMSAMmemberAGMAPROCto a PDS in your z/OSPROCLIBconcatenation. IfAGMAPROCis not appropriate, you can rename thisPROCto suit your installation standards. -
Modify the JCL of
AGMAPROCto point to your IBM Z® APM Connect data sets. Change the&HLQ JCLparameter in theAGMAPROC JCLto match the high-level qualifier of your IBM Z APM Connect target libraries. -
Ensure that the user ID that is associated with this
AGMAPROC STChas READ access to all the IBM Z APM Connect data sets, and an OMVS segment. The OMVS segment allows thisSTCto use UNIX systems services. - Optional: If you plan to monitor transactions flowing into CICS Transaction Server from IBM MQ, ensure that the user ID associated with theUse the following RACF command to grant the user ID the read access to the profiles of each IBM MQ queue manager:
AGMAPROC STChas READ access to the resources of each IBM MQ subsystem that you want to monitor.
For example, for queue manager MQP1, and started task user ID ZAPMUSER, use this RACF command:PERMIT <MQ_QMNAME>.BATCH CLASS(MQCONN) ID(<USER_ID>) ACCESS(READ)PERMIT MQP1.BATCH CLASS(MQCONN) ID(ZAPMUSER) ACCESS(READ)
-
Copy the
-
Review and customize the
SAGMSAMmemberAGMAPARM, which is pointed to by theAGMAPROC JCL.Update the TTServerString parameter to point to the IP address and port number of the Z APM Connect Distributed Gateway. The value must be in the form oftcp:ip_address:port.Note:- If Z APM Connect DG is installed in OpenShift clusters,
ip_addressmust match the value set for advertisedHostname in transactionProcessor section of the Distributed Gateway values.yaml file;portmust be set to 443 to connect properly.For example,TTServerString=tcp:ingress.apps:443 - If Z APM Connect DG is installed on a Linux Machine with Docker standalone,
ip_addressis the IP address of Z APM Connect DG;portmust be set to 30455 to connect properly.For example,TTServerString=tcp:9.XX.XX.XXX:30455
Attention: If theTTServerString=tcp:<hostname>:<port>statement exceeds 80 characters, allocate theAGMAPARMdataset with RECFM=VB (Record format=variable block) and ensure that the LRECL (Record Length) is greater than the total character count required. This will allow the statement to fit on a single line. - If Z APM Connect DG is installed in OpenShift clusters,
-
If CICS® transactions are monitored by the CICS-MQ adapter, review and customize the
SAGMSAMmemberAGMACMDS, which is pointed to by theAGMAPROC JCL.Ensure that each IBM® MQ subsystem to be monitored has oneAGMQ INITstatement. Uncomment and update theAGMQ INITstatements.Note: Up to 10 IBM MQ regions can be monitored by a single Z APM Connect Base started task. If you plan on monitoring more than 10 IBM MQ regions, you need an extra Z APM Connect Base started task by using a unique SSNM value. For more information, see Creating a second or subsequent Base STC. - If IMS Db2 backend detail information is desired, review and customize the
SAGMSAMmemberAGMACMDS, which is pointed to by theAGMAPROC JCL.Ensure that for each IMS subsystem for which Db2 backend detail information is desired, there is aAGMI SQLINFOstatement. Uncomment and update theAGMI SQLINFOstatements.SQLINFOis OFF by default. -
Add
SAGMMODandSAGMMODPto your z/OS APF list. - If IBM MQ is stopped or restarted for any reason,
you need to either recycle the Base address space or recycle the MQ subsystem by issuing the
AGMQ INIT dispatcher command. Note: AGMQ TERM command needs to be issued to clear obsolete entry in subsystem communication table's extension. Otherwise the table will fill up over time and cause Z APM Connect to issue an AGMQ0034E error. See command details in the reference section: Base operation.
- Before recycling the Z APM Connect Base, issue the AGMQ TERM command for all MQ subsystems connected to the Base.
- Before recycling the MQ subsystem, issue the AGMQ TERM command for each MQ subsystem to be recycled.
- Verify that the maximum dataspace size configured for your installation is set to at least 160 MB to support the ZAPM Base component (AGMAPROC), which allocates a dataspace of that size. For more information on setting dataspace limits, refer to Specifying REGION and MEMLIMIT values (SMFLIMxx).