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:

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:

Tip

You can hover over an action to view the complete label for the action as shown:


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


  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.


  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.

    Under Then, add a Function action to generate an event of the APP_DOWN (custom event class) event class if the application is down.

Results

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

Was this page helpful? Yes No Submitting... Thank you

Comments