On one of my project SAP Solution Manager 7.1 SPS8 was used as main monitoring tool. SAP Web Dispatcher was used in the landscape as a load balancer. Obviously availability of Web Dispatcher must be monitored. Unfortunately default SAP template for that purpose in technical monitoring didn’t work for me and I had to look for other options.
As usual after searching the SCN I found couple of topics on forum and that particular article that was a starting point for me. I found there a link to How-to: Create Custom CCMS Metrics and Alerts document and that was enough for needed configuration.
In that post I want to share with you more detailed guide that I created during configuration steps.
First of all create RFC connection of type G.
Put full qualified domain name of your Web Dispatcher server in Target host and /sap/admin/public/default.html in Path prefix.
Test newly created RFC connection.
You should get response 200.
Then you need to go to GRMG transaction and create scenario.
Fill in Description (context name) and fields under Component specifications. Be careful choosing Description (context name) as you will need it in further steps.
Put the same link for monitoring that was used during the RFC creation above.
Start up newly created scenario.
Go to RZ20 to find MTE class name that will be used later for custom metric creation.
Tick Status and press Properties button.
You can find MTE class name here. You will use it later on for custom metric creation.
Then you need to test data provider result. As you are going to monitor link status, return result will not be numeric.
As per document you should test the data provider implementation /SDF/E2E_CCMS_MTE_CURRENT directly.
Go to SE37 transaction and put /SDF/E2E_CCMS_MTE_CURRENT in Function Module field.
Tick Uppercase/Lowercase checkbox and click on the Value field.
Click on the SELECTION_PARAMETER field.
Enter MTE_CLASS in the PARAM column and click on the T_RANGES field to maintain the value.
Enter I, EQ and GRMG_MESSAGES_GRMGLITE in the respective input fields.
Then use the Back button three times until you back in the start screen. Run the data provider.
The result should be like below.
After that check you can proceed with creating custom metric and alert in Solution Manager Work Center.
You might want to create new template for your custom metric.
To be able to create custom metrics and alerts you must switch to Expert Mode.
Give the Name to your metric, choose Category (Availability), Class (Metric) and Data type (String). Also put description in appropriate form.
Click Next.
On the Data Collection tab choose Data Collector type (RFC (pull)), Data Collector Name (CCMS Fet Current Values) and Collection Interval (5 Minutes).
In Collector Input Parameters you should put values for Context and MTE Class that you can find in RZ20 (described above).
On the Threshold tab choose Already Rated for Threshold type.
On the Others tab put name starting with Z in Metric Name field.
Don’t forget save your changes.
Now you need to create custom alert for newly created metric.
Fill in marked fields.
You can customize parameters in marked tabs any time you want later on.
On the Others tab put name starting with Z in Alert Name field.
Don’t forget save your changes.
After performing all these steps you will be able to get alerts in case if Web Dispatcher link is not available.