A pull connector has a MID Server query a monitoring tool on a schedule and bring its events into Event Management. Setup follows one sequence: pick a connector definition, enter a host address and credential, set the collection schedule, test through a MID Server, then activate. SCOM, PRTG, Zabbix and Nagios add parameters of their own.
Prerequisites for a pull connector instance
If the wider picture of how Event Management handles incoming events is new to you, the Event Management overview covers it. Before you start, you need three things. The account needs the evt_mgmt_admin role. Create a credentials record for the tool first, named so you can recognise it later. Confirm a connector definition exists for your tool; the base system ships definitions for SCOM, PRTG, Zabbix, NagiosXI and others. If you also want metrics, activate the Metric Intelligence plugin, because metric connectors appear only when it is active. For how access should be designed around roles like this, see the security and access design guide.
Filling in the connector instance form
Go to All > Event Management > Integrations > Connector Instances and select New.
| Field | What to enter |
|---|---|
| Name | A unique label, such as the host name of the event source |
| Host IP | The address of the monitoring tool. The platform uses it to choose a MID Server |
| Credential | The credentials record holding valid logins for the source |
| Connector definition | The vendor and protocol that match the tool, for example SCOM or PRTG |
| Event collection schedule (seconds) | How often the platform checks for new events. The minimum is 120 seconds by default |
| MID Servers for Connectors | The MID Server that processes events. If left empty, a MID Server with a matching IP range is used |
| Active | Tick only after a successful connection test |
Save from the form header. The Connector Instance Values section then fills with the parameters for your definition, and that is where the tool-specific tuning happens. The Last event collection status field reads None before any valid connection, Success once a connection works, and Error when a connection was made but the source was not updated.
Testing the connection before you activate
Select Test connector. The test checks that the MID Server is running, that the host answers at the Host IP address, that the MID Server and host share a domain, and that events can be retrieved through the source’s API. If it fails, the reason appears in the MID Server log under a type such as Events, Metrics or Bi-Directional. For more on diagnosing Event Management problems, see the troubleshooting guide. After a successful test, tick Active, select Update, and create an event by hand to confirm Event Management processes it. For a wider set of acceptance steps, see the testing and acceptance checklist.
Setting up SCOM event and metric collection
SCOM uses two separate definitions. SCOM (Events) collects alerts through PowerShell and the native .NET SCOM client executables, needs DLL files from the SCOM server on the MID Server, and can exchange alert changes in both directions. SCOM Metrics reads Metric Intelligence raw data directly from the OperationsManagerDW database over JDBC. It needs no DLL files, collects no events and does not support bi-directional exchange.
The MID Server runs on Windows, sits in the same domain as the SCOM server, and uses the same time zone. Its service account needs local admin rights for PowerShell and read access to the SCOM API. It needs .NET Framework 3.5 for SCOM 2007 and 2012, and .NET 4.6 or higher for SCOM 2016 and later.
To upload the DLLs, copy the Microsoft EnterpriseManagement libraries from the SDK Binaries folder for your SCOM version. Then open MID Server > JAR Files and create one record per file, named with the SCOM version plus a unique suffix such as 2012 1. Attach each file, submit, and restart the MID Server service so it copies them across.
Running SCOM 2007 alongside newer versions on one MID Server requires renaming. Append .2012 to the OperationsManager DLL for the newer versions and .2007 to the 2007 copy, leaving the Common DLL for 2007 unchanged. SCOM 2019 uses a different file set, so 2012, 2016 and 2019 cannot all be configured at once.
The scom_version parameter is mandatory. The scom_date_format parameter defaults to M/d/yyyy/ h:mm:ss a and must match the incoming format, where a stands for AM and p for PM, because a mismatched event does not process correctly. The scom_initial_sync_in_days parameter defaults to 7.
Bi-directional exchange works both ways. An alert resolved in SCOM closes in ServiceNow, and an alert closed manually in ServiceNow closes in SCOM. Linked incidents send their number to SCOM as a ticket ID, but the incident’s state does not travel back.
For the metrics definition, enter the metrics database host and choose a named instance or a port, which defaults to 1433. The metrics collection schedule defaults to 10 seconds.
Configuring PRTG alert collection
Select PRTG as the connector definition; the supported version is 21.3.71. Enter the PRTG IP address as the Host IP and select a credential. Once saved, the PRTG parameters appear in the instance values. The port defaults to 80, the protocol to http, and days_from to 7 days of events on the first cycle. The prtg_api_fetched_events_num parameter caps events per query, with a default of 50,000.
When add_columns is false, PRTG returns its default column set, which includes parent, name, type, status and message. Listed column names are added to the Additional information field of the event.
The date_format parameter defaults to M/d/yyyy/ h:mm:ss a, and time_zone defaults to GMT. Set the time zone to match PRTG using an offset such as GMT-4, because abbreviations such as EDT are not supported. If the test reports an invalid API key, enter the API key of the specific PRTG user who can read events.
Setting up Zabbix and Nagios metric connectors
Both connectors read Metric Intelligence raw data. The MID Server that retrieves metrics needs the Metric Intelligence extension in Started mode. Create basic authentication credentials holding the Nagios SQL database user name and password, or the Zabbix server user name and password.
Neither platform is discovered automatically, so create the configuration items by hand using the host name from the monitoring platform, then create an event rule that binds metrics to them. Nagios has two default bindings: HTTP endpoints for checks with the command_name service_http, and MySQL instances for the command_name mysql. For other checks on HTTP endpoints or MySQL, you can edit the existing event rule to add the command name. For other entity types, configure an event rule that fits the CI binding you need. For the wider concept of event rules, see the guide to ServiceNow event rules.
Zabbix tags on items flow into the metric-to-configuration-item records and can serve as filter conditions in the event rule. Only unsigned float and unsigned integer metric types are supported.
Guided setup in Service Operations Workspace
In the Brazil release, vCenter, NagiosXI, SolarWinds, SCOM and Zabbix can be configured through ServiceNow Otto, which requires the ServiceNow Otto for ITOM plugin. Go to Workspaces > Service Operations Workspace, open the AIOps configuration center, and choose Setup > Integrations > Manage Installed integrations. On Browse Integrations, set the drop-down to Pull and select a tile. Enter the connector name, host IP or host name, and credential, then select Test and Save. When the test succeeds, a pop-up offers Activate integration, which you select to activate the connector.
Choosing a default MID Server for connectors
The mid.server.connector_default system property sets the MID Server used when an instance does not name one. Enter the name of an existing MID Server, such as SNC MID Server. That default must have connectivity to all external event sources. It is not reset automatically in all scenarios, so the value can keep naming a MID Server that has been renamed or retired.
Other monitoring tools that follow the same pattern
The same form and test sequence serve the other base-system tools. If you have not chosen a connector yet, the guide to choosing a connector sets out the trade-offs first.
| Tool | Supported version | What it sends to Event Management |
|---|---|---|
| Opsview Monitor | 5.4.0 | Alerts, through the Opsview_V2 connector |
| OP5 Monitor | 7.3.15 | Alerts, through the OP5 or OP5_v2 connector |
| Icinga 2 | 2.4.1 | Events from monitored network resources |
| SolarWinds NPM and SAM | NPM 12.0 and SAM 6.2.4 | Events from the SolarWinds monitor |
| VMware vCenter | 6.5 | Events from the vSphere environment |
| HP OMi | 10.01, 10.10, 10.11, 10.12, 10.60, 10.61 | Alerts from the OMi server |
Building a custom pull connector when no definition fits
A custom pull connector needs a MID Server script, a connector definition that names it, and a connector instance. The script connects to the tool, retrieves its events and sends them to the Event table (em_event) through a web service API. Groovy is deprecated, so use JavaScript: set the script type to Javascript and edit the testConnection, execute and retrieveKpi functions in the template. Watch incoming events by filtering the ECC queue on ConnectorProbe. If the tool pushes events rather than waiting to be polled, the integration patterns guide compares the two designs. Teams that want this work delivered can look at the Event Management implementation service.
Frequently asked questions
Which role do I need to create a pull connector instance?
You need the evt_mgmt_admin role.
Should I tick Active before I test the connector?
No. Test the connection first, tick Active only once the test succeeds, then select Update.
Why does my PRTG test fail with an invalid API key message?
The API key belongs to a specific PRTG user, who must be able to read events. Enter that user’s API key on the instance and test again.
Can one MID Server handle SCOM 2007 and SCOM 2016 together?
Yes, after renaming the DLL files as described above, so the 2007 copy and the newer copies do not collide. SCOM 2019 uses a different set of files, so 2012, 2016 and 2019 cannot all be configured together.