差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| ja:documentation:pandorafms:technical_annexes:15_raspberry_monitoring [2025/07/27 06:30] – [Pandora RC client Configuration] junichi | ja:documentation:pandorafms:technical_annexes:15_raspberry_monitoring [2026/05/08 22:43] (現在) – [(OBSOLETE)] junichi | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== Raspberry Pi 監視 ====== | + | ====== Raspberry Pi を用いた監視 ====== |
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | [[ja: | + | [[ja: |
| - | * Network connection and device configuration guide. | + | <wrap #ks1 /> |
| - | * Pandora FMS agent and satellite installation on a Raspberry device. | + | |
| - | * Automatic creation Pandora FMS user, securing the ssh protocol. | + | |
| - | * ネットワーク接続とデバイス設定ガイド。 | + | ===== サポートバージョン ===== |
| - | * Raspberry デバイスへの Pandora FMS エージェントとサテライトのインストール。 | + | |
| - | * SSH プロトコルによるセキュアな Pandora FMS ユーザの自動作成。 | + | |
| - | ===== ハードウエアコンポーネント ===== | + | Pandora FMS Satellite Server can be installed on devices with ARM architecture and an operating system equivalent to or higher than Debian 12. |
| - | ==== Raspberry ==== | + | Pandora FMS サテライトサーバは、ARM アーキテクチャを搭載し、Debian 12 と同等以上のオペレーティングシステムを搭載したデバイスにインストールできます。 |
| + | |||
| + | <wrap #ks2 /> | ||
| - | A Raspberry device is a reduced-plate computer, single-plate computer or low-cost single-plate computer (SBC). Its official operating system is an open source version adapted from Debian, called Raspbian. | ||
| - | Raspberryデバイスは、小型コンピュータ、シングルプレートコンピュータ、または低価格シングルプレートコンピュータ(SBC)です。公式オペレーティングシステムは、Debian をベースとしたオープンソース版である Raspbian です。 | ||
| - | ===== ソフトウエア ===== | ||
| - | ==== Raspberry 用 Pandora FMS イメージ ==== | ||
| - | The distributed image is based on the Raspbian operating system. It contains the agent, the satellite, the eHorus client, the packages to install a NetFlow probe and all their dependencies. | ||
| - | 配布されるイメージは Raspbian オペレーティングシステムをベースにしており、エージェント、サテライト、eHorus クライアント、NetFlow プローブをインストールするためのパッケージ、およびそれらの依存関係がすべて含まれています。 | ||
| ===== インストール ===== | ===== インストール ===== | ||
| + | |||
| + | Download the ARM installation package [[https:// | ||
| + | |||
| + | ARM インストールパッケージを [[https:// | ||
| + | |||
| + | Go to the directory where you uploaded the package: | ||
| + | |||
| + | パッケージをアップロードしたディレクトリに移動します。 | ||
| + | |||
| + | <code bash> | ||
| + | cd /tmp | ||
| + | </ | ||
| + | |||
| + | Uncompress the installation package: | ||
| + | |||
| + | インストールパッケージを解凍します。 | ||
| + | |||
| + | <code bash> | ||
| + | tar zxvf pandorafms_satellite_server-latest.arm.tar.gz | ||
| + | </ | ||
| + | |||
| + | Go to the directory generated by the decompression: | ||
| + | |||
| + | 解凍によって生成されたディレクトリに移動します。 | ||
| + | |||
| + | <code bash> | ||
| + | cd satellite_server | ||
| + | </ | ||
| + | |||
| + | Run the installation script: | ||
| + | |||
| + | インストールスクリプトを実行します。 | ||
| + | |||
| + | <code bash> | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | If you want to install it in a custom path other than the default one, you can indicate that path with this command instead of the previous one. For example, to install in ''/ | ||
| + | |||
| + | デフォルト以外のカスタムパスにインストールする場合は、前のコマンドの代わりにこのコマンドでそのパスを指定できます。たとえば、''/ | ||
| + | |||
| + | <code bash> | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | <WRAP center round info 90%> | ||
| + | |||
| + | Finally, the '' | ||
| + | |||
| + | </ | ||
| + | |||
| + | <WRAP center round info 90%> | ||
| + | |||
| + | 最後に、サテライトサーバが接続する PFMS サーバの IP アドレスを設定する '' | ||
| + | |||
| + | </ | ||
| + | |||
| + | <wrap #ks2_1 /> | ||
| + | |||
| + | ==== NetFlow® プローブ ==== | ||
| + | |||
| + | Its operation is based on the use of several components: | ||
| + | |||
| + | その動作は、いくつかの構成要素の使用に基づいています。 | ||
| + | |||
| + | * A **NetFlow** compatible device, usually network hardware like a switch or router, that generates information packets or a [[# | ||
| + | * A NetFlow collector, which receives the packets generated by the previous device, storing and processing them. It is usually a tool or server with these capabilities. | ||
| + | |||
| + | * NetFlow 互換デバイスは、通常はスイッチやルーターなどのネットワークハードウェアで、情報パケットまたは [[# | ||
| + | * NetFlow コレクターは、前のデバイスによって生成されたパケットを受信し、保存および処理します。通常は、これらの機能を備えたツールまたはサーバです。 | ||
| + | |||
| + | Pandora FMS uses an OpenSource tool called **nfcapd** to process all NetFlow traffic. This daemon is automatically started by the Pandora FMS Server. This system stores data in binary files in a specific location. **nfcapd** must be installed on the system before being able to work with NetFlow in Pandora FMS. The default **nfcapd** daemon listens on port '' | ||
| + | |||
| + | Pandora FMS は、すべての NetFlow トラフィックを処理するために **nfcapd** というオープンソースツールを使用します。このデーモンは、Pandora FMS サーバによって自動的に起動されます。このシステムは、データを特定の場所にあるバイナリファイルに保存します。Pandora FMS で NetFlow を使用するには、システムに **nfcapd** をインストールする必要があります。デフォルトの **nfcapd** デーモンはポート ' | ||
| + | |||
| + | <wrap #ks2_1_1 /> | ||
| + | |||
| + | === ソフトウエア NetFlow プローブ === | ||
| + | |||
| + | If you do **not** have a router with built-in NetFlow but traffic " | ||
| + | |||
| + | NetFlow 機能を内蔵したルータをお持ちでない場合でも、トラフィックが Linux® システムを通過する場合は、プローブとして機能し、NetFlow トラフィック情報をコレクターに送信するソフトウェアをインストールできます。Linux には、トラフィックをキャプチャして NetFlow サーバに転送する **fprobe** というプログラムがあります。これを使用すると、インターフェースを通過するすべてのネットワークトラフィックから NetFlow トラフィックを生成できます。 | ||
| + | |||
| + | First, **fprobe** must be installed: | ||
| + | |||
| + | まず、**fprobe** をインストールする必要があります。 | ||
| + | |||
| + | <code bash> | ||
| + | apt-get install fprobe | ||
| + | </ | ||
| + | |||
| + | At the time of installation, | ||
| + | |||
| + | インストール時に、監視対象のインターフェースと、収集した情報を送信する IP アドレスおよびポート番号を選択するよう求められます。以下のコマンドでいつでも再設定できます。 | ||
| + | |||
| + | <code bash> | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | //In the following model//, all traffic from the '' | ||
| + | |||
| + | // | ||
| + | |||
| + | <code bash> | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | Once traffic is generated, you can see statistics of this traffic in the NetFlow collector with the command: | ||
| + | |||
| + | トラフィックが生成されると、NetFlow コレクタで以下のコマンドを使用してそのトラフィックの統計情報を確認できます。 | ||
| + | |||
| + | <code bash> | ||
| + | nfdump -R / | ||
| + | </ | ||
| + | |||
| + | NetFlow must be enabled to be accessible from the Operation and Administration menus: [[: | ||
| + | |||
| + | NetFlow は、操作メニューと管理メニューからアクセスできるように有効にする必要があります: | ||
| + | |||
| + | Once NetFlow is configured, Pandora FMS Server must be restarted to start the **nfcapd** server. This must be correctly installed before attempting to start it. **Check the server logs if you have any doubts**. | ||
| + | |||
| + | NetFlow の設定が完了したら、**nfcapd** サーバを起動するために Pandora FMS サーバを再起動する必要があります。起動する前に、nfcapd が正しくインストールされていることを確認してください。**不明な点がある場合は、サーバログを確認してください。** | ||
| + | |||
| + | [[ja: | ||
| + | |||
| + | ===== (OBSOLETE) ===== | ||
| ==== SD カードフラッシュイメージ ==== | ==== SD カードフラッシュイメージ ==== | ||
| + | |||
| + | <wrap #ks3_1_1 /> | ||
| === Raspberry 用 Pandora FMS 公式イメージのダウンロード === | === Raspberry 用 Pandora FMS 公式イメージのダウンロード === | ||
| 行 259: | 行 379: | ||
| - | ==== NetFlow | + | ==== NetFlow |
| Its operation is based on the use of several components: | Its operation is based on the use of several components: | ||
| + | |||
| + | この動作は、いくつかのコンポーネントの使用に基づいています。 | ||
| * A device with **NetFlow **compatibility, | * A device with **NetFlow **compatibility, | ||
| * A NetFlow collector, which receives the packets generated by the previous device, storing and processing them. It is usually a tool or server with these features. | * A NetFlow collector, which receives the packets generated by the previous device, storing and processing them. It is usually a tool or server with these features. | ||
| + | |||
| + | * NetFlow 対応デバイス。通常は、情報パケットを生成するスイッチやルータ型のネットワークハードウェア、または NetFlow プローブです。 | ||
| + | * NetFlow コレクター。前段のデバイスによって生成されたパケットを受信し、保存および処理します。通常は、これらの機能を備えたツールまたはサーバです。 | ||
| Pandora FMS uses an OpenSource tool called **nfcapd** | Pandora FMS uses an OpenSource tool called **nfcapd** | ||
| - | === NetFlow | + | |
| + | Pandora FMS は、すべての NetFlow トラフィックを処理するために、**nfcapd** と呼ばれるオープンソースツールを使用しています。このデーモンは Pandora FMS サーバによって自動的に起動されます。このシステムは、データをバイナリファイルで特定の場所に保存します。Pandora FMS で NetFlow を使用する前に、システムに **nfcapd** をインストールしてください。デフォルトの **nfcapd** デーモンは、ポート 9995/UDP で待ち受けます。ファイアウォールでこのポートを開放する場合や、NetFlow プローブを設定する場合は、この点に注意してください。 | ||
| + | |||
| + | === ソフトウエアによる | ||
| If you do not have a NetFlow router, but your traffic " | If you do not have a NetFlow router, but your traffic " | ||
| + | |||
| + | NetFlow ルータを持っていない場合でも、トラフィックが Linux システムを経由する場合は、プローブとして動作し、NetFlow トラフィック情報をコレクターに送信するソフトウェアをインストールできます。Linuxには、トラフィックをキャプチャして NetFlow サーバに転送する **fprobe** というプログラムがあります。このプログラムを使用すると、インターフェースを通過するすべてのネットワークトラフィックから NetFlow トラフィックを生成できます。 | ||
| First, install fprobe: | First, install fprobe: | ||
| + | |||
| + | 最初に fprobe をインストールします。 | ||
| < | < | ||
| 行 279: | 行 411: | ||
| It will ask which interface must be monitored and to which ip:port the information must be sent to. In case it does not ask, run the following command: | It will ask which interface must be monitored and to which ip:port the information must be sent to. In case it does not ask, run the following command: | ||
| + | |||
| + | 監視するインターフェースと、情報をどの IP: | ||
| < | < | ||
| 行 286: | 行 420: | ||
| In the following example, all traffic from the eth0 interface will be sent to the NetFlow collector listening on port 9995 of IP 192.168.70.185: | In the following example, all traffic from the eth0 interface will be sent to the NetFlow collector listening on port 9995 of IP 192.168.70.185: | ||
| + | |||
| + | 次の例では、eth0 インターフェイスからのすべてのトラフィックが、IP 192.168.70.185 のポート 9995 でリッスンしている NetFlow コレクターに送信されます。 | ||
| < | < | ||
| 行 293: | 行 429: | ||
| Once traffic is generated, you can see the statistics of this traffic on the NetFlow collector with this command: | Once traffic is generated, you can see the statistics of this traffic on the NetFlow collector with this command: | ||
| + | |||
| + | トラフィックが生成されると、次のコマンドを使用して NetFlow コレクターでこのトラフィックの統計情報を表示できます。 | ||
| < | < | ||
| 行 300: | 行 438: | ||
| NetFlow must be enabled to be accessible from the Operation and Administration menus: [[: | NetFlow must be enabled to be accessible from the Operation and Administration menus: [[: | ||
| + | |||
| + | 操作および管理メニューからアクセスするには、NetFlow を有効にする必要があります: | ||
| Once NetFlow is configured, restart Pandora FMS server to boot the **nfcapd** server. It must be properly installed before attempting to start it. Check the server logs for any questions. | Once NetFlow is configured, restart Pandora FMS server to boot the **nfcapd** server. It must be properly installed before attempting to start it. Check the server logs for any questions. | ||
| + | NetFlow の設定が完了したら、Pandora FMS サーバを再起動して **nfcapd** サーバを起動してください。起動する前に、正しくインストールされている必要があります。サーバのログに不明な点がないか確認してください。 | ||
| - | === Netflow | + | === ポートミラーリングでの |
| Explained in section: [[: | Explained in section: [[: | ||
| + | |||
| + | 次の章で説明しています: | ||
| [[ja: | [[ja: | ||