Setting Up BMC

Deploy and register the UTP plugin to connect HEAL with BMC.

2 min read Updated SS

Follow the steps below for setting up UTP:

  1. Navigate to the folder below, /<Installer path>/Appsone_Service/a1eventhandler/plugins
  2. Deploy the respective UTP build.
  3. Register UTP Plugin in A1EventHandler.

    1. Create a common directory in the installer path to place the UTP-related files (use the mkdir command to create the folder):

      mkdir UTPFiles

    2. After the folder is created, place the files in the below directory:

      <Installer path>/Appsone_Service/conf/UTPFiles

    3. Inside the UTP Files directory, create a meta-template folder and upload the BMC templates in it.

      • bmc_data_template.json: Standard content for ticket creation.

      • bmc_update_data_template.json: Based on client requirements. Typically, same as the create template but excludes “priority” and “Heal_Incident_Type” fields, as they may not function for updates.

      • bmc_close_data_template.json: Customized for ticket closure based on client requirements.

      • bmc_event_data_template.json: Template for events (can be customized as needed).

        For information: Refer to section “Data Template Usage“, for sample templates.

    4. Follow the steps below to copy files from the appsone-eventhandler container.

      • To check the container ID, execute the command below:

        docker ps | grep appsone-event

        For Example:

        d47451e469f1 appsone-event-handler:5.8.14″/opt/appsone-event-…” 47 hours ago Up 47 hours A1Eventhandler-5990cdc0-044c-9eca-5270-413f72ec0fb

      • To log in to the container, execute the command below:

        docker exec -it <container id> /bin/bash

        For Example:

        docker exec -it d47451e469f1 /bin/bash

      • Check the container path of the plugin-details.json file.

        /opt/appsone-event-handler/config/plugin-details.json

      • To copy the plugin-details.json file from the container, execute the command below:

        docker cp <container id>:/opt/appsone-event-handler/config/plugindetails.json <Installer path>/Appsone_Service/a1eventhandler/conf/UTPFiles

        For Example:

        docker cp d47451e469f1:/opt/appsone-event-handler/config/plugindetails.json /opt/heal/appnomic/Appsone_Service/conf/UTPFiles

    5. Paste the copied files in the below path:

      /Appsone_Service/conf/UTPFiles

    6. Perform the JSON configuration for a UTP plugin.

      By adding the following section to the plugin-details.json file.

      { “name”:”UnifiedTicketingPlugin”, “className”:”com.appnomic.appsone.plugin.utp.UTPlugin”, “eventType”:[ “NOTIFICATION_OUTPUT” ], “queueName”:”a1-event-messages”, “eventName”:”UTPNotification”, “contextDetails”:{ “healPermalink”:”https://<Enter the HEAL UI IP and port>/heal-ui service/#/problem/detail/{Account_Identifier}?signalId={Signal_ID}”, “signalType”:”EARLY_WARNING,Problem,Info,Event”, “redis.ssl”:”true”, “redis.username”:”<Enter the username of Redis. Refer the table below>”, “redis.password”:”<Enter the password of Redis. Refer the table below>”, “redis.nodes”:”<Enter the nodes of Redis. Refer the table below>”, “redis.cluster.mode”:”true”, “opensearch.per.route.connections”:”20″, “opensearch.max.connections”:”50″ }

      To get the values of the attributes, refer to the table below:

Attributes Values
redis.username service/redis/username
redis.password service/redis/password/encrypted
redis.nodes service/redis/nodes

For Example:

{ “name”:”UnifiedTicketingPlugin”, “className”:”com.appnomic.appsone.plugin.utp.UTPlugin”, “eventType”:[ “NOTIFICATION_OUTPUT” ], “queueName”:”a1-event-messages”, “eventName”:”UTPNotification”, “contextDetails”:{ “healPermalink”:”https://192.0.2.4:8990/heal-uiservice/#/ problem/detail/{Account_Identifier}?signalId={Signal_ID}”, “signalType”:”EARLY_WARNING,Problem,Info,Event”, “redis.ssl”:”true”, “redis.username”:””, “redis.password”:”<base64-password>”, “redis.nodes”:”192.0.2.4:9001,192.0.2.4:9002,192.0.2.7 0:9001,192.0.2.7 0:9002,192.0.2.5:9001,192.0.2.5:9002″, “redis.cluster.mode”:”true”, “opensearch.per.route.connections”:”20″, “opensearch.max.connections”:”50″

}
  1. Mount the following configuration files to the A1EventHandler docker container (add the configuration files to the volumes section).

    /opt/<Installer path>/nomadFile/A1EventHandler.nomad

  2. Add the UTP files to the A1Event handler nomad file (remove the older files).

  3. Mount the files below in the volume section of the A1 Event handler nomad.

    • Map the JSON file located in the directory Plugindetails.json to the A1 Event handler.

      <Installerpath>/Appsone_Service/conf/UTPFiles/plugindetails.json:/opt/appsone-event- handler/config/plugin-details.json

    • Map the meta templates in the directory to the A1 Event handler.

      <Installerpath>/Appsone_Service/conf/UTPFiles/metatemplate/:/opt/appsone-event- handler/meta-template/