Disable event collection
- UpdatedJul 31, 2025
- 1 minute read
- Zurich
- IT Operations Management
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
Note: To restart event collection after it has been disabled, you
will need to restore the connector's original script.
Procedure
Example: 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, {