Integrating Data With BSM Connector > Perl Script Policies > How to Collect Metrics Data Through the REST Web Service Listener

How to Collect Metrics Data by Using Perl Scripts

This task describes how to collect metrics data by using Perl scripts.

Note: For examples and end-to-end workflow information on collecting metrics data, see Collecting and Viewing Metrics Data.

  1. Prerequisite: Make sure the following applies:

    1. Your BSM 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 BSM Connector is set up as a connected server in OMi.

  2. In the BSM Connector user interface, click Create in the toolbar. Then click Metric > 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).

    For details, see Configuring Perl Policy Properties.

  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.

    For details, see Configuring the Data Source in Perl Policies .

  5. Optional. In the Defaults page, assign default values to the metric attributes.

    For details, see Configuring Metric Defaults in Perl Policies.

  6. In the Rules page, define what the policy should do in response to a specific metric.

    For details, see Configuring Metric Rules in Perl Policies.

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

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