Working with EMS Alert Probe Monitor ConfigurationsTopaz EMS monitors are useful for capturing alerts and other event data from Enterprise Management Systems, automated support systems, and other management applications. By default, these monitors are configured to capture and transfer a variety of information to Topaz. As with other features in SiteScope, the Topaz EMS monitors can be customized as to the way that they handle events. This section describes:
General EMS Configuration File StructureThe EMS Configuration file allows you to customize the events that are being forwarded to Topaz. The file contains instructions on how to process the event as it arrives to SiteScope's EMS monitors. The configuration file is based on concept of event handlers - independent sections that contain instructions relevant to specific events. You can use this to customize the configuration to events that are originated in several different Enterprise Management Systems. This section describes the possible options within the configuration file and presents a number of examples. Each Topaz EMS monitor type has a configuration file that containing one or more sets of event handlers. The individual configuration files for the EMS monitor types are stored in the location described as follows: <SiteScope install path>/ems/<monitor_type>/main.config where <SiteScope install path> is the SiteScope home path and <monitor_type> is the monitor type name (for example, Prism or Clarify). The instructions that constitute the configuration file are grouped into event handlers. Each event handler contains a "matching condition", by which SiteScope can decide whether to use a particular event handler for an arriving event. When an event is being forwarded to Topaz, SiteScope iterates over the different event handlers in the configuration file, in the order they appear in the file, testing the "matching condition" of each handler. If a matching handler is found, SiteScope uses the instructions within that handler to process event and to forward it to Topaz. Event Handler StructureEach event handler has following structure:
Instructions within the handler share the form name=expression, where name is a string, and expression is a valid boolean expression that is evaluated during the event forwarding. The names of Matching condition, Action directive and additional directives start with dollar sign symbol ($). The names of tags should not start with dollar sign. Comments are allowed in the configuration file. The comment starts with either #, ! or ; character and continues to the end of the line. The "block comments" are not supported. Expression structure and available operationsThe expression must be valid boolean expression. The expression can contain calls to the operators and functions defined below. The expression can access contents of the event that is being processed using the dollar sign ($) notation. For example, if the incoming event is SNMP Trap, then its enterprise OID can be accessed as $oid. Refer to the user guide of the relevant monitor type for names specific to monitor. Matching ConditionThe matching condition has the form: $MATCH=Boolean expression Where the boolean expression is one of the expressions listed in the table below
Any of the above expressions can be used and the expression can refer to incoming event fields. The value of the expression, which can be either true or false, determines whether the event handler will be used to process the event or not. Action directiveThe action directive has form:
TagsIn addition to directives, event handler contains tags. Each tag represents a field in the event that will be forwarded to Topaz, whose value can be evaluated when the event arrives to SiteScope. General form of a tag is:
The name is any string without spaces or dollar signs ($). The type specifies the type of field as reported to Topaz - it can be either UINT, DOUBLE or STRING. Default type is STRING. By defining a tag, one can customize event forwarding to Topaz and to get more value from the external applications that generate events that will be forwarded to Topaz Business Availability Center. Special EMS Configuration File EntriesIn addition to the event handlers, the configuration file can contain special entries that affect the EMS integration engine as a whole. these values are grouped into the [$DEFAULT_PARAMETERS$] section. This section defines tags that are common for all handlers. Any tag can be set in this section; it will be used to create a reported value unless defined in the relevant event handler. EMS Configuration File ExamplesExample 1: Universal Event Handler:
Note that the $MATCH directive in the handler is set to true. This causes every event to "match" the handler. Example 2: Different event handlers for long and short events
The "universal" handler is preceded with a handler which will match only events status field that equals the word “ERROR”. Every event that has this value in the $status field will be processed with first handler; other events will be processed with the second, the universal, handler. ReferencesString getStringProperty(String propertyName) return value of the event property or null if the property doesn’t exist in the event. Note that $name has the same effect. Logging EMS Events to a Topaz DatabaseIn order to send EMS events generated by the different sitescope monitors to the event database in Topaz:
|