Integrating with ServiceNow
ServiceNow is a platform-as-a-service (PaaS) provider of Service Management (SM) software for the entire enterprise. The ServiceNow platform also supports the incident management process with the ability to log incidents, classify according to impact and urgency, assign to appropriate groups, escalate, and manage through to resolution and reporting.
To integrate the eG manager with the incident management process of ServiceNow, do the following:
- Login to the eG administrative interface.
-
From the Alerts menu in the Admin tile, select the ITSM/Collaboration Integration option.
-
The third-party ITSM/Collaboration tools that eG Enterprise can integrate with will be listed.
-
Now, click on the ServiceNowoption in the right panel (see Figure 1). A ServiceNow section will now appear in the right panel (see Figure 2).
- To enable integration with ServiceNow, first slide the ServiceNow slider in Figure 2 to the right.
-
Then, specify the following in Figure 2:
- URL: The URL using which the eG manager should connect to the ServiceNow installation in your environment.
- Port: The Port at which ServiceNow listens for problem information sent by the eG manager.
-
Authorization Type: The eG manager sends alarm information to ServiceNow as a web service request to the configured URL. Upon receipt of the request, ServiceNow will attempt to validate the source of the request using one of the following authentication methods:
- Basic authentication
-
O Auth 2.0 authentication
If ServiceNow enforces Basic Authentication, then select the Basic option from the Authorization Type drop-down. Where Basic Authentication is enforced, ServiceNow requires that web service requests be accompanied by the username and password of a user who has access to the ServiceNow instance. Accordingly, if Basic is set as the Authorization Type, you need to provide the credentials of a user with the right to access ServiceNow in the User and Password text boxes.
On the other hand, if ServiceNow enforces the O Auth 2.0 authentication method, then select the OAuth 2.0 option from the Authorization Type drop-down. O Auth 2.0 lets users access instance resources through external clients by obtaining a token rather than by entering credentials with each resource request. This means that where O Auth 2.0 is enforced, the eG manager needs to obtain an access token, so it can create/modify trouble tickets in ServiceNow. For this, the eG manager should first connect to the ServiceNow instance as a user who is authorized to request for an access token, and then submit web service requests as a valid 'Client'. This is why, if OAuth 2.0 is set as the Authorization Type, you will have to specify the following:
- User and Password: The credentials of a user who is authorized to request for an access token
- Client ID and Client Secret Key: The Client ID is an auto-generated unique ID of the client application - i.e., in our case, the eG manager application - requesting the access token. The Client Secret Key is a shared secret string that the ServiceNow instance and the client applications - i.e., the eG manager - use to authorize communications with one another.
- Does ServiceNow use proxy for connections: If the eG manager needs to communicate with the ServiceNow instance via a Proxy server, then set this flag to Yes.
- Proxy IP/Hostname and Proxy Port: If the Does ServiceNow use proxy flag is set to Yes, then specify the IP/host name of the Proxy server and the port number at which the Proxy server listens in the respective text boxes.
- Does Proxy require authentication: This flag is applicable only if the Does ServiceNow use proxy flag is set to Yes. If so, then use this flag to indicate whether/not the Proxy server requires authentication. Set this flag to Yes, only if the Proxy server requires authentication.
- Proxy UserName and Proxy Password: If the Does Proxy require authentication flag is set to Yes, then provide the credentials of a valid Proxy user here.
- Caller ID: The ID of the user to whom the problems sent by the eG manager are to be assigned.
- Assignment group: The assignment group to which the eG alarms are to be assigned.
- Assigned to: The name of the user to whom the problems sent by the eG manager are to be assigned.
- Category: Indicate how to categorize the eG alarms in the ServiceNow system – whether as a request, enhancement, or an incident.
- Critical due period: The time (in millisecs) by which tickets of a Critical priority will be resolved.
- Major due period: The time (in millisecs) by which tickets of a Major priority will be resolved.
-
Minor due period: The time (in millisecs) by which tickets of a Minor priority will be resolved.
Note:
Typically, ServiceNow assigns priorities to alerts based on pre-configured Priority Rules. These rules ascertain how Impact and Urgency values combine to determine the priority of each incident. Impact is a measure of the effect of an incident, problem, or change on business processes. Urgency is a measure of how long the resolution can be delayed until an incident, problem, or change has a significant business impact.
To make sure that these Priority Rules apply to eG alerts that are routed to ServiceNow, these rules are internally mapped to each of the alarm priorities that eG Enterprise supports - i.e., Critical, Major, and Minor.
The default Priority Rules defined in ServiceNow and their impact on eG priorities can be inferred from the table below:
Impact
Urgency
Service Now Priority
eG Prirority
1 - High
2 - Medium
2 - High
Critical
1 - High
3 - Low
3 - Moderate
Major
2 - Medium
3 - Low
4 - Low
Minor
Note that, if for any reason, the default rules are overridden in ServiceNow, the eG Enterprise system should be manually updated with the changes, so that they are appropriately applied to eG alerts. To make changes to priority rules in the eG manager, you first need to determine whether the eG-ServiceNow integration was configured at the global, organizational-level, or for a specific user registered with the eG Enterprise system.
If the eG-Service Now integration was configured at the global, enterprise-level, then follow the steps below to update the priority rule mappings in eG Enterprise:
-
Edit the eg_services.ini file in the <EG_MANAGER_INSTALL_DIR>\manager\config\ directory (on Windows; on Unix, this will be the /opt/egurkha/manager/config/ directory).
-
In the [TT_INTEGRATION_SERVICE NOW] section of the file, you will find the following entries by default:
;default eG priority mapping values for SNOW imapct (critical=1,Major=1,Minor=2) and urgency (critical=1,Major=2,Minor=3)
impactValueForCritical=1
impactValueForMajor=1
impactValueForMinor=2
urgencyValueForCritical=2
urgencyValueForMajor=3
urgencyValueForMinor=3
-
These entries map eG priorities to each of the Impact and Urgency values that are maintained in ServiceNow. Now, assume that ServiceNow changes the Impact and Urgency values that map to Minor priority alerts to 3 and 4, respectively. To update the eG mapping accordingly, you need to edit the above code block, as depicted below:
;default eG priority mapping values for SNOW imapct (critical=1,Major=1,Minor=2) and urgency (critical=1,Major=2,Minor=3)
impactValueForCritical=1
impactValueForMajor=1
impactValueForMinor=3
urgencyValueForCritical=2
urgencyValueForMajor=3
urgencyValueForMinor=4
-
Finally, save the file and restart the eG manager for the changes to take effect.
On the other hand, if the eG-Service Now integration was configured for a specific user profile, then follow the steps below to update the priority rule mappings in eG Enterprise:
- Edit the eg_ttconfig.ini file in the <EG_MANAGER_INSTALL_DIR>\manager\config directory (on Windows; on Unix, this will be the /opt/egurkha/manager/config/ directory). In this file, locate the [<Name_of_User>_TT_INTEGRATION_SERVICE NOW] section in the file. For instance, if the integration has been configured for a user named 'SNOrgAdmin', then, locate the section named [SNOrgAdmin_TT_INTEGRATION_SERVICE NOW].
-
You will find the following entries in this section by default:
impactValueForCritical=1
impactValueForMajor=1
impactValueForMinor=2
urgencyValueForCritical=2
urgencyValueForMajor=3
urgencyValueForMinor=3
-
These entries map eG priorities to each of the Impact and Urgency values that are maintained in ServiceNow. Now, assume that ServiceNow changes the Impact and Urgency values that map to Minor priority alerts to 3 and 4, respectively. To update the eG mapping accordingly, you need to edit the above code block, as depicted below:
impactValueForCritical=1
impactValueForMajor=1
impactValueForMinor=3
urgencyValueForCritical=2
urgencyValueForMajor=3
urgencyValueForMinor=4
-
Finally, save the file and restart the eG manager for the changes to take effect.
-
-
Incident title: Next, using the Incident title text box, specify the format in which the title of the trouble ticket is to be displayed in the ServiceNow console. The default format is as follows:
$prior Issue Detected on $ctype: $cname - AlertID $alertID - $pdesc on $info
The ‘dollared’ ($) text is a key, the value of which varies at run time, depending upon the information contained in the eG alarms. For example, in the default format above, the key $prior represents the alarm priority, and changes according to the priority of the actual alarm that is sent by the eG manager to ServiceNow. While you can change the plain text strings in the default format, such as 'Issue Detected on', you are advised against changing any of the keys.
The other keys that are part of the default format are discussed in the table below:
$cname
Will display the name of the problem component
$ctype
Will display the component type to which the problem component belongs
$alertID
Will display the unique ID that the eG manager automatically generates and assigns to the alert
$pdesc
Will display a brief problem description
$info
Will display the problem descriptor (if any)
If required, you can override the default Incident Title, so you can remove the information that you deem unncessary. For that, click on the
icon alongside Incident Title. Figure 3 will then appear.
Figure 3 : Removing unnecessary information from Incident Title
From Figure 3, deselect the information you want excluded from the Incident Title and click on the SELECT button. The Incident Title will then change as depicted by Figure 4.
-
Description Format and Problem description: Use these parameters to indicate the format in which problem information should be communicated by the eG manager to ServiceNow. By default, the Description Format flag is set to Concise. In this case, the Problem description will be of the format indicated by Figure 5 below:
Figure 5 : The Concise Problem Description
The Concise Problem description, as you can see, is characterized by a list of label : variable pairs. In each pair, the 'label' is a static value that qualifies/describes the value of the 'variable' that follows. The 'variable' on the other hand will be substituted at run time by relevant alert information. For instance, in the pair Alert Description : $pdesc, 'Alert Description' is the static label that will be sent as is to ServiceNow. This label implies that the value that follows it will be a brief problem description. The variable $pdesc will be replaced at run time by the actual problem description contained within the corresponding alarm. You can change 'labels' if you so need, but you are advised against changing the variable names.
If you set the Description Format to Descriptive instead, then, by default, the Problem description you see in Figure 6 will be displayed.
Figure 6 : The Descriptive Problem description
Unlike the Concise format, where key elements of the alert information are listed one after another, the Descriptive format reads like a 'meaningful problem statement. It is structured like a sentence, with variables embedded within. These variables will assume actual values at run time. Here again, you are free to play around with the sentence structure, but are advised against changing the variable names.
Regardless of the format you choose, the following variables apply by default:
$cname
The name of the problem component
$ctype
The component type to which the problem component belongs
$pdesc
A brief description of the problem
$layer
The problematic layer
$prior
The problem priority/severity
$starttime
The date/time at which the problem was first detected
If required, you can override the default Problem description, so it includes additional problem details. For that, click on the
icon alongside Problem description. This will open Figure 7.
Figure 7 : Selecting the details to be included in the Problem description
Say, you want the problem description to include the name of the business service that was impacted by the problem condition. In this case, select Service Affected from Figure 7 and click the SELECT button. The Problem description will then change as depicted by Figure 8 below:
Figure 8 : Problem description changed to include Service Affected
-
Custom Payload: Use custom payload to customize the alert information you send to ServiceNow, so that it includes additional static/dynamic information. To know how to configure the Custom Payload, refer to Configuring Custom Payload.
- Finally, click the Update button in Figure 2.