You can customize the zRemote module to enable optional features and optimize its performance.
The following configuration files remain after a zRemote update or uninstallation. You can change them.
You must restart the zRemote service to apply new settings.
The zRemote module user configuration file (zremoteagentuserconfig.conf) allows you to override the default configuration defined in ruxitagent.conf.
/var/lib/dynatrace/zremote/agent/conf/zremoteagentuserconfig.conf
The watchdog user configuration file (watchdoguserconfig.conf) allows you to override the default configuration defined in oneagentzwatchdog.ini.
/var/lib/dynatrace/zremote/agent/conf/watchdoguserconfig.conf
Available parameters for configuration:
| Parameter | Unit | Default value | Description |
|---|---|---|---|
-healthcheck.heartbeat.timeout | Seconds | 900 | The connection timeout between the zRemote service and your Dynatrace environment |
-healthcheck.memory.limit_absolute | MiB | 500 | Absolute input for the memory calculation limit of the child process |
-healthcheck.memory.limit_percentage | % | 20 | Percentage input for the memory calculation limit of the child process |
Effective limit = percentage limit × available physical memory on the system + absolute limit
For example:
0.2 × 5 GiB + 500 MiB = 1.5 GiB effective memory limit
Host groups help you organize multiple logical partitions (LPARs) that connect to a single zRemote module. You can assign an LPAR to a host group by setting the [HostGroup] attribute in the zremoteagentuserconfig.conf file. An LPAR can belong to only one host group.
To assign an LPAR to a host group, specify the group name between a pair of [HostGroup] attributes. The pair can appear anywhere in the zremoteagentuserconfig.conf file.
[HostGroup]<LPAR_Name1>=<HostGroupName><LPAR_Name2>=<HostGroupName>[HostGroup]
The LPAR name is the 8-character logical partition name defined by the LPARNAME() parameter in the IEASYMxx member of z/OS.
The LPAR name is also displayed in the Properties and tags section on the host page.
The following requirements apply to the <HostGroupName> string:
-), underscores (_), and dots (.)dt.This example adds three LPARs (LPARA, LPARB, and LPARC) to a single host group, TEST_HOST.
[HostGroup]LPARA=TEST_HOSTLPARB=TEST_HOSTLPARC=TEST_HOST[HostGroup]
This example assigns each LPAR to a separate host group.
[HostGroup]LPARA=TEST_HOSTLPARB=PROD_HOSTLPARC=PERF_HOST[HostGroup]
zremoteagentuserconfig.conf file and migrate your host group settings from the ruxitagent.conf file.zremoteagentuserconfig.conf file.zRemote module version 1.339+
You can add metadata to your LPARs, Customer Information Control System (CICS), and Information Management System (IMS) data (such as processes and metrics) by defining
primary fields and tags in the zremoteagentuserconfig.conf file. The following example shows the
format of the supported primary fields and tags.
Beginning with zRemote module version 1.351, you can simplify the [Tags] configuration. Before version 1.351:
Beginning with zRemote module version 1.353, you can also set dt.space and the deployment release fields deployment.release_product, deployment.release_stage, and deployment.release_version. These fields follow the same global and LPAR-specific override rules as the other values.
[HostGroup]LPARA=DEV_HOSTLPARB=TEST_HOSTLPARC=PROD_HOST# Note: Prior to the zRemote module version 1.351, if the LPAR name is different from system name,# the LPAR entries in the [HostGroup] block must be replicated, using the system names as keys.# The specific blocks within [Tags] need to use the system name.[HostGroup][Tags]dt.host_group.id=<global-value--applied to all LPARs>dt.security_context=<global-value--applied to all LPARs>dt.cost.costcenter=<global-value--applied to all LPARs>dt.cost.product=<global-value--applied to all LPARs>dt.space=<global-value--applied to all LPARs>deployment.release_product=<global-value--applied to all LPARs>deployment.release_stage=<global-value--applied to all LPARs>deployment.release_version=<global-value--applied to all LPARs>primary_tags.<field_name>=<global-value--applied to all LPARs># Note: prior to the zRemote module version 1.351 the [HostGroup] block is# required and the specific LPAR override blocks are mandatory even if they are empty.[LPARA]dt.host_group.id=<lparA-value--override-global-value>dt.security_context=<lparA-value--override-global-value>dt.cost.costcenter=<lparA-value--override-global-value>dt.cost.product=<lparA-value--override-global-value>dt.space=<lparA-value--override-global-value>deployment.release_product=<lparA-value--override-global-value>deployment.release_stage=<lparA-value--override-global-value>deployment.release_version=<lparA-value--override-global-value>primary_tags.<field_name>=<lparA-value--override-global-value>[LPARA][LPARC]dt.host_group.id=<lparC-value--override-global-value>dt.security_context=<lparC-value--override-global-value>dt.cost.costcenter=<lparC-value--override-global-value>dt.cost.product=<lparC-value--override-global-value>primary_tags.<lparC_field_name>=<lparC-value--applied to only LPAR C>[LPARC][Tags]
In this example:
LPARB has no tags or primary fields, so it inherits the global values defined in the first [Tags] section.LPARA and LPARC override the global values with their own values.LPARC defines a specific primary field that applies only to LPARC.
The LPAR name is as defined for the host groups above.The zRemote log contains entries about the global tags and primary fields, as well as the specific tags and primary fields for each LPAR. The zRemote module ignores tags and primary fields that fail validation, and logs them as warnings in the zRemote log.
In this example (where the system name and the LPAR name are the same), you need the [HostGroup] block and the specific LPAR (within [Tags]) blocks.
[HostGroup]LPARA=DEV_HOSTLPARB=TEST_HOSTLPARC=PROD_HOST# Note: the system name and LPAR name are the same.[HostGroup][Tags]dt.security_context=<Prod_SC># Note: prior to zRemote module version 1.351, the [HostGroup] block is# required and the specific LPAR override blocks are mandatory even if they are empty.[LPARA]dt.security_context=<Test_SC>[LPARA][LPARB][LPARB][LPARC][LPARC][Tags]
In this example (with the LPAR name different from the system name), you need the [HostGroup] block and the specific LPAR (within [Tags]) blocks.
[HostGroup]LPARA=DEV_HOSTLPARB=TEST_HOSTLPARC=PROD_HOST# Note: the system name is used here and within the [Tags] blockSYSA=DEV_HOSTSYSB=TEST_HOSTSYSC=PROD_HOST[HostGroup][Tags]dt.security_context=<Prod_SC># Note: prior to zRemote module version 1.351, the [HostGroup] block is# required and the specific system override blocks are mandatory even if they are empty.[SYSA]dt.security_context=<Test_SC>[SYSA][SYSB][SYSB][SYSC][SYSC][Tags]
In this example, one security context applies to all hosts. For overrides, see the examples above.
[Tags]dt.security_context=<Prod_SC>[Tags]
Dynatrace can provide insight into SQL statements based on tracing of Db2 and DL/I database calls. Dynatrace shows these SQL statements, for example, as:
The string represents the program name (the database request module, or DBRM, name), the line number, and the section number.

zRemote module version 1.241+ Dynatrace can provide deeper insight into Db2 database calls by fetching the full SQL statements from the Db2 catalog. With the SQL statement fetch feature enabled, Dynatrace shows the SQL statements, for example, as:

The SQL statement fetch feature is turned off by default. To turn it on:
Install and configure the International Business Machines (IBM) Data Server Driver for Open Database Connectivity (ODBC) and CLI software on Linux or Windows. Further reading: IBM Db2 ODBC CLI driver Download and Installation information.
In the installation step, note the location of the CLI driver library:
libdb2.so for Linuxdb2app64.dll for WindowsBefore you configure the driver, you might need to ask the database administrator (DBA) for the database connection information, such as credentials, location, and IP address and port. In the configuration step, note the Db2 aliases (or DSN).
You need both in the next steps.
\<cli-driver-path\>/bin/db2cli validate -connect -database \<db-location\>:\<ip\>:\<port\> -user \<id\> -passwd \<pw\>\<cli-driver-path\>/bin/db2cli validate -connect -dsn \<db-alias\>
In the zremoteagentuserconfig.conf file of the zRemote module, define the CLI driver library and Db2 alias group (similar to defining host groups), for example:
# Linuxcli_driver_lib=/opt/IBM/CLIDRIVER/lib/libdb2.so# ... or Windowscli_driver_lib=C:/IBM/CLIDRIVER/bin/db2app64.dll[DbAlias]dbHost1.dbName1=alias1dbHost2.dbName2=alias2dbHostN.dbNameN=aliasN[DbAlias]# Beginning with zRemote 1.279 it is possible to set the new flag sqlStmtExtended, if# true the full (fetched) SQL statement is appended with its old (unfetched) format,# for example, from an example above "FETCH (GETTAB INTO : H , : H , : H , : H , : H)"# would be shown as "FETCH (GETTAB INTO : H , : H , : H , : H , : H) (PROGNAME;165;3)".# The default is false. Note: if enabled this setting would affect the aggregation count.sqlStmtExtended=false
where dbHost is the z/OS System Management Facilities (SMF) ID and dbName is the Db2 subsystem name. Values are case-sensitive.
Optional Define sqlStmtCacheFileName=/tmp/sqlStmtCacheFileName, as an example, to cache the fetched SQL statements to a file and reuse it after a zRemote module restart, which reduces Db2 interactions. Use the appropriate fully qualified filename.
Restart the zRemote module.
zRemote module version 1.267+
By default, the zLocal and zRemote use a proprietary communication protocol via plain sockets. You can configure them to communicate via Transport Layer Security (TLS) by configuring AT-TLS for the zLocal and setting the SSL flags for the zRemote as shown below.
Depending on your requirements, you can configure AT-TLS for zLocal in several ways. For details, see Application Transparent Transport Layer Security data protection in IBM documentation. You can use the example AT-TLS configuration below as a template.
TTLSRule <client-rule>{RemoteAddr <ALL | specific-ip-addr>RemotePortRange <zdclistenerport>Direction OutboundTTLSGroupActionRef <group-action>TTLSEnvironmentActionRef <environment-action>TTLSConnectionActionRef <connection-action>}TTLSGroupAction <group-action>{TTLSEnabled OnTrace <trace-level>}TTLSEnvironmentAction <environment-action>{HandshakeRole ClientTTLSKeyringParmsRef <keyring-parms>TTLSCipherParmsRef <cipher-parms>}TTLSKeyringParms <keyring-parms>{# The certificate that matches the zRemote certificate# must be loaded into RACF and connected to the keyring here.Keyring <pub-key-or-certificate>}TTLSCipherParms <cipher-parms>{...V3CipherSuites TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256V3CipherSuites TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384V3CipherSuites TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256V3CipherSuites TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384...}TTLSConnectionAction <connection-action>{TTLSConnectionAdvancedParmsRef <connection-advanced-parms>}TTLSConnectionAdvancedParms <connection-advanced-parms>{SSLv2 OffSSLv3 OffTLSv1 OffTLSv1.1 OffTLSv1.2 OnTLSv1.3 On}
Be sure the userId used in the zDC job is the same one that owns the certificate. Otherwise, the TLS handshake fails (with SSL accept error -1 and code 5).
To enable SSL/TLS for the zRemote:
zremoteagentuserconfig.conf file.sslEnabled to true.sslPrivateKey) and certificate (sslCertificate) Privacy-Enhanced Mail (PEM) files.# Must be true to enable secure connection; all other SSL settings are ignored if falsesslEnabled=true# Absolute paths to your private key (with the pass-phrase stripped) and certificate PEM files.# Beginning with zRemote module version 1.301.0, multiple private-key/certificate pairs delimited# by a semicolon can be specified. For example:# sslPrivateKey=<private-key-1.pem; private-key-2.pem; ...; private-key-n.pem># sslCertificate=<certificate-1.pem; certificate-2.pem; ...; certificate-n.pem>sslPrivateKey=<private-key.pem>sslCertificate=<certificate.pem># Optional: TLS cipher suites allowed according to OpenSSL# Example: sslCiphers=ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384sslCiphers=<cipher-suites>
If a process pings the zRemote module to check its availability, the module logs each ping that reaches the listener port as an invalid connection attempt. These entries increase the zRemote log size over time.
To ignore connection attempts from specific processes, list their IP addresses (separated by semicolons) in the zremoteagentuserconfig.conf file, for example:
ignoreHandshakeEndpoints=192.168.0.1;10.0.0.2
zRemote module version 1.253+
The IMS message processing region (MPR) process IDs can change, which creates new process and service entities in Dynatrace. To prevent this, Dynatrace introduced a more stable ID calculation. As a result, all IMS MPR process and service entities change once, and then remain stable after you update the zRemote module to version 1.253.
To opt out of the new IMS MPR process ID calculation, set the flag useOldImsPgiCalc in the zremoteagentuserconfig.conf file to true.
useOldImsPgiCalc=true