差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:monitoring:08_snmp_traps_monitoring [2024/03/01 08:20] – [トラップログファイルの管理] junichi | ja:documentation:pandorafms:monitoring:08_snmp_traps_monitoring [2024/05/17 23:11] (現在) – [複雑な SNMP トラップへのアラート関連付け] junichi | ||
---|---|---|---|
行 5: | 行 5: | ||
===== 概要 ===== | ===== 概要 ===== | ||
+ | |||
スイッチ、ルータ、サーバ、プリンタ、AP など、SNMP をサポートするネットワークデバイスは、インターフェイスの障害、CPU またはネットワークの負荷が高すぎたり、UPS の状態が変化したり、ディスクの障害が発生したときなどに、アラーム(SNMP トラップ)を送信することができます。各デバイスには、可能なイベントの独自のコレクションがあり、これは MIB と呼ばれます。この場合、デバイスのポーリングに使用する MIB とは異なります。 | スイッチ、ルータ、サーバ、プリンタ、AP など、SNMP をサポートするネットワークデバイスは、インターフェイスの障害、CPU またはネットワークの負荷が高すぎたり、UPS の状態が変化したり、ディスクの障害が発生したときなどに、アラーム(SNMP トラップ)を送信することができます。各デバイスには、可能なイベントの独自のコレクションがあり、これは MIB と呼ばれます。この場合、デバイスのポーリングに使用する MIB とは異なります。 | ||
行 12: | 行 13: | ||
トラップは、デバイスにて何かが発生した場合に非同期で送信されます。Pandora FMS には、モニタリング対象から送られてくるトラップを表示するトラップ受信コンソールがあり、また、トラップに対してアラートを設定することができます。SNMP トラップは、Pandora FMS の起動時に起動される、OS の SNMP サーバデーモンで受け取ります。このサーバは通常ログファイルを以下に保存します。 | トラップは、デバイスにて何かが発生した場合に非同期で送信されます。Pandora FMS には、モニタリング対象から送られてくるトラップを表示するトラップ受信コンソールがあり、また、トラップに対してアラートを設定することができます。SNMP トラップは、Pandora FMS の起動時に起動される、OS の SNMP サーバデーモンで受け取ります。このサーバは通常ログファイルを以下に保存します。 | ||
- | / | + | < |
- | トラップは、常に生データで受信されます。つまり、数値 OID で受信します。ただし、OS に MIB ファイルがインストールされている場合は、文字に変換することができます。エンタープライズ版の Pandora FMS の SNMP コンソールでは、トラップをより認識しやすいように、OID を数値や文字で表したり、何らかの説明をつけたりする (" | + | /var/log/pandora/ |
- | 最初に、SNMP コンソールを有効化するためには | + | </file> |
- | snmpconsole 1 | + | The Pandora FMS SNMP console allows you to create rules to rename numerical OIDs to alphanumeric OIDs or simple descriptive text strings, so that it is more intuitive to work with SNMP traps. Pandora FMS also allows you to load trap MIBs from any manufacturer to automatically define those rules. |
- | トラップを文字列変換したい場合(変数のバインディングまたは | + | Pandora FMS SNMP コンソールを使用すると、数値 OID の名前を英数字 OID または単純な説明テキスト文字列に変更するルールを作成できるため、SNMP トラップをより直感的に操作できるようになります。 Pandora FMS では、任意のメーカーのトラップ MIB をロードして、それらのルールを自動的に定義することもできます。 |
+ | |||
+ | In order to work with SNMP traps, first modify the following parameter in ''/ | ||
+ | |||
+ | 最初に、SNMP コンソールを有効化するためには ''/ | ||
< | < | ||
+ | snmpconsole 1 | ||
+ | |||
+ | </ | ||
+ | |||
+ | So that the traps SNMP appear translated (whether the variable links or the Enterprise SNMP chain) the following parameters must be activated: | ||
+ | |||
+ | トラップを文字列変換したい場合(変数のバインディングまたは Enterprise 文字列のいずれか)は、次のオプションも有効化します。 | ||
+ | |||
+ | < | ||
+ | |||
| | ||
| | ||
+ | |||
</ | </ | ||
- | また、/ | + | The ''/ |
- | 例: | + | |
+ | また、'' | ||
< | < | ||
| | ||
| | ||
+ | |||
</ | </ | ||
- | この設定では、コミュニティ | + | With this configuration, |
+ | |||
+ | この設定では、コミュニティ | ||
==== SNMPv3 ==== | ==== SNMPv3 ==== | ||
行 342: | 行 362: | ||
アップロードが完了すると、システムはそれをトラップライブラリに取り込みます。 | アップロードが完了すると、システムはそれをトラップライブラリに取り込みます。 | ||
- | ===== 複雑な | + | ===== SNMP トラップの |
- | This is an Enterprise feature and is configured in **Management** → **Setup** → **Setup** → **Enterprise** → **Forward SNMP traps to an agent (if it exists)**. | + | Menu <wrap :en>**Management → Setup → Setup → Enterprise → Forward SNMP traps to an agent (if it exists)**</ |
- | これは Enterprise 版の機能であり、**管理(Management)** → **セットアップ(Setup)** → **セットアップ(Setup)** → **Enterprise** → **SNMP トラップをエージェント (存在する場合) に転送(Forward SNMP traps to an agent (if it exists)** | + | **管理(Management)** → **セットアップ(Setup)** → **セットアップ(Setup)** → **Enterprise** → **SNMP トラップをエージェント (存在する場合) に転送(Forward SNMP traps to an agent (if it exists)**。 |
<WRAP center round info 60%> | <WRAP center round info 60%> | ||
行 525: | 行 545: | ||
===== SNMP トラップバッファリング ===== | ===== SNMP トラップバッファリング ===== | ||
- | SNMPトラップが信頼できない接続を介して外部マネージャに送信されると、情報が失われます。Pandora FMS では、トラップをローカルの //snmptrapd// からの転送ではなく、信頼できる方法で Pandora FMS サーバに転送することができます。 | + | <WRAP center round important 60%> |
+ | |||
+ | It is more efficient for the SNMP console to directly process traps from the **snmptrapd** log file. This configuration is recommended only if reliability or direct connectivity is a concern. | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | |||
+ | SNMP コンソールが **snmptrapd** ログファイルからトラップを直接処理する方が効率的です。 この設定は、信頼性または直接接続に何らかの懸念がある場合にのみ推奨されます。 | ||
+ | |||
+ | </ | ||
+ | |||
+ | If SNMP traps are sent to an external manager over an unreliable connection, some information will be lost. Pandora FMS allows you to instead forward traps from a local **snmptrapd** to your Pandora FMS server in a reliable way. | ||
+ | |||
+ | SNMP トラップが信頼性の低い接続を介して外部マネージャに送信されると、一部の情報が失われます。 Pandora FMS では、ローカル | ||
+ | |||
+ | **Prerequisites**: | ||
+ | |||
+ | **前提条件**: | ||
+ | |||
+ | * A local **snmptrapd** that is receiving traps. | ||
+ | * A local Pandora FMS agent. | ||
+ | * An installation of Pandora FMS. | ||
+ | |||
+ | * ローカルの **snmptrapd** がトラップを受信すること。 | ||
+ | * ローカルの Pandora FMS エージェントがあること。 | ||
+ | * Pandora FMS がインストールされていること。 | ||
+ | |||
+ | |||
==== アーキテクチャ ==== | ==== アーキテクチャ ==== | ||
行 537: | 行 586: | ||
* SNMP コンソールは、プレーンテキストファイルからトラップを処理します。 | * SNMP コンソールは、プレーンテキストファイルからトラップを処理します。 | ||
- | <WRAP center round important 60%> | ||
- | SNMPコンソールが // | ||
- | </ | ||
- | ==== 前提条件 ==== | ||
- | * ローカルの // | ||
- | * ローカルの Pandora FMS エージェントがあること。 | ||
- | * Pandora FMS がインストールされていること。 | ||
==== 設定 ==== | ==== 設定 ==== | ||
行 585: | 行 627: | ||
<WRAP center round important 60%> | <WRAP center round important 60%> | ||
- | //snmp_extlog// は、Pandora FMS サーバで書き込み可能な任意のファイルです。(同様に /// | + | |
+ | **snmp_extlog** には、Pandora FMS サーバが書き込むことができる任意のファイルを指定できますが、**snmp_logfile** | ||
</ | </ | ||
===== トラップジェネレータ ===== | ===== トラップジェネレータ ===== | ||
- | このツールは、SNMP コンソールから参照できるトラップを生成します。 | + | This tool allows you to generate custom |
- | + | ||
- | {{ : | + | |
- | + | ||
- | + | ||
- | トラップジェネレータを正しく設定するには、次のフィールドを入力する必要があります。 | + | |
- | + | ||
- | **ホストアドレス(Host Address)** | + | |
- | トラップ送信先 IP アドレス。 | + | このツールを使用すると、後で |
- | + | ||
- | **コミュニティ(Community)** | + | |
- | + | ||
- | トラップジェネレータでアクセスするときの | + | |
- | + | ||
- | **エンタープライズ文字列(Enterprise String)** | + | |
- | + | ||
- | トラップの OID です。例: 1.3.6.1.2.1.2.2.1.8 | + | |
- | + | ||
- | **値(Value)** | + | |
- | + | ||
- | トラップで送信するデータであり、値です。 | + | |
- | + | ||
- | **SNMP エージェント(SNMP Agent)** | + | |
- | トラップをシミュレートするエージェントです。 | + | In **SNMP Type** choose an SNMP type from the following options: |
- | **SNMP タイプ (SNMP Type)** | + | **SNMP タイプ(SNMP Type)** |
- | 以下から | + | * **Cold Start**: Indicates that the agent has been started or restarted. |
+ | * **Warm Start**: Indicates that the agent configuration has been modified. | ||
+ | * **Link down**: Indicates that the communication interface is out of service (inactive). | ||
+ | * **Link up**: Indicates that a communication interface has been activated. | ||
+ | * **Authentication failure**: Indicates that the agent received a request from an unauthorized (community controlled) NMS. | ||
+ | * **EGP neighbor loss**: Indicates that on systems where routers use the EGP protocol, a nearby host is out of service. | ||
+ | * **Enterprise**: | ||
- | | + | * **Cold Start**: エージェントが開始または再開されたことを意味します。 |
- | * **Warm Start**: エージェント設定が変更されたことを意味します。 | + | |
- | * **Link down**: 通信インタフェースが利用できない状態になった(無効化)ことを意味します。 | + | |
- | * **Linu up**: 通信インタフェースが利用できる状態になったことを意味します。 | + | |
- | * **Authentication failure**: エージェントが(コミュニティによって)認証できない NMS を受信したことを意味します。 | + | |
- | * **EGP neighbor loss**: ルータが EGP プロトコルを使用しているシステムで、近くのホストが利用できない状態になったことを示します。 | + | |
- | * **Enterprise**: | + | |
[[ja: | [[ja: |