Plugin Configuration

Configure the plugin in the OpenNMS web interface under Plugins > ServiceNow. This page describes the connection settings. The feature pages describe the filters and the field mappings. When OpenNMS reaches the internet through an HTTP proxy, see Proxy Servers.

Settings

Setting Description

ServiceNow instance URL

The URL of your instance, in the form https://<instance>.service-now.com.

Authentication

Basic, OAuth 2.0 client credentials or OAuth 2.0 password grant. See Authentication.

Username and password

The ServiceNow integration user. See ServiceNow Instance Setup. Not used with client credentials. The token runs as the OAuth application user.

Client ID and client secret

OAuth only. The values of the OAuth API endpoint record in the ServiceNow application registry. Leave the secret empty on a later save to keep the stored one.

Forward alarms

Send OpenNMS alarms to ServiceNow Event Management. See Event and Alarm Forwarding.

Forward events

Send OpenNMS events to ServiceNow Event Management. See Event and Alarm Forwarding.

Forward tickets

Create and update ServiceNow incidents from OpenNMS alarms. This needs the ticketer plugin, see Installation. See Ticket Forwarding and Cases.

CMDB import

Import configuration items from the ServiceNow CMDB. See CMDB Import.

Status

Connected or Disconnected, set by the last save.

A save tests the connection first. If the connection fails, nothing is saved. After the save, the plugin checks the access of the user for each enabled feature. A failed check shows a warning, and the settings stay saved.

Authentication

The plugin has three authentication types.

Type Needs When to use

Basic

Username and password

Simple setups. Not possible on instances that require multi-factor authentication for the user.

OAuth 2.0 client credentials

Client ID and client secret. No username, the token runs as the OAuth application user.

Washington DC or later. No user password leaves the instance. Recommended for new setups.

OAuth 2.0 password grant

Client ID, client secret, username and password

Instances older than Washington DC. ServiceNow recommends to disable this grant, so prefer client credentials where possible.

With OAuth, the plugin requests an access token from <instance-url>/oauth_token.do and sends it as a bearer token. The plugin keeps the token and renews it one minute before it expires. A token that lives less than two minutes is renewed after half of its lifetime. When ServiceNow rejects a token, the plugin requests a new one and sends the call again. A token request that fails with a temporary error, such as HTTP 503, is tried again. The password grant renews with the refresh token. When the refresh is rejected, the plugin logs in again. The client credentials grant has no refresh token, so it always logs in again.

The authentication type, the password and the client secret are stored together in the OpenNMS secure credentials vault. A save stores only the secrets of the selected type. After a change of the type, enter the password or the client secret again.

To set up the OAuth API endpoint in ServiceNow, see Step 3: Create an OAuth API Endpoint.