Disable event collection

task australia Updated Sep 10, 2026 1 min read disable-event-collection.md
Raw file servicenow.com

For performance reasons, you might want to disable the collection of events from a data source from which metric data is also collected. You can disable event collection for data sources such as Nagios XI server, SolarWinds monitoring system, and Zabbix server.

Before you begin

Role required: evt_mgmt_admin

Note: To restart event collection after it has been disabled, you will need to restore the connector's original script.

Procedure

  1. Navigate to All > Event Management > Integrations > Connector Instances.

  2. Select a connector instance for the data source for which to disable event collection.

    For example, select a connector instance for Nagios, SolarWinds, or Zabbix.

  3. Set Event collection schedule (seconds) to a large value such as 20,000,000.

    Such setting avoids unnecessary communication with the MID Server, optimizing performance.

  4. Click Update.

  5. Navigate to MID Server > Script Includes and extend the connector's script (such as NagiosMetrics_JS, SolarWindsJS, or ZabbixJS) by overriding the execute method.

    Add a code snippet such as the following, and then click Update:

Snippet for Nagios

JavaScript
var NagiosJSCustom = Class.create(); // Extending Nagios default scriptNagiosJSCustom.prototype = Object.extendsObject(NagiosJS, { // Override execute method                    execute: function() {        var retVal = {};                                                    retVal['status'] = SUCCESS.toString();       retVal['error_message'] = "Disabled by custom Class, 'Last event collection status' will be 'error' and this is normal. To achieve success status, enable event pull in custom class(NagiosJSCustom)";                                                       return retVal;    });

For the SolarWinds connector use:

JavaScript
var SolarWindsJSCustom = Class.create(); // Extending solarwinds default scriptSolarWindsJSCustom.prototype = Object.extendsObject(SolarWindsJS, {

For the Zabbix connector use:

JavaScript
var ZabbixJSCustom = Class.create(); // Extending zabbix default scriptZabbixJSCustom.prototype = Object.extendsObject(ZabbixJS, {

Parent Topic:Optimizing Metric Intelligence

Search documentation
Search document titles and file paths on the australia branch