The configuration of the alerts and metrics is done on the work center SAP Solution Manager Configuration. Here you need to navigate to system monitoring tab as show in the image below:
The main step here is number '4 Template maintenance' where you need to find a template according the type of system you would like to monitor. And then apply it to the system on step number 5 and 6.
A template is a collection of Metrics, Events and Alerts, which falls in one and exactly one of the four categories: "Availability", “Performance”, “Exception” and “Configuration”.
Templates can be applied to Managed Objects which are one concrete instance of a given MOT. Managed Object type (MOT): This is a design time entity well defined in the landscape model such that the Solution Manager is able to manage the concrete instances of any given MOT. Examples of MOT are “Technical system”, “Technical instance”, “Host / Server”, “Database”, “Technical Component”, “Connection”, etc.
Metric type: This is an entity created at Design time and has few static attributes such as an ID, Name / Short description, Text, Threshold, Collection interval, Collector details, etc. This is the measurable entity for which values and / or ratings are collected at the specified periodicity and in turn evaluated by the Event Calculation Engine of MAI. Then appears concept Metric instance: This is a runtime occurrence of exactly one Metric type in an MO at a point in time. This is in general referred to as a “Metric” (the word “instance” is dropped in user interfaces). This, consequently, has all attributes of a Metric type, plus a Value (Numeric with Unit of measurement, or Text), a Rating, the date and time of occurrence and the MO it originated from.
Event type: This is an entity created at Design time and has few static attributes such as an ID, Rule, etc. An event type is used to correlate one or more other Event type(s) and / or one or more Metric type(s). Event instance: This is a runtime occurrence of exactly one Event type in an MO at a point in time. This is in general referred to as an “Event” (the word “instance” is dropped in user interfaces). This, consequently, has all attributes of an Event type, plus a Rating, the date and time of occurrence and the MO it originated from.
The Rating of an Event is function of the Ratings of each other Event and / or Metric that contributed (were correlated at design time) to the Event. This function is defined by the Rule of the Event. Typically, “Worst case”, “Average case”, “Best case” etc. are the different Rules that are used with an Event.
Alert type: This is an entity created at Design time and has few static attributes such as an ID, Name / Short description, Text, Severity, etc. This represents a situation which, if occurred in an MO at point in time, needs attention of the administrator and potentially should be processed / resolved. Examples: “Bad dialogue response time”, “File system full”, “Long running process”, “Abruptly terminated job”, “High paging rate”, etc. are a few examples of Alert types. An Alert type is always defined on an Event type. In other words, there is always an Event type that was “relevant” for an Alert. When the Rating of the relevant Event was Red or Yellow, the Alert would occur. Please note that, on the other hand, not all Event types need have an Alert type defined on top of it. Alert Instance: This is an occurrence of exactly one Alert type in an MO at a point in time. This is in general referred to as an “Alert” (the word “instance” is dropped in user interfaces). This, consequently, has all attributes of an Alert type, plus a Rating, the date and time of occurrence, “Status” and the MO it originated from. In other words, in an alert, the Alert type tells “what is the situation”, the timestamp tells “when” and the MO tells “where” the situation has occurred. Please note: The same Alert can occur several times in the same MO, each time for same and / or different contributing Metrics under the relevant Event, with same or different Ratings each time.
- To create custom metrics and alerts, please see the following page: Custom alerts & metrics.
Adding CCMS Metrics to the Monitoring and Alerting Infrastructure
Monitoring Log Files in the Monitoring and Alerting Infrastructure
Extra information: SAP Help Configuration, MAI configuration, Monitoring and Alerting related FAQ