Integrating with Entuity via webhook
You can view the collected data in various BMC Helix applications and derive the following benefits:
BMC Helix application | Type of data collected or viewed | Benefits |
---|---|---|
BMC Helix Operations Management | Events (Entuity incidents received as events) | Use a centralized event view to monitor and manage events, perform event operations, and filter events. Identify actionable events from a large volume of event data by processing events. For more information, see Monitoring events and reducing event noise. |
As a tenant administrator, perform the following steps to configure a connection with Entuity via webhook, verify the connection, and view the collected data in various BMC Helix applications.
Supported versions
The Entuity connector supports version 20.x of Entuity for data collection.
Task 1: To plan for the connection
Review the following prerequisites to help you plan and configure a connection with Entuity via webhook.
Entuity prerequisites
If Entuity and BMC Helix Intelligent Integrations on-premises gateway servers are in different domains or sub-domains, and on-premises gateway is using a custom certificate, import the custom certificate into the Entuity server:
Back up the existing Entuity truststore:
cp $Entuity_HOME/install/JRE/lib/security/cacerts $Entuity_HOME/install/JRE/lib/security/cacerts1- Copy the certificate <IIGateway_INSTALL_DIR>/hii/conf/certs/<hostname>.crt from the on-premises gateway server to the Entuity server in a temporary directory.
Import the certificate into Entuity:
keytool -keystore $Entuity_HOME/install/JRE/lib/security/cacerts -importcert -file <pathtoCertificate> -alias "iionprem"Enter Yes when prompted to trust the certificate during import.
BMC Helix Intelligent Integrations prerequisites
- Depending on the location of the third-party product (SaaS, on-premises), choose one or more BMC Helix Intelligent Integrations deployment modes and review the corresponding port requirements. For information about various deployment modes and port requirements, see Deployment-scenarios.
- Based on the deployment mode, use the BMC Helix Intelligent Integrations SaaS deployment or the BMC Helix Intelligent Integrations on-premises gateway or both. For more information about the gateway, see Deploying-the-BMC-Helix-Intelligent-Integrations-on-premises-gateway.
- Plan to configure a separate connection for each third-party instance. For example, if you have three Entuity instances that discover various subnets in your environment and a fourth Entuity aggregator instance that shows the aggregated data from the three instances, we recommend that you configure individual connectors for these three instances. You do not need to configure any connector separately for the aggregator instance.
In the preceding list, third-party product refers to Entuity.
Task 2: To configure the connection with Entuity via webhook
- Depending on the deployment mode, perform one of the following steps to access BMC Helix Intelligent Integrations:
- BMC Helix Intelligent Integrations SaaS – Log on to BMC Helix Portal, and click Launch on BMC Helix Intelligent Integrations.
- BMC Helix Intelligent Integrationson-premises gateway – Use the following URL to access BMC Helix Intelligent Integrations:
https://<hostName>:<portNumber>/swpui
- On the CONNECTORS tab, click
in the SOURCES panel.
- Click the Entuity Events tile.
Specify a unique instance name.
- Click CREATE COLLECTORS to create the collector stream for the selected data type.
- Configure the distributors for the selected data type by clicking the data type in the Distributors section and specifying the parameters for the selected data type, as explained in the following table:Parameter nameDescriptionMax Batching SizeSpecify the maximum number of data items to send in a single POST request to the destination API.
The batch size depends on the destination’s ability to buffer the incoming data.Default: 250Max Batching DelaySpecify the maximum time (in seconds) to wait before building and processing a batch.Default: 3 secondsBase Retry DelaySpecify the initial time (in seconds) for which to wait before retrying to build and process a batch.
The waiting time increases in the following sequence: n1, n2, n3, and so on, where n indicates the number of seconds.Default: 2 secondsExample:Base Retry Delay is set to 2 seconds.Retry is performed after 2, 4, 8, 16, ... seconds.Max Intra-Retry DelaySpecify the maximum limit for the base retry delay. Default: 60 secondsExample:Max Intra-Retry Delay is set to 60 seconds.
Base Retry Delay is set to 2 seconds.Retries are performed 2, 4, 8, 16, 32,... seconds later.Max Retry DurationSpecify the total time for retrying a delivery. For REST destinations, a delivery is a batch of data items in one POST request. Default: 5 minutesExample:Max Retry Duration is set to 8 hours.
Base Retry Delay is set to 2 seconds.Requests are sent for 2+4+8+16+32+64+132... until 8 hours in total duration is reached. After that, no subsequent attempts are made to retry the delivery.The assumption here is that if there is an outage or other issue with the destination tool, recovery should take less than the value of the Max Retry Duration parameter to be completed.Attributes To Be Dropped When Updating EventsSpecify the event attributes that you do not want to be updated in BMC Helix Operations Managementwhen events are updated. For example, if you do not want an event's severity, source address, source category, and subcategory to be updated in BMC Helix Operations Management , you need to specify those attributes in a comma-separated format: severity,source_address,source_category,source_subcategory .Important:You can obtain the event attribute names in BMC Helix Operations Management, by exporting any event data in JSON, BAROC, XML, or CSV format . The exported file contains all attributes of the event data, and from there you can identify the attributes to be dropped.
- Click CREATE DISTRIBUTORS to create the required distributor stream for the selected data type.
- Click VALIDATE AND CREATE and then click SAVE STREAM to save the stream.
After you save the stream, the connector that you just created is listed on the SOURCES panel.
- On the SOURCES panel, click Configure Mediator
for the source connection that you created and then expand ENTUITY EVENTS.
- Click copy
to copy the auto-generated Entuity webhook collector URL and save it in a temporary file.
For example, https://hostA/hii/api/mediator/v3/push/9mn-6c97-4c2e-8pc5-12c0asdf?token=API-KEY. - Depending on whether you are using only SaaS deployment of BMC Helix Intelligent Integrations or BMC Helix Intelligent Integrations on-premises gateway, perform the following steps:
- If you are using only SaaS deployment of BMC Helix Intelligent Integrations or the on-premises gateway with authentication enabled, perform the following steps:
Log on to BMC Helix Portal and generate an access key.
For instructions, see Setting up access keys for programmatic access.- Copy the generated access key and save it in a temporary file.
The key is generated in the format: <accessKey>::<secretKey>::<tenantID>.
For example, Y40OSC49QZA11Q8A1H9H6::MnVLk69TNyCEponsthHJ1Hj1uKcjTB::385261281 - Change the format of the access key to <tenantID>::<accessKey>::<secretKey>.
For example, 385261281::Y40OSC49QZA11Q8A1H9H6::MnVLk69TNyCEponsthHJ1Hj1uKcjTB - In a temporary file, modify the auto-generated collector URL by replacing API-KEY with the access key that you formatted in the previous step.
For example, https://host.ab.com/hii/api/mediator/v3/push/9mn-6c97-4c2e-8pc5-12c0asdfd?token=385261281::Y40OSC49QZA11Q8A1H9H6::MnVLk69TNyCEponsthHJ1Hj1uKcjTB. - Configure Entuity to forward incidents data to BMC Helix Intelligent Integrations.
- If you are using the on-premises gateway with authentication disabled, perform the following steps:
- Save the URL in a temporary file.
- Remove the following string from the collector URL:?token=API-KEY
The updated collector URL looks like the following example:
https://hostA/hii/api/mediator/v3/push/9mn-6c97-4c2e-8pc5-12c0asdf - Configure Entuity to forward incidents data to BMC Helix Intelligent Integrations.
- If you are using only SaaS deployment of BMC Helix Intelligent Integrations or the on-premises gateway with authentication enabled, perform the following steps:
- On the SOURCES panel, move the slider to the right to start the data stream for the connector you created in step 7.
Task 3: To configure Entuity to forward incidents data to BMC Helix Intelligent Integrations
First create an action and then a trigger in Entuity.
- Log on to Entuity, and from the main menu, select Administration.
- On the Entuity Administration page, click Event Administration.
- Create the action to forward incidents data to BMC Helix Intelligent Integrations:
- Select the Actions tab and then click Add.
- In the Add Action dialog box, enter the following information:
- Enter a name for the action, for example, Send incidents to BMC Helix Intelligent Integrations .
- (Optional) Enter a description for the action.
- In the Parameters section, click Add and enter the following information in the New Parameters dialog box:
- Enter the parameter name as URL.
- (Optional) Enter a description for the parameter.
- Depending on whether you are using only SaaS deployment of BMC Helix Intelligent Integrations or the on-premises gateway, copy the collector URL that you modified in step 11 and paste it as the default value of the parameter, enclosed in double quotes.
- In the Action Steps section, click Add and enter the following information in the Add Action dialog box:
- From the Type list, s elect the Groovy Script option.
Copy the following script and paste it in the Script field:
- Click OK.
- Click OK to close the Add Action dialog box.
- Configure a trigger for the action you generated in the previous step:
- On the Event Administration page, select the Incidents tab and click Edit Global Triggers.
- In the Edit Global Triggers dialog box, click Add and enter the following information in the Create Trigger dialog box:
- Specify a name for the trigger, for example, Trigger to send incidents to BMC Helix Intelligent Integrations .
By default, the enabled check box is selected, which indicates that this trigger is enabled. - (Optional) Enter a description for the trigger .
- Ensure that the Any Change option is selected in the On Transition To list.
The Any Change value indicates that the action will be triggered for any change in the incidents data. - Ensure that the None option is selected in the Condition list.
The None value indicates that the action will be triggered for all possible conditions. - Ensure that the None option is selected in the Delay list.
The None value indicates that the action will be triggered without any delay. - In the Action Steps section, click Add.
- In the Add Action dialog box, from the Type list, select the action you created for sending incidents data to BMC Helix Intelligent Integrations.
The Parameters field shows the URL parameter that you created in step 3c. - Click OK to close the Add Action dialog box.
The Create Trigger dialog box shows the added action.
- Specify a name for the trigger, for example, Trigger to send incidents to BMC Helix Intelligent Integrations .
- Click OK to close the Create Trigger dialog box.
- Click Save and Deploy
.
- Go to step 12 to start the data stream.
Task 4: To verify the connection
From BMC Helix Intelligent Integrations , on the SOURCES panel, confirm that the data streams for the connection you created are running. Data streaming is indicated by different colored moving arrows.
A moving blue arrow ( ) indicates that the event stream is running. Event data will be pushed as soon as incidents are available.
To view events in BMC Helix applications
- In BMC Helix Operations Management, select Monitoring > Events.
- Filter the events by the EntuityIncident class.
Incoming events from Entuity are processed in BMC Helix Operations Management through a set of deduplication rules to determine whether the incoming event is a duplicate event or a new event. For more information, see Event-deduplication-suppression-and-closure-for-reducing-event-noise.
For more information about events, see Monitoring and managing events.
Mapping of attributes between Entuity and BMC Helix Operations Management
The following table shows the mapping between Entuity and BMC Helix Operations Management:
Attribute | Entuity | BMC Helix Operations Management |
---|---|---|
URI | hURI | originURI |
Incident source | Source | Host |
Incident name | Name | Message (<Name> on <Source>) |
Incident details | Details | Detailed Message |
Status | State | Status |
Severity | Severity | Severity |