Disable event collection

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • 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.

    Avant de commencer

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

    Procédure

    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

    var NagiosJSCustom = Class.create();
     
    // Extending Nagios default script
    NagiosJSCustom.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:
    var SolarWindsJSCustom = Class.create();
     
    // Extending solarwinds default script
    SolarWindsJSCustom.prototype = Object.extendsObject(SolarWindsJS, {
    For the Zabbix connector use:
    var ZabbixJSCustom = Class.create();
     
    // Extending zabbix default script
    ZabbixJSCustom.prototype = Object.extendsObject(ZabbixJS, {