ServiceNow
Collect topology data from ServiceNow
Last updated
Collect topology data from ServiceNow
Last updated
This page describes StackState version 4.1.
The StackState 4.1 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.1 version range to upgrade to a more recent release.
The ServiceNow StackPack allows near real time synchronization between ServiceNow and StackState. When the ServiceNow Agent integration is enabled, configuration items (CIs) and their dependencies from the ServiceNow CMDB will be added to the StackState topology as components and relations.
Agent V2 connects to the configured ServiceNow API.
CIs and dependencies for the configured CI types are retrieved from the ServiceNow CMDB (default all).
Agent V2 pushes retrieved data to StackState.
StackState translates incoming CIs and dependencies into topology components and relations.
To set up the StackState ServiceNow integration, you need to have:
StackState Agent V2 installed on a machine that can connect to both ServiceNow (via HTTPS) and StackState.
A running ServiceNow instance.
A ServiceNow user with access to the required ServiceNow API endopints.
Install the ServiceNow StackPack from the StackState UI StackPacks > Integrations screen. You will need to provide the following parameters:
ServiceNow Instance ID: the ServiceNow instance ID from which topology will be collected. For example, if the ServiceNow Instance URL is https://dev102222.service-now.com
, then the ServiceNow Instance ID will be dev102222
.
To enable the ServiceNow check and begin collecting data from ServiceNow, add the following configuration to StackState Agent V2:
Edit the Agent integration configuration file /etc/sts-agent/conf.d/servicenow.d/conf.yaml
to include details of your ServiceNow instance:
url - the REST API url, uses HTTPS protocol for communication.
user - a ServiceNow user with access to the required ServiceNow API endopints
password - use secrets management to store passwords outside of the configuration file.
Optional: Specify the CI types that should be retrieved (default all).
Restart the StackState Agent(s) to apply the configuration changes.
Once the Agent has restarted, wait for the Agent to collect data from ServiceNow and send it to StackState.
By default, all available ServiceNow CI types will be sent to StackState. If you prefer to work with a specific set of resource types, you can configure the Agent integration to filter the CI types it retrieves:
Edit the Agent integration configuration file /etc/sts-agent/conf.d/servicenow.d/conf.yaml
.
A subset of the available CI types is listed and commented out.
Uncomment the line include_resource_types
and the CI types you would like to send to StackState. You can add any valid ServiceNow CI type to the include_resource_types list, however, components from resource types that you have added will appear on the Uncategorized layer of a StackState view.
Restart the StackState Agent(s) to apply the configuration changes.
To check the status of the ServiceNow integration, run the status subcommand and look for ServiceNow under Running Checks
:
The ServiceNow check does not retrieve any events data.
The ServiceNow check does not retrieve any metrics data.
The ServiceNow check retrieves the following topology data from the ServiceNow CMDB:
The ServiceNow check does not retrieve any traces data.
The ServiceNow user configured in StackState Agent V2 must have access to read the ServiceNow TABLE
API. The specific table names and endpoints used in the StackState integration are described below. All named REST API endpoints use the HTTPS protocol for communication.
Refer to the ServiceNow product documentation for details on how to configure a ServiceNow user and assign roles.
When the ServiceNow integration is enabled, the following ServiceNow specific views are available in StackState:
ServiceNow Applications
ServiceNow Business Processes
ServiceNow Discovered
ServiceNow Infrastructure & Network
ServiceNow Machines & Load balancers
The code for the StackState ServiceNow check is open source and available on GitHub at: https://github.com/StackVista/stackstate-agent-integrations/tree/master/servicenow
Troubleshooting steps for any known issues can be found in the StackState support Knowledge base.
To uninstall the ServiceNow StackPack and disable the ServiceNow check:
Go to the StackState UI StackPacks > Integrations > ServiceNow screen and click UNINSTALL.
All ServiceNow specific configuration will be removed from StackState.
Remove or rename the Agent integration configuration file, for example:
Restart the StackState Agent(s) to apply the configuration changes.
Data
Description
Components
CI types retrieved from the ServiceNow CMDB, see filter retrieved CI types.
Relations
Table Name
REST API Endpoint
cmdb_ci
/api/now/table/cmdb_ci
cmdb_rel_type
/api/now/table/cmdb_rel_type
cmdb_rel_ci
/api/now/table/cmdb_rel_ci