ServiceNow
The ServiceNow Alert Method automatically opens an issue in your ServiceNow workflow to notify you whenever an incident is triggered.
Authenticationβ
ServiceNow Credentialsβ
Configuring the ServiceNow Alert Method requires the following:
Your ServiceNow username.
Your ServiceNow password.
Your ServiceNow Instance name.
An Instance name is a globally unique name across all ServiceNow instances. Check the<instanceURL>/stats.do
page for any instance to view its name.
Setting up ACLsβ
To allow ServiceNow alerts to integrate with Nobl9, you need to set up an Access Control List (ACL) for your ServiceNow users.
note
To create a new ACL, you must have the security_admin
permission assigned.
Follow the instructions below to set up your ServiceNow users:
Go to System Security > Access Control (ACL) and create new Access Control.
In the drop-down menus select the following values:
Type: record
Operation: create
Name: Event [ecc_event]
In the Requires role section, choose Assign new/existing role.
In the example below, we created a new role:
api_event_create
:
Click Save (Update).
Go to User Administration > Users and, by editing the user's profile, assign the relevant role to that user:
For more details on ACLs, see ServiceNow documentation.
Configuring the ServiceNow Alert Methodβ
You can configure your ServiceNow Alert Method directly in the Nobl9 UI, or by applying a YAML file in sloctl
.
Nobl9 UIβ
To set up the Alert Method in the Nobl9 UI, follow these steps:
Go to Integrations > Alert Methods.
Click the
button.
Select ServiceNow.
Enter your ServiceNow Username (mandatory).
Enter your ServiceNow Password (mandatory).
Enter an Instance name (mandatory).
Select a Project (mandatory).
Specifying a Project is helpful when multiple users are spread across different teams or projects. When the Project field is left blank, a default value appears.Enter a Display name (optional).
You can enter a friendly name with spaces in this field.Enter a Name (mandatory).
The name is mandatory and can only contain lowercase, alphanumeric characters and dashes (for example,my-alertmethod-name
). This field is populated automatically when you enter a display name, but you can edit the result.Enter a Description (optional).
Here you can add details such as who is responsible for the integration (team/owner) and the purpose of creating it.Click the Add Alert Method button.
YAML Configurationβ
- YAML
- Example
Hereβs a general specification for adding a ServiceNow Alert Method through YAML:
apiVersion: n9/v1alpha
kind: AlertMethod
metadata:
name: # string
displayName: # string
spec:
description: # string
servicenow:
username: # string, mandatory
password: # string, mandatory
instanceName: # string, mandatory
Here's an example of ServiceNow configuration through YAML:
apiVersion: n9/v1alpha
kind: AlertMethod
metadata:
name: servicenow-notification
displayName: ServiceNow notification
spec:
description: Sends HTTP request to ServiceNow https://dev99209.service-now.com/api/now/table/ecc_event
servicenow:
username: nobl9user
password: My9%pass # secret field
instanceName: dev99209
Testing the ServiceNow Alert Method in the UIβ
Users can test their Alert Methods for all notification services supported by the Nobl9 platform through the UI.
To verify that your ServiceNow Alert Method is set up correctly at the time that you configure it:
Go to Integrations > Alert Methods.
Follow the process outlined above to add the Alert Method in the Nobl9 UI: complete the steps in the Create Alert Method wizard, and click the Add Alert Method button.
On the Details screen, click the Test button in the upper-right corner. If the configuration is correct, Nobl9 will display the following message next to the button:
Test completed successfully!
note
If the configuration is incorrect, Nobl9 will provide an error message with relevant details. The content of the error differs depending on the Alert Method channel.
You can also test an existing Alert Method. To do that:
Go to Integrations > Alert Methods.
Find the Alert Method you want to test in the list, and click it.
On the Details screen, click the Test button in the upper-right corner.