22
CCMS Configuration in WebAs 7.0 with GRMG Monitoring Applies to: SAP R/3, ECC5.0, ECC6.0, NetWeaver 2004s. For more information, visit the Operations homepage . Summary This document describes the process for configuring CCMS with a central monitoring system, Install CCMS agents in a Double Stack Installation and perform GRMG monitoring. Author: Raghavan Guruswaminathan Company: Accenture Services Pvt. Ltd. Created on: 18 September 2008 Author Bio I have been working on R/3 for 2 years and in NetWeaver technology for the past 10 months. Have worked on XI and EP administration and installed and configured most Usage Types in NetWeaver. SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 1

CCMS Configuration in WebAs 7.0 With GRMG Monitoring

Embed Size (px)

Citation preview

Page 1: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

Applies to: SAP R/3, ECC5.0, ECC6.0, NetWeaver 2004s.

For more information, visit the Operations homepage.

Summary This document describes the process for configuring CCMS with a central monitoring system, Install CCMS agents in a Double Stack Installation and perform GRMG monitoring.

Author: Raghavan Guruswaminathan

Company: Accenture Services Pvt. Ltd.

Created on: 18 September 2008

Author Bio I have been working on R/3 for 2 years and in NetWeaver technology for the past 10 months.

Have worked on XI and EP administration and installed and configured most Usage Types in NetWeaver.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 1

Page 2: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

Table of Contents 1. Configure CEN (Central Monitoring System)..................................................................................................4

1.1 Create the CSMREG User........................................................................................................................4 1.2 Activate Background Dispatching .............................................................................................................4 1.3 Activate the Internet Communication Manager (ICM)...............................................................................5 1.4 Activate Central System Dispatching........................................................................................................5 1.5 Monitor Remote ABAP Systems ...............................................................................................................6 1.6 Monitor Multiple Systems:.........................................................................................................................7 1.7 Activate the ICF Services..........................................................................................................................8 1.8 Prepare the Registration of the CCMS Agents .........................................................................................8 1.9 Create CSMCONF file:..............................................................................................................................9

2. Configuring ABAP Instances ..........................................................................................................................9 2.1 Create the CSMREG User........................................................................................................................9 2.2 Activate Background Dispatching .............................................................................................................9 2.3 Activate the Internet Communication Manager (ICM).............................................................................10 2.4 Activate the ICF Services........................................................................................................................11

3. Registering the CCMS Agent SAPCCM4X...................................................................................................11 3.1 Installing an Agent on an ABAP Instance ...............................................................................................11 3.2 Installing an Agent on a Java Instance (Double-Stack System).............................................................12 3.3 Setting Up GRMG Monitoring of the J2EE Engine .................................................................................14

4.0 Alert monitoring and configuration examples: ............................................................................................14 4.1 Alert Monitoring: ......................................................................................................................................14 4.2 Colour Legends:......................................................................................................................................16 4.3 Availability Monitoring: ............................................................................................................................16 4.4 An Example configuration for Alert monitoring: ......................................................................................16 4.5 Releasing the Methods: ..........................................................................................................................19

Related Content................................................................................................................................................21 Disclaimer and Liability Notice..........................................................................................................................22

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 2

Page 3: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

Objective: In this document, I have described the steps required to configure CCMS monitoring with a Central System and Satellite Systems. This document describes the steps to be carried out in the Central system and satellite systems, and also includes description of deployment of CCMS Agents in the respective systems. It also has a section on GRMG monitoring of System Resources.

Content: Configuring the Central monitoring System

Configuring ABAP Instances

Registering the CCMS Agents

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 3

Page 4: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

1. Configure CEN (Central Monitoring System)

1.1 Create the CSMREG User

• Goto RZ21 ->Technical Infrastructure -> Configure Central System -> Create CSMREG User

• Provide a Password.

1.2 Activate Background Dispatching

• Goto RZ21 ->Technical Infrastructure -> Local Method Execution -> Activate Background Dispatching

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 4

Page 5: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

1.3 Activate the Internet Communication Manager (ICM)

• Goto tcode SMICM -> Goto -> HTTP Server -> Display Data

• You should see ABAP Server Operational =TRUE and J2ee Server Configured = TRUE

• Means that Your Java engine is operational and running correctly. Else Configure the Java Engine and make it operational.

1.4 Activate Central System Dispatching

• Goto RZ21 ->Technical Infrastructure -> Configure Central System -> Activate Central Dispatching

• The background jobs will be scheduled for the CEN.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 5

Page 6: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

• Activate Background Dispatching in Client 000

(This is required for collecting Monitoring data from ABAP Systems and hence must be started in each monitored Abap System)

1.5 Monitor Remote ABAP Systems

• Define RFC Connection to the Remote Systems

• Goto SM59

• Choose Create

• (Create 2 RFC connections – 1 for Data Collection and 1 for Analysis methods)

• Enter the following details: o RFC Destination : Name of RFC Destination o Connection Type: 3 o Description o User (RFC destination for data collection): Give CSMREG User id and its password o User (RFC destination for executing the analysis methods): Select Current User or provide

User Credentials for the remote system o Save

o For Load Distribution enter following in Technical Setting Tab: o Target System ID:

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 6

Page 7: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

o Message Server: o Group: Logon Group o Save As: Hostname o Choose Save

1.6 Monitor Multiple Systems:

• Goto RZ21 -> Technical Infrastructure → Configure Central System → Create an Entry for a Remote System

Enter the Following:

Target System ID:

RFC Destination of Target System for DATA Collection and DATA Analysis Methods

Save

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 7

Page 8: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

1.7 Activate the ICF Services.

• Goto SICF Tcode.

• Activate ccms under the path default_host -> sap -> bc -> ccms

1.8 Prepare the Registration of the CCMS Agents

• CCMSR Agent can be downloaded from SAP Service Market Place

• Download → Support Packages and Patches → Entry by Application Group → SAP NetWeaver → SAP NETWEAVER → SAP NETWEAVER 04 → Entry by Component → AS ABAP → SAP KERNEL<Version>-> <operating system> → Database Independent.

• Uncar the file

• For Registering Java Engine also you would need to register with –j2ee option when registering CCMS Agents.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 8

Page 9: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

1.9 Create CSMCONF file:

• CSMCONF file (config file) is required during Agent registration. It contains CMSREG user details and current user details.

• Create the file as follows: o Goto RZ21 -> Technical Infrastructure → Configure Central System → Create CSMCONF

Start File for Agents o Save the file in the file system.

2. Configuring ABAP Instances

2.1 Create the CSMREG User

• Goto RZ21 ->Technical Infrastructure -> Configure Central System -> Create CSMREG User

• Provide a Password.

2.2 Activate Background Dispatching

• Goto RZ21 ->Technical Infrastructure -> Local Method Execution -> Activate Background Dispatching

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 9

Page 10: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

2.3 Activate the Internet Communication Manager (ICM)

• Goto tcode SMICM -> Goto -> HTTP Server -> Display Data

• You should see ABAP Server Operational =TRUE and J2ee Server Configured = TRUE

• Means that Your Java engine is operational and running correctly. Else Configure the Java Engine and make it operational.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 10

Page 11: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

2.4 Activate the ICF Services.

• Goto SICF Tcode.

• Activate ccms under the path default_host -> sap -> bc -> ccms

3. Registering the CCMS Agent SAPCCM4X

3.1 Installing an Agent on an ABAP Instance

• Log on to the host of the ABAP instance as <SID>adm to ensure that the agent can access the shared memory.

• Copy the CSMCONF start file to the working directory of SAPCCM4X. This is in the following location:

o Microsoft Windows:[drive]:\usr\sap\<SysID>\<instance directory>\log\sapccm4x

o UNIX:/usr/sap/<SysID>/<instance directory>/log/sapccm4x

o If the directory does not exist, create it.

• Copy the executable SAPCCM4X to the following directory:

o Microsoft Windows:[drive]:\usr\sap\<SysID>\SYS\exe\run

o UNIX: /usr/sap/<SysID>/SYS/exe/run If there is already an executable SAPCCM4X in this directory, use the command sapccm4x -v to check which of the executables has the more current status, and use that one.

• In the directory of the executable, enter the command sapccm4x –R pf=<profile path>.

<Profile path> specifies the instance profile of the monitored instance. By default, this is:

o Microsoft Windows:[drive]:\usr\sap\<SysID>\SYS\profile\ <SysID>_<Name of the instance directory>_<Host>

o UNIX: /usr/sap/<SysID>/SYS/profile/ <SysID>_<Name of the instance directory>_<Host>

• During the registration, the system displays specifications from the CSMCONF file to you again for confirmation. Confirm the specification by pressing the ENTER key in each case. You only need to enter two parameters yourself:

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 11

Page 12: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

• The password for the administration user in CEN, under which you created the CSMCONF file

• The password for the CSMREG user

• Under UNIX, you must ensure yourself that SAPCCM4X is automatically started again when the host is restarted. To do this, enter the following commands in the inittab (/etc/inittab):

/usr/sap/<SysID>/SYS/exe/run/sapccm4x -DCCMS pf=<profile path>

3.2 Installing an Agent on a Java Instance (Double-Stack System)

• Log on to the host of J2EE Engine of the system as <SID>adm.

• Copy the CSMCONF start file to the following directory: Microsoft Windows: [drive]:\usr\sap\ccms\<SysID>_<Inst. No.>\sapccmsr UNIX: /usr/sap/ccms/<SysID>_<Inst. No.>/sapccmsr

• On the host of the J2EE Engine, switch to the following directory:

o Microsoft Windows: <J2EE Home directory>\JC<Inst. No.>\j2ee\admin\

o UNIX: <J2EE Home directory>/JC<Inst. No.>/j2ee/admin/

• Click go.bat to start Visual Administrator

• Choose Cluster → <SysID> → Dispatcher → Services → Monitoring, and choose the CCMS Agent Configuration tab page.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 12

Page 13: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

• If you want to monitor multiple systems with the same system ID, select the Long SID indicator, and enter in this input field an identifier for the system that is unique in your monitored system landscape. This “long system ID” must fulfill the following conditions:

o The first three characters must be the system ID.

o The name can be a maximum of eight characters long.

o The name must not contain an underscore (_).

• Enter the Local Administrator user details and CSMREG user details as well as the CEN Administrator user details and CSMREG user details.

• Update the CSMCONF file using Agent Configuration File field.

• Click Register to register the CCMS agent with the j2ee option. Error if any will be displayed in the text area below the User credential fields.

• Click Information to check if the Instance Profile, the CSM configuration file and CCMS Agent version information.

• On the Microsoft Windows host on which the agent is running, choose Start → Settings → Control Panel → Administrative Tools → Services, and choose the service SAPCCMSR.<Instance No.> by double-clicking it. Set the Start Type to Automatic, and choose Start.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 13

Page 14: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

3.3 Setting Up GRMG Monitoring of the J2EE Engine

• On the host of the J2EE Engine, switch to the following directory:

• Microsoft Windows: <J2EE Home directory>\JC<Inst. No.>\j2ee\admin\

• UNIX: <J2EE Home directory>/JC<Inst. No.>/j2ee/admin/

• Start the Visual Administrator by calling the start script go (UNIX) or go.bat (Microsoft Windows), and log on with your user as the J2EE Engine administrator.

• In the navigation bar, choose Cluster → Server → Services → Monitoring, and choose the tab page GRMG Customizing.

• Expand the left half of the screen. All applications that have a prepared GRMG Customizing file are displayed. Choose sap.com/com.sap.engine.heartbeat.

• Transfer the Customizing file to the CCMS agent by choosing the Upload button.

• Call GRMG Transaction to check the scenario uploaded through Visual Administrator.

• Call RZ20 and go to Heartbeat monitor from SAP J2EE Monitor Templates set. Once expanded, the monitored J2EE Engines are displayed.

4.0 Alert monitoring and configuration examples:

4.1 Alert Monitoring:

• Goto RZ20 to view the CCMS Monitor sets: Each set has a set of parameters which monitor the overall system.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 14

Page 15: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

Goto SAP CCMS Monitor Templates -> SAP CCMS Technical Operations Template

ABAP Key Performance Indicators to view the alerts for the ABAP stack

The name indicates the Parameter monitored and the value indicates the result. Colour yellow indicates that the value is beyond the safe limit.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 15

Page 16: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

4.2 Colour Legends:

Green - the monitored parameter is OK

Yellow - The monitored parameter needs to be fine tuned but not critical

RED - The monitored parameter is in critical stage and needs to be looked at immediately.

4.3 Availability Monitoring:

• Goto RZ20 -> CCMS Technical Operations Template -> Availability.

• This shows that the mentioned scenarios are available and ready to be used by applications in J2EE

Engine.

4.4 An Example configuration for Alert monitoring:

• Goto Goto RZ20 -> CCMS J2EE Monitoring Template

• Click on All systems:

• The above shows that some aspects of the nodes are in critical condition and needs to be looked at.

• The above screenshot shows that the jlaunch process usage of memory is above the acceptable

• level.

• Configuring the Alert levels and methods:

• Methods are assigned to a node or parameter. The types of methods are

• Data Collection method – used to fetch data about the monitored parameter

• Analyzed method - Used to analyze the displayed alert value in the requisite TCODE.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 16

Page 17: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

• Auto Reaction Method - This is configured so that the system automatically executes the defined method when an alert is triggered.

• In this example we will take the case of No of Users logged in parameter under ABAP Key Performance indicators:

• The users logged in current are 9. We can change the threshold values to enable triggering alert as

per our requirements.

• Double Click the UsersLoggedIn parameter to start the analyses method. You will see the below screen. This is default setting. We could change the methods and threshold as described below.

• Custom Threshold and Method configuration:

• Click on the Parameter you need to change.

• Click the Properties button on the top.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 17

Page 18: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

• To change the threshold value, in Performance Attribute tab click Change button.

• The values set here will be used to display the alert levels in yellow, green or red in RZ20.

• To change the Method used, goto Methods tab page in the properties page.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 18

Page 19: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

• Click Methods Assignment button.

• Click Change. Then choose Method name under Method allocation and specify the name of the method.

• Save.

4.5 Releasing the Methods:

• The Methods need to be released before they can be assigned as Data collection, analysis or auto reaction methods.

• To release methods proceed as follows:

• Goto RZ21 -> Method Release and click Display Overview.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 19

Page 20: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

• Double click the Method you want to release.

• Select the execution method you want to assign for the selected Method. You can also select all the method options.

• Save.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 20

Page 21: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

Related Content http://help.sap.com/saphelp_nw70/helpdata/EN/02/411841a66af223e10000000a155106/frameset.htm

http://help.sap.com/saphelp_nw70/helpdata/EN/28/83493b6b82e908e10000000a11402f/frameset.htm

http://help.sap.com/saphelp_nw70/helpdata/EN/77/d9ba3b3bf00152e10000000a114084/frameset.htm

For more information, visit the Operations homepage.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 21

Page 22: CCMS Configuration in WebAs 7.0 With GRMG Monitoring

CCMS Configuration in WebAs 7.0 with GRMG Monitoring

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 22

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.

SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.

SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.