This documentation supports an earlier version of BMC Helix Operations Management.To view the documentation for the latest version, select 23.3 from the Product version picker.

Example: Generate events to check application availability


Scenario

Sarah is an administrator at Apex Global. She wants to generate events for a specific event class to detect whether an application running on a server is up or down based on the event message by using an advanced enrichment policy.

To generate events, perform the following steps:

  1. Define the event selection criteria.
  2. Build the policy workflow.

Actions used in the example

The following actions are used in the example:

  • If-Then-Else
  • Function

For more information about actions, see Actions-for-advanced-and-time-based-enrichment.

To define the event selection criteria

  1. Select Configuration > Event Policies and click Create.
  2. In the Event Selection Criteria, define a condition to select events from the class APP_MISSING_PROCESSES (custom event class) that contain the message "testApp".

The following image illustrates how the event selection criteria will look:

Event_selection_criteria.png

To learn how to construct the event selection criteria, see Creating-and-enabling-event-policies.

To build the policy workflow

On the Advanced Enrichment page, perform the following steps to build the policy workflow:

TipYou can hover over an action to view the complete label for the action as shown:Action_hover.png

  1. Add the If action by defining a condition, under If Settings, that checks for a message indicating that the application is up.
    If_settings_app_up.png

  2. Under Then, add a Function action to generate an event of the APP_UP (custom event class) event class if the application is up.
    Function_settings_app_up.png

  3. Under Else, add the If action by defining a condition, under the If Settings that checks for a message indicating that the application is down.
    If_settings_app_down.png
    Under Then, add a Function action to generate an event of the APP_DOWN (custom event class) event class if the application is down.
    Function_settings_app_down.png

Results

The resulting policy workflow generates events to check application availability as shown in the following image:

Generate events to check application availability policy workflow.png

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*