---
sourceDocument: Xanadu IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/xanadu/it-operations-management

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# イベント収集の無効化

# イベント収集の無効化 {#ariaid-title1}

* リリースバージョン: Xanadu
* 
* 更新日 2024年08月01日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：2分

パフォーマンス上の理由から、メトリクスデータが収集されるデータソースからのイベントの収集を無効にする必要がある場合があります。Nagios XI サーバー、SolarWinds モニタリングシステム、Zabbix サーバーなどのデータソースのイベント収集を無効にすることができます。

## 始める前に

必要なロール：evt_mgmt_admin  
注:  
無効になったイベント収集を再開するには、コネクターの元のスクリプトを復元する必要があります。

## 手順

1. 移動先 すべてイベント管理統合コネクタインスタンス.
2. イベント収集を無効にするデータソースのコネクターインスタンスを選択します。  
   たとえば、Nagios、SolarWinds、または Zabbix のコネクターインスタンスを選択します。
3. \[イベント収集スケジュール (秒)\] を 20,000,000 などの大きな値に設定します。  
   このような設定では、MID サーバーとの不要なやり取りが回避され、パフォーマンスが最適化されます。
4. \[更新\] をクリックします。
5. 移動先 MID サーバースクリプトインクルード また、executeメソッドを上書きして、コネクタのスクリプト (NagiosMetrics_JS、SolarWindsJS、ZabbixJS など) を拡張します。  
   次のようなコードスニペットを追加し、\[更新\] をクリックします。

## 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, {


