Administer > Policies > Perl Script Policies > How to Collect Event Data Through the REST Web Service Listener

How to Collect Event Data by Using Perl Scripts

This task describes how to collect event data by using Per scripts.

  1. Prerequisite: Make sure the following applies:

    1. Your Operations Connector is configured to work with OMi by using the bsmc-conf tool.

    2. The certificate request is approved on the OMi side.

    3. Your Operations Connector is set up as a connected server in OMi.

  2. In the Operations Connector user interface, click Create in the toolbar. Then click Event > REST Web service listener Perl Script.

    Alternatively, double-click an existing policy to edit it.

  3. In the Properties page, define information that is related to the policy itself (for example, the name and description of the policy).

  4. In the Source page, define the path to the Perl script or upload the embedded script, set the polling interval, the input parameters, and define the result array and result data key names.

  5. In the Mappings page, configure the default mappings of the data properties to custom variables.

  6. Optional. In the Defaults page, configure the default settings for all events generated by the policy (for example, default event correlation settings).

  7. In the Rules page, define what the policy should do in response to specific data generated by Perl scripts.

  8. In the Options page, configure several policy behaviors (for example, pattern matching options).

  9. Click Save and Close to save the policy and close the editor.

  10. Optional. If the list of policies does not refresh automatically in the Operations Connector user interface, click Refresh in the toolbar.

Related topics

Configuring Perl Policy Properties

Configuring the Data Source in Perl Policies

Configuring Mappings in Perl Policies (Events and Metrics Only)

Configuring Event Defaults in Perl Policies

Configuring Event Rules in Perl Policies

Configuring Options in Perl Policies