The information provided details the instructions to configure a one-way integration to trigger a web service call to xMatters.
- HP SiteScope 11.32.301
- SiteScope.zip - The xMatters Workflow
- xMatters - The JSON mapping file for SiteScope
SiteScope uses Action Alerts that are capable of performing HTTP Rest Web Service calls to xMatters to generate an xMatters alert. The Action Alerts are configured to run based on trigger conditions in SiteScope.
- Import the SiteScope Workflow SiteScope.zip
- Instructions to import a Workflow can be found here: Import a Workflow
- First Name: SiteScope
- Last Name: Rest Web Service
- User ID: sitescope
- Roles: REST Web Service User
-
Workflow
- From within the workflow page, select the Edit drop-down menu for the SiteScope Workflow
- From the Edit drop-down menu, select Access Permissions
- From within Access Permissions, add the xMatters REST User created
-
Form
- From within the W tab, select the Edit drop-down menu for the SiteScope Workflow
- From the Edit drop-down menu, select Forms
- From within Forms, select the Web Service drop-down menu for the SiteScope form
- From within Web Service drop-down menu, select Sender Permissions
- From within Sender Permissions, add the xMatters REST User created
-
Endpoint
- From within the workflow page, select the Edit drop-down menu for the SiteScope Workflow
- From the Edit drop-down menu, select Integration Builder
- From within the Integration Builder tab, select Edit Endpoints
- From within Edit Endpoints, add the xMatters REST User created
- Navigate to the server that contains the SiteScope root directory
- Navigate to the following directory:
<SiteScope root directory>\templates.rest
- From within the
\templates.rest
directory, add the xMatters file.
This task describes the steps involved in configuring an alert definition.
Only a SiteScope administrator user, or a user granted the appropriate alerts permissions can view, create, or edit alerts. For details on user permissions, see Permissions.
You can create a new alert or copy an existing alert into any group or monitor container in the SiteScope tree.
To create a new alert:
- Right-click the container to which you want to associate the alert, and select New > Alert.
- Enter a name for the alert.
- Configure an alert action (in the Alert Actions panel, click New Alert Action to start the Alert Action wizard).
- For Action Type select Rest.
- Once Rest is selected, on the next window ensure that xMatters is selected for template.
Action name: xMatters Alert
Rest to URL form: To populate this field, follow the next steps:
- Navigate to xMatters
- Navigate to the workflow page
- From within the workflow page, select the Edit drop-down menu for the SiteScope Workflow
- From the Edit drop-down menu, select Integration Builder
- From within the Integration Builder tab, find the Inbound Integrations and select the Inbound - SiteScope
- From within the Inbound Integrations page, ensure that Base Authentication is selected.
- Lastly copy the URL at the bottom of the page and paste it into the REST to URL form field.
Template: xMatters
Note: You can view the contents of the existing templates or add additional templates in the <SiteScope root directory>\templates.rest
directory. For more details on alert templates, see Customize Alert Templates.
HTTP Method: POST
Format Type: JSON
Additional Parameters: Not needed for the xMatters integration. However, below is an explanation of this field.
Enter any parameter that REST API supports. You must enter all the additional parameters used in the template. The format for providing the parameters is = with multiple parameters separated by commas. The specified here must match the parameter name specified in the template.
Note: If there are additional parameters specified in the template and if you do NOT specify in this field, then it results in an error. You can see the error messages in the alert.log file in the SiteScope Logs directory located at <install_dir>/Sitescope/logs .
This task describes how to customize SiteScope alert templates to alter the content and format of alert messages.
- Open a text editor that has access to the alert template directories on the SiteScope machine.
For a list of the directory names containing SiteScope alert templates, see Alert Template Directories.
-
Open an existing template file of the alert type you want to customize within a text editor.
-
Make changes to the template. Depending on the alert type, you can add or remove text, change the order of text or property variables, or add other property variables. To add specific properties, add the applicable property variable name between < > bracket pairs to the template.
For a list of specific property variables, see Properties Available in Alerts, Templates, and Events.
- Save the changes to a unique filename within the directory for the applicable alert type. The new template is added to the Action Type Settings Template drop-down list.
For testing execute the action to occur and navigate to xMatters OnDemand and view the Integration Builder activity stream.
For any troubleshooting regarding submissions to xMatters it will be best to view the activity stream