Automatically notify the appropriate on call resources on their preferred device when alert thresholds are met. This integration helps you initiate xMatters notifications for LogicMonitor alerts.
- LogicMonitor (https://www.logicmonitor.com)
- You must have a collector installed
- You must have devices added and configured
- You must add a Custom Property for the device defining the xMatters Group to target.
- xMatters account - If you don't have one, get one!
Integrating xMatters with LogicMonitor allows you to automatically transfer key LogicMonitor alert data to xMatters alerts and drive workflows forward.
You can configure any alert rule in LogicMonitor to use the xMatters integration. When such a rule fires, it will trigger an API call into the xMatters Inbound Integration specified by this integration. The integration script then parses out the payload and builds an event and passes that to xMatters.
xMatters will update the LogicMonitor notes field throughout the incident life cycle. Because the notes field in LogicMonitor does not allow multiple values, this integration will append additional details with each update.
xMatters will update the notes field when:
- Notifications are created in xMatters.
- A comment is added to xMatters alert.
- A response (Escalate or Acknowledge) is made to the xMatters alert.
When a user responds with Acknowledged, an API call will be made to LogicMonitor to update the notes and mark the alert at Acknowledged.
When an alert is resolved in LogicMonitor the corresponding xMatters alert will be terminated.
When a note is added in xMatters it will be appended to the LogicMonitor Alert Notes field.
This integration requires a user who can authenticate REST web service calls when injecting events to xMatters.
This user needs to be able to work with events, but does not need to update administrative settings. While you can use the default Company Supervisor role to authenticate REST web service calls, the best method is to create a user specifically for this integration with the "REST Web Service User" role that includes the permissions and capabilities.
Note: If you are installing this integration into an xMatters trial instance, you don't need to create a new user. Instead, locate the "Integration User" sample user that was automatically configured with the REST Web Service User role when your instance was created and assign them a new password. You can then skip ahead to the next section.
To create an integration user:
- Log in to the target xMatters system.
- On the Users tab, click the Add New User icon.
- Enter the appropriate information for your new user. Example User Name LogicMonitor_API_User
- Assign the user the REST Web Service User role.
- Click Save.
Make a note of the user name and password that you set; you will need them when configuring other parts of this integration.
The next step is to import the communication plan.
To import the communication plan:
-
In the target xMatters system, on the Developer tab, click Import Plan.
-
Click Browse, and then locate the downloaded communication plan: xMatters LogicMonitor Communication Plan
-
Click Import Plan.
-
Once the communication plan has been imported, click Plan Disabled to enable the plan.
-
In the Edit drop-down list, select Access Permissions.
-
Add the LogicMonitor_API_User or Make the Plan Accessible by All.
-
Save Changes.
-
In the Edit drop-down list, select Forms.
-
For the On-Call Resource Alert form, in the Not Deployed drop-down list, click Enable for Web Service.
-
After you Enable for Web Service, the drop-down list label will change to Web Service.
-
In the Web Service drop-down list, click Sender Permissions.
-
Add the LogicMonitor_API_User you created above, and then click Save Changes.
There are two constants that must be configured in the LogicMonitor xMatters Communication Plan.
- In the target xMatters system go to the Developer tab.
- Beside the LogicMonitor Communication Plan click the Edit drop-down list, select Integration Builder.
- Click Edit Constants.
- Set LogicMonitor Access ID. Instructions
- Set LogicMonitor Access Key. Instructions
LogicMonitor Instructions: LogicMonitor Access ID LogicMonitor API Token
This will set the authentication parameters required to make API requests into LogicMonitor.
- From inside the LogicMonitor Communication Plan go to the Integration Builder tab.
- Click Edit Endpoints.
- Click on the LogicMonitor endpoint.
- Set Base URL. This should be the url of your LogicMonitor environment followed by /santaba/rest. Example: https://company.logicmonitor.com/santaba/rest
- Set Authorization Type to None.
- Authentication is done with in each API calls.
- Save Changes.
- In the Edit drop down list on the LogicMonitor Communication Template Click Integration Builder.
- On the Integration Builder tab, expand the list of inbound integrations.
- Click on LogicMonitor Alerts.
- Ensure URL Authentication is set.
- In the How to trigger this integration section, set the Authentication User to LogicMonitor_API_User.
You must supervise this user and it must have a Web Service User Role. If you cannot select the LogicMonitor_API_User if it because you do not supervise that user or they do not have the REST Web Service User role.
-
Copy the URL listed under the Trigger section.
- We will need this url when configure the xMatters Integration inside LogicMonitor
-
Login to LogicMonitor.
-
Go to Settings.
-
Go to Integrations.
-
Click Add Integration button.
-
Select Custom HTTP Delivery.
-
Click the Import button. Browse for the included LM-xMatters-Integration.json file.
-
Adjust the URL use the xMatters Inbound Integration Endpoint URL copied from LogicMonitor Alert Inbound Integration. Make sure to remove the https:// from the beginning as this was copied from xMatters and should be set in the drop down not the path.
-
A Username and Password are not required for URL Authentication. If you want to use Basic Authentication please enter your username and password.
xmatters.group is a LogicMonitor Custom Device Property you must include on each device that will be configured to create xMatters alerts. The property can be configured directly on the device or inherited from a parent group. This property defines the Recipient Group to target in xMatters. Add Custom Device Parameters
-
Click Test Alert Delivery and wait for a response.
-
Click Save if the test is successful.
API tokens are created on a per user basis from the Manage Users Dialog within LogicMonitor. https://www.logicmonitor.com/support/settings/users-and-roles/users/#apitokens
After adding a LogicMonitor API Token make sure to copy it as it will only be displayed once.
When creating a user, you may want to use the API Only Access toggle. This will create a user that can only access LogicMonitor for the purposes of this integration.
-
Create User for LogicMonitor Integration. Make sure it has appropriate LogicMonitor roles / permissions.
-
Copy LogicMoitor API Token.
-
Set xMatters Constant. LogicMonitor Access Key
In LogicMonitor go to the Settings > API Tokens Tab. Here you will see the Access ID of the API token you just created.
https://www.logicmonitor.com/support/settings/users-and-roles/api-tokens/
-
Copy appropriate LogicMoitor Access ID.
-
Set xMatters Constant. LogicMonitor Access ID
-
Go to Settings.
-
Go to Recipient Groups.
-
Click Add button.
-
Name the Group.
-
Add a new recipient.
- The selected recipient does not matter.
-
Set Contact Method to xMatters Integration(http).
- This is the name of the xMatters integration you created in the last step: Configure LogicMonitor
-
Save Recipient.
-
Save Group.
-
Repeat for additional Groups.
More info on creating LogicMonitor Recipient Groups
-
Go to Settings.
-
Go to Escalation Chains.
-
Click Add button.
-
Name the Escalation Chain.
-
Optional - Configure Rate Limiting.
-
Add Recipient. The recipient should be a group that you created in last step: Add LogicMonitor Recipient Groups
-
Save Escalation Chain.
More info on creating LogicMonitor Escalation Chains
- Go to Settings.
- Go to Alert Rules.
- Click Add button.
Use this resource to help you configure your alert rule. https://www.logicmonitor.com/support/settings/alert-settings/alert-rules/
The most important thing you must do here is to configure the Escalation Chain.
- Select the escalation chain you just created in the last step: Create LogicMonitor Escalation Chain
-
Save Alert Rule.
-
Add additional Alerts for each Data source / Alert Level that you want to notify with xMatters.
More info on creating LogicMonitor Alert Riles
The property can be configured directly on the device or inherited from a parent group.
To add to devices directly:
- Go to Resources.
- Select a Device configured to target the xMatters Integration.
- Go to Info Tab.
- Click the Cog beside Custom Properties.
- Add the following Custom Property:
Name: xmatters.group Value: {{Name of xMatters Group to Notify}}
- Repeat this step for each device you want to notify with xMatters.
The value that you set here must match the name of a group in xMatters. If this value does not match the name of a group in xMatters your notification will not go to anyone.
More info on creating Device Properties
Go LogicMonitor Integration. Follow instructions here: Configure LogicMonitor
- Click Test Alert Delivery.
Trigger a new LogicMonitor Alert check that it makes its way into xMatters.
You can check the Inbound Integration Activity Log in xMatters: https://help.xmatters.com/ondemand/xmodwelcome/integrationbuilder/create-inbound-updates.htm