your database backup has surpassed its memory threshold, and as a
result the backup has stalled. As a system administrator, how would
you be alerted to this problem? Perhaps you would like to be notified
by both email and pager. Then, you could react by logging onto your
monitoring system and opening the corresponding monitor. From there,
you would simply double-click the database alert, jump right into
the system's backup log, and start investigating.
If this scenario is not the picture of
how notification or alert analysis works in your system landscape, then
SAP's CCMS monitoring infrastructure can help. The CCMS monitoring infrastructure
centrally monitors large, heterogeneous system landscapes, and returns
alerts when defined threshold values are exceeded. It also gives you the
tools to fine-tune the monitoring system to better respond to alerts and
correct errors. Once you have added the appropriate information - in the
form of a "method" - into your monitor, the system can automatically
notify the person you specify by email, pager, or fax. These methods can
also be set up to respond to problems by automatically forwarding you
to just the right tool for analysis of the problem - whether via a transaction,
URL, or function module.
Although many of these alert-handling methods
are already part of the standard SAP system and the CCMS monitoring infrastructure,
some customizing is often needed, especially where specific personnel
information is involved (email addresses, pager numbers, and the like).
The CCMS Monitor makes this easy to do. This article provides the information
you need to get the most out of the notification and alert analysis features
available in SAP's CCMS monitoring infrastructure.1
How Methods Work with Monitors in the CCMS
Monitored objects, such as systems and databases, and their respective
attributes are represented in your alert monitor by nodes called Monitoring
Tree Elements (MTEs). For the system to notify you or to analyze alerts,
methods (reports, function modules, transactions, or URLs that are to
be executed in case of specific events) are assigned to these MTEs.
To make method configuration easier, SAP
allows you to assign methods to MTE classes (groups of MTEs with
the same physical or logical content). Instead of assigning methods to
each and every MTE, you can assign them to the whole MTE class, thus enabling
you to administer numerous monitoring attributes at once.2
The following sections explain the types
of methods that enable these functions, as well as the steps necessary
to create, assign, and change methods.
What Types of Methods Can I Use in the Alert Monitor?
SAP provides three types of alert-handling methods: data collection methods,
auto-reaction methods, and analysis methods. In many cases, the CCMS monitoring
architecture provides pre-assigned methods (which you can view via transaction
Data collection methods gather information
about the SAP system and its environment and report it to the monitoring
architecture. Since these are already assigned in the monitoring infrastructure,
you may never write any data collection methods.3
With that in mind, let's focus on the two
more common candidates for customization:
methods enable you to specify actions that the system executes automatically
in the event of an alert. The system checks the monitoring architecture
for you, looking for alerts at regular intervals. If it detects alerts,
the auto-reaction methods assigned to the MTEs will be started.
It is the auto-reaction method that would be responsible for getting
the message to your pager or email, as in the scenario at the beginning
of this article. Or, if you have assigned an email notification method
to your CPU monitor and the allotted CPU utilization exceeds its limit,
the system will send an email like the one in Figure 1.
||Email Sent in Case of an Alert
Auto-reaction methods are the most commonly customized methods for the
CCMS. These methods typically cannot be fully pre-set by SAP, since they
depend on customer-specific information, such as email addresses and pager
methods help you to quickly reach the tools needed to analyze the
root causes of a monitoring alert. They determine the functions to be
called and link you to the right solution to check the right system. Conveniently,
you do not have to leave the alert monitor; you can trigger these analysis
methods directly from inside the monitor.
Suppose that an alert occurs during ITS monitoring. From the monitor
for the ITS configuration on p45747 in Figure 2, you double-click
on the MTE Admin ADM Port 1080 to start the ITS Administration
tool with ITS-specific information. When the ITS Administration browser
is started, an analysis method can call URLs, or jump right into other
processes that enable you to evaluate error situations, such as transactions,
function modules, and reports.
||Starting the ITS Administration Tool from Within the Alert Monitor
In this article, we will look at how the
CCMS Monitor supports the three basic steps for modifying default alert-handling
and analysis methods:
- Check your current monitors and the existing methods of your most
commonly used MTEs and MTE classes.
- If necessary, create a new method, or copy an existing method and
customize it to meet your needs.
- Assign the method to the corresponding MTE to activate it.
Checking Your Current Monitors and Methods
Most methods come preset in the CCMS infrastructure. As you look through
your MTEs, you'll likely find that analysis methods are already assigned
to MTEs and MTE classes in the SAP standard version, whereas auto-reaction
methods are waiting for you to plug in contact and other information.
So first check whether the existing methods fulfill your requirements
in your most critical MTEs.
To view methods already assigned to an
MTE, start transaction RZ20, select the MTE, and choose Properties.
Under the Methods tab you will see the methods effective for the
MTE. Double-click on the method to view the method definition.
Once you have identified the MTEs and MTE
classes that could use some adjustment, you can either create a new method
or fine-tune an existing one. The CCMS Monitor makes it easy to do both.
Before you can create a method from scratch,
determine if the particular method you need
already exists. Methods are located in the
Properties and Methods" screen (RZ21)
under Method --> Method Definitions.
You can also use the Method menu to
determine which methods are assigned to MTE
classes or individual MTEs (see Figure 3).
||Reviewing Methods in the CCMS Monitor (RZ21)
If you can't find the method you need,
then create a new one by choosing Methods
--> Create new method.
This opens the screen for method definition,
shown in Figure 4.
||Starting Screen for Method Creation
Figure 5 takes you through the process
of creating a new method for an email alert.