Configuring Monitoring of Availability (Heartbeat/GRMG)
You can use the Generic Request and Message Generator (GRMG) to monitor the availability (heartbeat/GRMG) of TREX components.
You configure these monitoring functions by doing the following:
Prerequisites
You have configured parameter reporting for TREX (seeConfiguring Parameter Reporting).
UNIX: Calling Script ccms_config.py
Bourne shellsh, Bourne-again shellbash, Korn shellksh
. TREXSettings.sh
C Shell csh:
source TREXSettings.csh
python ccms_config.py --grmg
Windows: Calling Script ccms_config.py
TREXSettings.bat
python ccms_config.py --grmg
If you need help on the configuration scriptccms_config.py, enter:./ccms_config.py -? (-h or--help).
Windows and UNIX: Uploading XML Customizing File by Transaction GRMG
GRMG checks the availability of TREX services. The SAP system (CCMS) uses an HTTP request to send an XML file defined for GRMG to one of the TREX GRMG servers that runs on the TREX host. The TREX GRMG server analyzes the XML file and starts the relevant scenario text to check the availability of the individual TREX server on the selected TREX host. To activate the monitoring of availability (hearbeat/GRMG) in the SAP system you may have to upload the XML configuration fileGRMG_config.xml, which was created on calling the script.
The configuration fileGRMG_config.xml will be uploaded automatically by the CEN at the latest one hour after creation of the file. This means you only have to upload the file manually by transactionGRMG if you want to check the monitoring of availability (heartbeat/GRMG) immediately after you have created the file by means of the Python scriptccms_config.py. with the parameter-grmg.
There are two ways to upload the TREX scenario:
If you have carried out the configuration steps inConfiguring Parameter Reporting, the XML customizing file GRMG_config.xml is located in the following directory:
If you have chosen the instance number44 for TREX, the XML customizing file has the nameGRMG_config_trex44.xml.
The window GRMG customizing file uploaded successfullyappears.
This upload of the TREX scenario will only work if the SAPCCMSR agent is running and has been registered previously.
The window GRMG scenarios have startedappears.
Result
You have configured the monitoring of availability (heartbeat/GRMG) for TREX.