差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:technical_annexes:47_pfms_opensearch_cluster [2025/05/16 23:22] – [Security Configuration for SSL Connections] junichi | ja:documentation:pandorafms:technical_annexes:47_pfms_opensearch_cluster [2025/05/16 23:42] (現在) – [Security Configuration for SSL Connections] junichi | ||
---|---|---|---|
行 7: | 行 7: | ||
<wrap #ks1 /> | <wrap #ks1 /> | ||
- | ===== Introduction | + | ===== 概要 |
This is a configuration guide for installing multiple OpenSearch worker nodes, optionally with self-signed certificates and SSL connection. You may start from [[: | This is a configuration guide for installing multiple OpenSearch worker nodes, optionally with self-signed certificates and SSL connection. You may start from [[: | ||
+ | |||
+ | これは、複数の OpenSearch ワーカーノード(オプションで自己署名証明書と SSL 接続を使用)をインストールするための設定ガイドです。[[: | ||
It has been tested on: | It has been tested on: | ||
+ | |||
+ | 以下の環境でテスト済みです: | ||
- CentOS® 8.4 and 8.5. | - CentOS® 8.4 and 8.5. | ||
- Rocky Linux® 8.4, 8.5, 8.6, 8.7 and 9.5. | - Rocky Linux® 8.4, 8.5, 8.6, 8.7 and 9.5. | ||
- RedHat® 8.5 and 9.5 . | - RedHat® 8.5 and 9.5 . | ||
+ | |||
+ | - CentOS® 8.4 および 8.5. | ||
+ | - Rocky Linux® 8.4, 8.5, 8.6, 8.7 および 9.5. | ||
+ | - RedHat® 8.5 および 9.5 . | ||
<WRAP center round important 90%> | <WRAP center round important 90%> | ||
It is recommended to distribute Pandora FMS server and OpenSearch on independent servers. | It is recommended to distribute Pandora FMS server and OpenSearch on independent servers. | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round important 90%> | ||
+ | |||
+ | Pandora FMS サーバと OpenSearch を独立したサーバに分散することをお勧めします。 | ||
</ | </ | ||
<wrap #ks2 /> | <wrap #ks2 /> | ||
- | ===== Script Installation | + | |
+ | ===== スクリプトインストール | ||
The [[: | The [[: | ||
+ | |||
+ | Pandora FMS で動作する各ノードに必要な [[: | ||
<code bash> | <code bash> | ||
行 34: | 行 51: | ||
<wrap #ks2_1 /> | <wrap #ks2_1 /> | ||
- | ==== Default environment variables | + | |
+ | ==== デフォルト環境変数 | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
<code bash> | <code bash> | ||
行 47: | 行 68: | ||
<wrap #ks3 /> | <wrap #ks3 /> | ||
- | ===== Configuration on all nodes ===== | + | |
+ | ===== 全ノードでの設定 | ||
Although these instructions should be followed for each node, some aspects must be customized for each one: the memory of each computer and whether it is an existing node with data. | Although these instructions should be followed for each node, some aspects must be customized for each one: the memory of each computer and whether it is an existing node with data. | ||
+ | |||
+ | これらの手順は各ノードに対して実行する必要がありますが、各コンピュータのメモリや、データを持つ既存のノードであるかどうかなど、いくつかの側面は各ノードごとにカスタマイズする必要があります。 | ||
* Disable the network firewall on each node: | * Disable the network firewall on each node: | ||
+ | |||
+ | * 各ノードのネットワークファイアウォールを無効にします。 | ||
<code bash> | <code bash> | ||
行 59: | 行 85: | ||
* Using your favorite text editor, open the ''/ | * Using your favorite text editor, open the ''/ | ||
+ | |||
+ | * お気に入りのテキストエディターを使用して、''/ | ||
//Comment out// (or delete) the following line: | //Comment out// (or delete) the following line: | ||
+ | |||
+ | 以下の行を// | ||
< | < | ||
行 68: | 行 98: | ||
Add the following line to the end to temporarily disable security: | Add the following line to the end to temporarily disable security: | ||
+ | |||
+ | セキュリティを一時的に無効にするために、最後に次の行を追加します。 | ||
< | < | ||
行 75: | 行 107: | ||
Configure the <wrap : | Configure the <wrap : | ||
+ | |||
+ | <wrap : | ||
<code bash> | <code bash> | ||
行 82: | 行 116: | ||
Configure each <wrap : | Configure each <wrap : | ||
+ | |||
+ | 各ネットワークの必要に応じて、< | ||
<code bash> | <code bash> | ||
行 89: | 行 125: | ||
Save the changes and exit the text editor. | Save the changes and exit the text editor. | ||
+ | |||
+ | 変更を保存してテキストエディタを終了します。 | ||
* Memory configuration on each node. | * Memory configuration on each node. | ||
+ | |||
+ | * 各ノードのメモリ設定 | ||
Memory configuration should be less than the available memory minus the memory needed by the system. Therefore, if you need to configure 4 gigabytes for OpenSearch, the system must have at least 6 GB (4 for OpenSearch and 2 free for the system). | Memory configuration should be less than the available memory minus the memory needed by the system. Therefore, if you need to configure 4 gigabytes for OpenSearch, the system must have at least 6 GB (4 for OpenSearch and 2 free for the system). | ||
+ | |||
+ | メモリ設定は、使用可能なメモリからシステムに必要なメモリを差し引いた値よりも小さくする必要があります。したがって、OpenSearch 用に 4GB を設定する必要がある場合、システムに少なくとも 6GB(OpenSearch 用に 4GB、システム用に 2GB)の空き容量が必要です。 | ||
Once calculation is complete, the memory size is specified in the ''/ | Once calculation is complete, the memory size is specified in the ''/ | ||
+ | |||
+ | 計算が完了したら、その数値を使ってメモリサイズを ''/ | ||
<code bash> | <code bash> | ||
行 103: | 行 147: | ||
Save the changes and exit the text editor. | Save the changes and exit the text editor. | ||
+ | |||
+ | 変更を保存してテキストエディタを終了します。 | ||
* Delete the data directory on the clean nodes. | * Delete the data directory on the clean nodes. | ||
+ | |||
+ | * クリーンノード上のデータディレクトリを削除します。 | ||
<WRAP center round warning 90%> | <WRAP center round warning 90%> | ||
If the cluster is growing from a single node with data, **just clean up the data directory for the new nodes, not the one with data**. | If the cluster is growing from a single node with data, **just clean up the data directory for the new nodes, not the one with data**. | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round warning 90%> | ||
+ | |||
+ | クラスタをデータが含まれる単一のノードから拡張している場合は、**データを含むノードではなく、新しいノードのデータディレクトリをクリーンアップするだけです**。 | ||
</ | </ | ||
Stop the OpenSearch service and clear the data **if the node is new**: | Stop the OpenSearch service and clear the data **if the node is new**: | ||
+ | |||
+ | **ノードが新規の場合**、OpenSearch サービスを停止し、データをクリアします。 | ||
<code bash> | <code bash> | ||
行 121: | 行 177: | ||
Restart the OpenSearch service: | Restart the OpenSearch service: | ||
+ | |||
+ | OpenSearch サービスを再起動します。 | ||
<code bash> | <code bash> | ||
行 128: | 行 186: | ||
* Check each node locally. | * Check each node locally. | ||
+ | |||
+ | * ローカルでノードを確認します | ||
<code bash> | <code bash> | ||
行 135: | 行 195: | ||
You should get an output similar to: | You should get an output similar to: | ||
+ | |||
+ | 次のような出力が得られます。 | ||
{{ : | {{ : | ||
行 143: | 行 205: | ||
* To add security to connections, | * To add security to connections, | ||
* To configure Pandora FMS with OpenSearch, see " | * To configure Pandora FMS with OpenSearch, see " | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 90%> | ||
+ | |||
+ | * この時点で、クラスタの OpenSearch が完全に機能するはずです。 | ||
+ | * 接続にセキュリティを追加するには、「[[# | ||
+ | * Pandora FMS で OpenSearch を設定するには、「[[: | ||
</ | </ | ||
<wrap #ks4 /> | <wrap #ks4 /> | ||
- | ===== Security Configuration for SSL Connections | + | |
+ | ===== SSL 接続によるセキュリティ設定 | ||
* Enable firewall and add rules. | * Enable firewall and add rules. | ||
+ | |||
+ | * ファイアウォールを有効にしてルールを追加します。 | ||
<code bash> | <code bash> | ||
行 160: | 行 233: | ||
* Enable security in OpenSearch. | * Enable security in OpenSearch. | ||
+ | |||
+ | * OpenSearch でセキュリティを有効にします。 | ||
Using your favorite text editor, open file ''/ | Using your favorite text editor, open file ''/ | ||
+ | |||
+ | お気に入りのテキストエディタを使用して、ファイル ''/ | ||
<code bash> | <code bash> | ||
行 169: | 行 246: | ||
For self-signed certificates, | For self-signed certificates, | ||
+ | |||
+ | 自己署名証明書の場合は、ファイルの末尾に次の行を追加します。 | ||
<code bash> | <code bash> | ||
行 176: | 行 255: | ||
Save your changes and exit the text editor. | Save your changes and exit the text editor. | ||
+ | |||
+ | 変更を保存してテキストエディタを終了します。 | ||
* Copy certificates. | * Copy certificates. | ||
+ | |||
+ | * 証明書をコピーします。 | ||
The self-signed certificates generated in the installation step will be used. Copy the certificates from the master node to the other nodes. | The self-signed certificates generated in the installation step will be used. Copy the certificates from the master node to the other nodes. | ||
+ | |||
+ | インストール手順で生成した自己署名証明書が使用されます。マスターノードから他のノードに証明書をコピーします。 | ||
**On node 1** (replace '' | **On node 1** (replace '' | ||
+ | |||
+ | **ノード 1** ('' | ||
<code bash> | <code bash> | ||
行 190: | 行 277: | ||
Then run on each of the other nodes: | Then run on each of the other nodes: | ||
+ | |||
+ | 次に、他の各ノードで以下を実行します。 | ||
<code bash> | <code bash> | ||
行 198: | 行 287: | ||
On each of the other nodes, restart the OpenSearch service: | On each of the other nodes, restart the OpenSearch service: | ||
+ | |||
+ | 他の各ノードで、OpenSearch サービスを再起動します。 | ||
<code bash> | <code bash> | ||
行 205: | 行 296: | ||
Verify nodes: | Verify nodes: | ||
+ | |||
+ | ノードを確認します。 | ||
<code bash> | <code bash> | ||
行 214: | 行 307: | ||
A call verification to the cluster similar to the one above must be performed using both HTTPS and username and password authentication. | A call verification to the cluster similar to the one above must be performed using both HTTPS and username and password authentication. | ||
+ | |||
+ | 上記と同様のクラスタへの呼び出し検証は、HTTPS とユーザ名およびパスワード認証の両方を使用して実行する必要があります。 | ||
At this point, the cluster OpenSearch should have a fully functional SSL connection. To configure Pandora FMS with OpenSearch, see " | At this point, the cluster OpenSearch should have a fully functional SSL connection. To configure Pandora FMS with OpenSearch, see " | ||
+ | |||
+ | この時点で、クラスタの OpenSearch は完全に機能する SSL 接続を備えているはずです。Pandora FMS で OpenSearch を設定するには、「[[: | ||
[[: | [[: | ||