72
Session ID: BPI208 Process Integration - Monitoring

PI Monitoring

Embed Size (px)

Citation preview

Page 1: PI Monitoring

Session ID: BPI208 Process Integration -Monitoring

Page 2: PI Monitoring

Prasad illapani, SAP Labs, LLC

Andreas Stolz, SAP AG

Page 3: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 3

Learning Objectives

As a result of this workshop, you will be able to:

Utilize the CCMS Alert Monitor for Process IntegrationMake use of the SAP Alert Framework for PIConfigure and use the PI‘s Message Performance MeasurementUse TRex for Message Search

Page 4: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 4

Motivation

Monitoring is a crucial part of an Operation ConceptMonitoring should cover

Availability of your Landscape ComponentsAlert error situations

The following Monitoring Tools are available for the Exchange Infrastructure 3.0

CCMS MonitoringAlert FrameworkRuntime Workbench

Page 5: PI Monitoring

Additional Techniques

Process Integration and CCMS

Process Integration and Alert Framework

Page 6: PI Monitoring

OverviewSAP WebAS Java – CCMS ConfigurationCCMS Configuration for Process IntegrationGRMG Availability Monitoring

Page 7: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 7

XI Architecture Overview

Integration Server

SAP Web AS ≥ 6.20

Central Monitoring

IntegrationDirectory

&IntegrationRepository

Business Process Engine

Integration Engine

SAPSystem

IDocsRFCs

Proxy

3rd PartyApps

FileDB

JMS

Apps of BusinessPartner

Local Integration Engine

Proxy Runtime

XIProtocol RosettaNet, …

PartnerConnectivity

Kit

Apps of(small)

BusinessPartner

XIProtocol

Adapter EngineSystem

LandscapeDirectory

Proxy generation

RFC/IDocmetadata import

XI A

ll-in

One

Ser

ver

Ada

pter

s +

Con

nect

ivity

Page 8: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 8

XI 3.0 Components in SAP Web AS 6.40

ABAP

ICMCentral Monitoring

Business Process Engine

JRFC

J2EE

Adapter Engine

HTTP(s)

HTTP(s)

OpenSQLfor Java

OpenSQLfor ABAP

SLD

Integration Builder (IR, ID)

Runtime Workbench

XI Tools

Mapping runtimeIntegration Engine

Page 9: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 9

Central Monitoring

Integration Server(SAP Web AS ≥ 6.40)

PMI

Alerting Framework

CCMS

J2SEAdapterEngine

(local)AdapterEngine

SAP Application

SAP Web AS ≥ 6.40 using XI proxies

Business Process Engine

Integration Engine

Adapter Engine

RuntimeWorkbench

MessageMonitoring

ComponentMonitoring

PerformanceAnalysis

Message Alerting

SystemLandscapeDirectory

Page 10: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 10

CEN – Central Monitoring System

For each remote system, define 2 RFC destinations in Transaction SM59:

for collecting datafor executing analysis methods.

To register a remote system, execute Transaction RZ21, select Technical Infrastructure

Configure Central System Create Entry for Remote System.

Page 11: PI Monitoring

OverviewSAP WebAS Java – CCMS ConfigurationCCMS Configuration for Process IntegrationGRMG Availability Monitoring

Page 12: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 12

J2EE Specific CCMS Configuration

In Transaction RZ21 create the CSMREG User and the Start File CMSCONF for the CCMS Agent Installation.

Page 13: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 13

Register CCMS Agent

Using the Visual Administrator registerthe CCMS agent at theresp. Abap Stack.

Select Dispatcher →Services → Monitoring.On the CCMS Agent Configuration Tab enterthe LocalAdministrator‘s and CSMREG‘s password.

Page 14: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 14

Verify CCMSR Agent Registration and Status

Verify that the System Group J2EE_Systems is created and the actual J2EE System isadded.Transaction RZ21, Menu Technical Infrastructure →Configure Central System →Maintain System Groups

Verify that the Agent‘s Status is Online.Transaction RZ21, SelectDisplay Overview for Agents for Local System.

Page 15: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 15

J2EE Monitoring Template

Page 16: PI Monitoring

OverviewSAP WebAS Java – CCMS ConfigurationCCMS Configuration for Process IntegrationGRMG Availability Monitoring

Page 17: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 17

Activation of CCMS Monitoring

Activate CCMS Monitoring by setting respective configuration parameter in Transaction SXMB_ADM

Change the value for Parameter CCMS_MONITORING to 1 in the Specific Configuration

Page 18: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 18

CCMS – System Group Maintenance with TC RZ21

Create system group „ExchangeInfrastructure_Systems“ in TC RZ21, Technical Infrastructure → Configure Central System →Maintain System Groups

Create SystemGroup

Add Systems

Page 19: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 19

Activation of qRFC - Prerequisites

Activate qRFCmonitoring.

In TC RZ21, select Technical Infrastructure → Local Method Execution → Activate Background Dispatching.

Page 20: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 20

Adapter Engine

Activate forwarding of Adapter Framework alerts to the CCMS Alert Monitor via theSAPCCMSR agent.

In the Visual Administator selectServer → Services →SAP XI AF Core.On the Properties Tab enter true as the valuefor parameterCCMSEnabled.

Page 21: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 21

XI Monitoring Template

Access PI’s CCMS Monitoring template by running either TC RZ20 or TC S_B6A_52000011 in folder “Exchange Infrastructure: Monitoring” of personal user menu.

Page 22: PI Monitoring

OverviewSAP WebAS Java – CCMS ConfigurationCCMS Configuration for Process IntegrationGRMG Availability Monitoring

Page 23: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 23

GRMG (Generic Request and Message Generator) Framework

(An example of GRMG scenario)

Page 24: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 24

Activation of heartbeat monitoring- Prerequisites

To activate theheartbeat monitoringfor Java components, configure the so-called GRMG customizing file.

For further information please refer to SAP Note: 634771, which includes the PI specific GRMG customizing template.

Page 25: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 25

GRMG Configuration file upload - Prerequisites

To upload the GRMG configuration file, execute TC: GRMG

Page 26: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 26

Customizing GRMG Scenarios

To monitor the availability of an instrumented application with GRMG, you must first customize and start the corresponding GRMG scenarios by using TC: GRMG

Page 27: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 27

Adjusting Frequency for individual Scenarios

By default, GRMG availability monitoring is performed every ten minutes for all monitored scenarios, you can change this by using TC: RZ21

Page 28: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 28

XI CCMS Heartbeats

Page 29: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 29

Demo

Demo

Page 30: PI Monitoring

Additional Techniques

Process Integration and CCMS

Process Integration and Alert Framework

Page 31: PI Monitoring

PI and Alert Framework - ConfigurationDisplay Alert Framework Alerts in CCMS

Page 32: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 32

Alert Framework (ALM) and PI

Using the Alert Framework PI can generate Alerts for specificSender / Receiver / Interface combinations (Alert Rules).Different contact groups can be alerted based on Alert Categories. Alert Rules are assigned to Alert Categories.The Alert Framework is a standard NetWeaver functionality. Alerts can be delivered using several channels, like Email, SMS, Pager (SAPConnect).As a prerequisite End-to-End Monitoring (Process MonitoringInfrastructure PMI) must be configured

Until NW 04 SP 13 including, from SP 14 on the Alert generation doesnot depend on PMI anymore

Page 33: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 33

Activate Required ICF Services

Take care that the ITS Plugin, the ALM related ICF Services, and required ICF Services are activated.

Start Report RSXMB_ACTIVATE_ICF_SERVICES in TC SE38. Refer to SAP Note: 736312.

Page 34: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 34

End-to-End Monitoring Configuration

In the Runtime Workbench select Configuration. For generating alerts set the monitoring level to at least medium and save the entries.

In the End-to-End Monitoring section press button Further Settings, set the job frequency, and activate the monitoring.

Verify that a background job with a cryptic name is created in TC SM37. The job executes the Abap Report SPI_PS_ASSEMBLE_DSP.

Page 35: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 35

Report SXMSALERT_PROCESS_DATA_GET

The Report SXMSALERT_PROCESS_DATA_GET readsthe Alerts from theassembled PMI data and reports them using the Alert Framework.

Schedule the Report as a periodic background job in TC SM36.Align the job period with theEnd-to-End Monitoring job period.

Page 36: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 36

Alert Categories I

Alert Categories are container for some kind of alerts. Additional information like alert texts and subsequent activities as well as recipient lists are maintained per Alert Category.

In the Runtime Workbench in section Alert Configuration press the button Create Alert Category. On the following screen maintain an Alert Category.

Page 37: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 37

Alert Categories II

Container Elements for various Message Header information areavailable for PI Alerts. These Container Elements are filled at runtime with Message specific information and are used withinthe Alert‘s short and long text, e.g.

Container Element SXMS_MSG_GUID returns the Message IDContainer Element SXMS_FROM_INTERFACE returns the Sender Interface

Subsequent Activities for PI Alerts by default contain links forthe resp. message to the

Message MonitoringEnd-to-End Monitoring

Recipients could be identifiedas Fixed Usersvia User Rolesvia Self-Subscription based on User Roles

Page 38: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 38

Alert Rules

Alert Rules define the error situation which raises a specific alert. One Alert Category can contain one or many Alert Rules.

In the Runtime Workbench in section Alert Configuration select a Alert Category. Define an Alert Rule and add it to the Alert Category.

Page 39: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 39

Alert Subscription and Alert Inbox

Page 40: PI Monitoring

PI and Alert Framework - ConfigurationDisplay Alert Framework Alerts in CCMS

Page 41: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 41

Extend the PI-ALM Background Job

Extend the Background Job SXMSALERT_PROCESS_DATA_GET

In TC SM37 change theJob SXMSALERT_PROCESS_DATA_GETand add the ABAP report SXMSALERT_ACTIVE_ALERTS to theJob‘s Step List.

See also SAP Note: 824039.

Page 42: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 42

Extend the PI Monitor

Extend the PI Monitor.

In TC RZ20 activate theMaintenance functionsand select the PI Monitor.On the following screenadd a rule based monitorto the PI Monitor. Specify CCMS_GET_MTE_BY_CLASS as rule, ExchangeInfrastructure_Systems as R3System, SXI_RWBAlerts as MTEClass.

Page 43: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 43

Demo

Demo

Page 44: PI Monitoring

Additional Techniques

Process Integration and CCMS

Process Integration and Alert Framework

Page 45: PI Monitoring

PI Performance MeasurementCCMS Performance AlertTRex Message Search

Page 46: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 46

PI Performance Analysis

By default only a limited set of performance data is storedFor collecting more detailed data in the Integration Engine

Increase the MEASUREMENT_LEVELStore the Performance Header in a separate tableTwo background jobs must be scheduled to aggregate and reorganize the performance data

PMI data could be used for Performance Analysis, tooBackgound jobs must be scheduled to read the Performance Datafrom PMI and aggregate it into the performance database

Aggregated and Detailed Performance Data can be accessed via the Runtime Workbench

Page 47: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 47

Configure Integration Engine

The Integration Engine Configuration Parameter MEASUREMENT_LEVEL and MEASUREMENT_PERSIST determine the Integration Engine‘s Performance Measurement behaviour.

In TC SXMB_ADM changethe specific configuration.

Page 48: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 48

Job Scheduling

SAP_XMB_PERF_AGGREGATE (SXMS_PF_AGGREGATE) This job reads the persisted runtime data from the persistence layer and aggregates it on an hourly basis. SAP_XMB_PERF_REORG (SXMS_PF_REORG) This job deletes the runtime data once the time interval defined by the configuration parameter DAYS_TO_KEEP_DATA has been exceeded. SAP_XMB_EXTRACT_PMI_DATA (SXMS_PMI_EXTRACT_PMI_DATA) This job extracts runtime data from PMI. The job is optional. If you want to display performance data from PMI in the Runtime Workbench, you must schedule this job on your monitoring serverSAP_XMB_GET_PMI_DATA (SXMS_PF_GET_PMIDATA)This job transfers the runtime data that has been extracted on the monitoring server to the Integration Server and can display the data in the performance monitoring of the Runtime Workbench. The job is optional, see above.

Page 49: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 49

Runtime Workbench - Performance

Enhanced performance statisticsMeasurement of throughput and latency (“processing time”)Selection and aggregation of performance data by:

a. XI component(Integration Server, Adapter Engine)

b. Time rangec. Message attributes:

Sender, receiver,message type

Page 50: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 50

Demo

Demo

Page 51: PI Monitoring

PI Performance MeasurementCCMS Performance AlertTRex Message Search

Page 52: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 52

Motivation

If the processing time for a specific interface exceeds predefinedthresholds, an alert should be raised.Detect performance bottlenecks within your Integration ServerBased on message performance data gathered on the Integration ServerFor more details refer to SAP Note: 730193

Page 53: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 53

Create a CCMS Alert Monitor Node

For a specific Sender / Receiver / Interface combination defineProcessing Alert Thresholds.

Maintain tableALXMBPFALERT in TC SM30 and enter the required values.

Page 54: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 54

CCMS Alert Monitor

As a consequence a newmonitor node is created in the Exchange Infrastructure Alert Monitor.

Page 55: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 55

Demo

Demo

Page 56: PI Monitoring

PI Performance MeasurementCCMS Performance AlertTRex Message Search

Page 57: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 57

Use TRex Search Engine for Message Selection

All Messages from both the Integration Server and the Adapter Engine are transfered to TRex for indexing.Full Text Search on PayloadFast Results for Message SearchEmbedded in Runtime WorkbenchTemporally delayed because Messages need to be synchronizedwith TRexFrom SP 14 on

Page 58: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 58

PI – TRex Architecture

TREX

Index Server

Text SearchEngine

Text MiningEngine

AttributeEngine

Index Index Index

Preprocessor

Web Server

ABAPClient

JavaClient

RFC Server

Gateway

QueueServer

NameServer

TCP/IP

HTTPXML

Page 59: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 59

Configuration Integration Engine I

Create a RFC Destination pointing to the TRex‘sServer‘s registered Server Program.

In TC SXMB_ADM →Integration Engine Configuration → Edit Specific Configuration and enter the RFC Destination created before for the parameter Monitoring →TREX_RFC_DESTINATION.

Page 60: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 60

Configuration Integration Engine II

Activate Indexing for theIntegration Engine.

In TC SXMS_ADMI_INDadapt the indexing parameters and activate Indexing by pressing the button Indexing.

Page 61: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 61

Deploy PI TRex Application

Deploy the aii_trex.sdausing the SDM.The sda is available via SAP Note: 867381

Page 62: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 62

Configuration Adapter Engine I

Configure the TRexService.

In the Visual Administrator selectCluster → Server →Services → TRex Service and enter the resp. values for nameserver.addressand nameserver.backuplist.

Page 63: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 63

Configuration Adapter Engine II

Change Authorization forPI‘s TRex Application.

In the Visual Administrator select Cluster → Server →Services → Security Provider. Select the component sap.com/com.sap.aii.trexand add the group SAP_XI_ADMINISTRATOR_J2EEfor the Security Roleadmin.

Page 64: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 64

Configuration Adapter Engine III

Activate Indexing for theAdapter Engine.

Access the URL http://<host>:<port>/Trex/Monitor and switch to theAdmin Page. Adapt theIndexing Parameter to yourneeds and activate theIndexing.

Page 65: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 65

Message Search using TRex

To enable Message Searchvia TRex in the RuntimeWorkbench, a newparameter must be createdin the Exchange Profile.

In the Exchange Profile create the Parameter com.sap.aii.rwb.trex.messagesearch with valuetrue in section RuntimeWorkbench.

Page 66: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 66

Message Search Using TRex

Page 67: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 67

Demo

Demo

Page 68: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 68

Summary

You have seen how the CCMS Alert Monitoring and the Alert Framework can support you seamlessly operate your Process Integration.You are able to do a PI Performance Analysis and configure Performance CCMS Alerts for specific interfaces.You can utilize TRex for Message Search.

Page 69: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 69

Further Information

Public Web:www.sap.comSAP Developer Network: www.sdn.sap.com Exchange InfrastructureForumSAP Customer Services Network: www.sap.com/services/NetWeaver Developer‘s Guide: www.sdn.sap.com/sdn/developersguide.sdn

Related Workshops/Lectures at SAP TechEd 2005BP103, End-to-End Process Integration in SAP NetWeaver, LectureBPI300, Troubleshooting the J2EE-Based Adapter Engine, LectureLCM200, Administration and Support of SAP NetWeaver-Based Solutions, LectureLCM265, SAP NetWeaver Administrator – The Latest Tool for Monitoring and Administration, Hands-on

Related SAP Education Training Opportunitieshttp://www.sap.com/education/

Page 70: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 70

Questions?

Q&A

Page 71: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 71

Please complete your session evaluation.

Be courteous — deposit your trash, and do not take the handouts for the following session.

Feedback

Thank You !

Page 72: PI Monitoring

© SAP AG 2005, SAP TechEd ’05 / BPI208 / 72

Copyright 2005 SAP AG. All Rights Reserved

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries.Oracle is a registered trademark of Oracle Corporation.UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc.JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden.SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

The information in this document is proprietary to SAP. No part of this document may be reproduced, copied, or transmitted in any form or for any purpose without the express prior written permission of SAP AG.This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This document contains only intended strategies, developments, and functionalities of the SAP® product and is not intended to be binding upon SAP to any particular course of business, product strategy, and/or development. Please note that this document is subject to change and may be changed by SAP at any time without notice.SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics, links, or other items contained within this material. This document is provided without a warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement.SAP shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitation shall not apply in cases of intent or gross negligence.The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages.