How to monitor SAP Web Dispatcher availability using custom CCMS metrics and alerts

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.

RFC_creation_1

Put full qualified domain name of your Web Dispatcher server in Target host and /sap/admin/public/default.html in Path prefix.

RFC_creation_2

Test newly created RFC connection.

RFC_test_1

You should get response 200.

RFC_test_result

Then you need to go to GRMG transaction and create scenario.

grmg_1

grmg_2

Fill in Description (context name) and fields under Component specifications. Be careful choosing Description (context name) as you will need it in further steps.

grmg_3

Put the same link for monitoring that was used during the RFC creation above.

grmg_4

Start up newly created scenario.

grmg_5

grmg_6

grmg_71

Go to RZ20 to find MTE class name that will be used later for custom metric creation.

RZ20_0

RZ20_1

Tick Status and press Properties button.

RZ20_2

You can find MTE class name here. You will use it later on for custom metric creation.

RZ20_mte_class_name

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.

data_provider_result_00

Go to SE37 transaction and put /SDF/E2E_CCMS_MTE_CURRENT in Function Module field.

data_provider_result_1

Tick Uppercase/Lowercase checkbox and click on the Value field.

data_provider_result_2

Click on the SELECTION_PARAMETER field.

data_provider_result_3

Enter MTE_CLASS in the PARAM column and click on the T_RANGES field to maintain the value.

data_provider_result_4

Enter I, EQ and GRMG_MESSAGES_GRMGLITE in the respective input fields.

 data_provider_result_5

Then use the Back button three times until you back in the start screen. Run the data provider.

 data_provider_result_6

The result should be like below.

data_provider_result_7

data_provider_result_8

After that check you can proceed with creating custom metric and alert in Solution Manager Work Center.

Template_0

You might want to create new template for your custom metric.

Template_1

Template_2

Template_3

Template_4

To be able to create custom metrics and alerts you must switch to Expert Mode.

Template_5

Metric_1

Give the Name to your metric, choose Category (Availability), Class (Metric) and Data type (String). Also put description in appropriate form.

Click Next.

Metric_2

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).

Metric_5

On the Threshold tab choose Already Rated for Threshold type.

Metric_6

On the Others tab put name starting with Z in Metric Name field.

Metric_7

 

Metric_8

Don’t forget save your changes.

Metric_9

Now you need to create custom alert for newly created metric.

alert_0

Fill in marked fields.

alert_1

You can customize parameters in marked tabs any time you want later on.

alert_2

alert_3

On the Others tab put name starting with Z in Alert Name field.

alert_4

alert_5

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>