イベント収集の無効化
パフォーマンス上の理由から、メトリクスデータが収集されるデータソースからのイベントの収集を無効にする必要がある場合があります。Nagios XI サーバー、SolarWinds モニタリングシステム、Zabbix サーバーなどのデータソースのイベント収集を無効にすることができます。
始める前に
注:
無効になったイベント収集を再開するには、コネクターの元のスクリプトを復元する必要があります。
手順
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;
});SolarWinds コネクターを使用する場合: var SolarWindsJSCustom = Class.create();
// Extending solarwinds default script
SolarWindsJSCustom.prototype = Object.extendsObject(SolarWindsJS, {Zabbix コネクターを使用する場合:var ZabbixJSCustom = Class.create();
// Extending zabbix default script
ZabbixJSCustom.prototype = Object.extendsObject(ZabbixJS, {