差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| ja:documentation:pandorafms:technical_annexes:pfms_opensearch_cluster_haproxy [2026/03/08 04:50] – [Installation and configuration of OpenSearch cluster] junichi | ja:documentation:pandorafms:technical_annexes:pfms_opensearch_cluster_haproxy [2026/03/08 05:00] (現在) – [Pandora FMS コンソールでの設定] junichi | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| + | [[: | ||
| + | |||
| <wrap #ks1 /> | <wrap #ks1 /> | ||
| ===== 概要 ===== | ===== 概要 ===== | ||
| 行 37: | 行 39: | ||
| <wrap #ks3 /> | <wrap #ks3 /> | ||
| - | ===== Installation and configuration of HAProxy ===== | + | ===== HAProxy |
| On another machine, we will install and configure the HAProxy balancer. \\ | On another machine, we will install and configure the HAProxy balancer. \\ | ||
| In our case, we will do this on the same machine where we have the Pandora FMS node with Rocky Linux 9 OS. However, it can be a separate machine for this purpose. | In our case, we will do this on the same machine where we have the Pandora FMS node with Rocky Linux 9 OS. However, it can be a separate machine for this purpose. | ||
| + | |||
| + | 別のマシンに HAProxy バランサをインストールして設定します。\\ | ||
| + | 今回のケースでは、Rocky Linux 9 OS を搭載した Pandora FMS ノードと同じマシンでこれを行いますが、別のマシンでも構いません。 | ||
| We will install the HAProxy and Vim packages to edit the configuration files (if it is a Pandora FMS node, Vim should already be installed by default). | We will install the HAProxy and Vim packages to edit the configuration files (if it is a Pandora FMS node, Vim should already be installed by default). | ||
| + | |||
| + | 設定ファイルを編集するために、HAProxy および Vim パッケージをインストールします (Pandora FMS ノードの場合は、Vim はデフォルトですでにインストールされているはずです)。 | ||
| < | < | ||
| 行 49: | 行 56: | ||
| Once installed, we will make a copy of the default HAProxy configuration file. | Once installed, we will make a copy of the default HAProxy configuration file. | ||
| + | |||
| + | インストールが完了したら、デフォルトの HAProxy 設定ファイルのコピーを作成します。 | ||
| < | < | ||
| 行 56: | 行 65: | ||
| Now we will edit the file ''/ | Now we will edit the file ''/ | ||
| + | ここで、次の設定でファイル ''/ | ||
| < | < | ||
| 行 112: | 行 122: | ||
| Replace ''< | Replace ''< | ||
| Save and exit. | Save and exit. | ||
| + | |||
| + | ''< | ||
| + | 保存して終了します。 | ||
| This is a reference configuration file, so some options can be configured according to the needs of the environment, | This is a reference configuration file, so some options can be configured according to the needs of the environment, | ||
| + | |||
| + | これは参考の設定ファイルなので、タイムアウト、再試行、SSL 証明書の検証など、環境のニーズに応じていくつかのオプションを設定できます。 | ||
| <wrap #ks3_1 /> | <wrap #ks3_1 /> | ||
| - | ==== Stats page ==== | + | |
| + | ==== 統計ページ | ||
| We have added a stats URL to the configuration, | We have added a stats URL to the configuration, | ||
| + | |||
| + | 設定に統計 URL を追加します。これは HAProxy の状態監視に役立ちます。これはオプションであり、'' | ||
| It is also possible to restrict access by limiting the exposed IP address, changing the port, or changing the access credentials. \\ | It is also possible to restrict access by limiting the exposed IP address, changing the port, or changing the access credentials. \\ | ||
| In our case, the statics website will remain at | In our case, the statics website will remain at | ||
| + | |||
| + | 公開IPアドレスを制限したり、ポートを変更したり、アクセス認証情報を変更したりすることでアクセスを制限することもできます。\\ | ||
| + | この例では、統計情報ウェブサイトは以下の通りです。 | ||
| < | < | ||
| 行 128: | 行 149: | ||
| With the credentials '' | With the credentials '' | ||
| + | |||
| + | 認証情報 '' | ||
| {{ : | {{ : | ||
| <wrap #ks3_2 /> | <wrap #ks3_2 /> | ||
| - | ==== Certificate for HTTPS HAProxy ==== | + | |
| + | ==== HTTPS HAProxy | ||
| As we can see, we refer to a certificate | As we can see, we refer to a certificate | ||
| + | |||
| + | ご覧のとおり、以下の証明書を参照が、 | ||
| < | < | ||
| 行 141: | 行 167: | ||
| in the configuration file. In production, it is best to use an official certificate signed by a trusted CA. For lab testing, we will use a self-generated certificate that we will create with the commands: | in the configuration file. In production, it is best to use an official certificate signed by a trusted CA. For lab testing, we will use a self-generated certificate that we will create with the commands: | ||
| + | |||
| + | 設定ファイルに記載されています。本番環境では、信頼できる CA によって署名された公式証明書を使用するのが最適です。ラボテストでは、以下のコマンドで作成した自己生成証明書を使用します。 | ||
| < | < | ||
| 行 154: | 行 182: | ||
| Now we will create a '' | Now we will create a '' | ||
| + | |||
| + | 次に、鍵と証明書を連結して '' | ||
| < | < | ||
| 行 161: | 行 191: | ||
| We restarted the HAProxy service. | We restarted the HAProxy service. | ||
| + | |||
| + | HAProxy サービスを再起動します。 | ||
| < | < | ||
| 行 167: | 行 199: | ||
| We verify that we can attack the OpenSearch nodes using HTTPS by running from the terminal of the node where we installed HAProxy: | We verify that we can attack the OpenSearch nodes using HTTPS by running from the terminal of the node where we installed HAProxy: | ||
| + | |||
| + | HAProxy をインストールしたノードのターミナルから実行して、HTTPS を使用して OpenSearch ノードにアクセスできることを確認します。 | ||
| < | < | ||
| 行 175: | 行 209: | ||
| If we make a couple of calls to the API root, we can verify that the calls are balanced between nodes. | If we make a couple of calls to the API root, we can verify that the calls are balanced between nodes. | ||
| + | |||
| + | API ルートに対して数回の呼び出しを行うと、呼び出しがノード間で分散されていることを確認できます。 | ||
| < | < | ||
| 行 183: | 行 219: | ||
| <wrap #ks4 /> | <wrap #ks4 /> | ||
| - | ===== Configuration in the Pandora FMS console | + | |
| + | ===== Pandora FMS コンソールでの設定 | ||
| HAProxy can be in any other instance, but to avoid having to add more machines to our cluster, we have installed it directly on the Pandora FMS node itself, so we will use localhost for our configuration. However, if it has been configured on another machine, you must use that machine' | HAProxy can be in any other instance, but to avoid having to add more machines to our cluster, we have installed it directly on the Pandora FMS node itself, so we will use localhost for our configuration. However, if it has been configured on another machine, you must use that machine' | ||
| + | |||
| + | HAProxy は他のインスタンスにインストールすることも可能ですが、クラスタにマシンを追加する手間を省くため、Pandora FMS ノード自体に直接インストールしました。そのため、設定には localhost を使用します。ただし、別のマシンに HAProxy が設定されている場合は、そのマシンの IP アドレスを使用する必要があります。 | ||
| Go to the Pandora FMS console, to the settings section <wrap : | Go to the Pandora FMS console, to the settings section <wrap : | ||
| + | |||
| + | Pandora FMS コンソールの設定セクション <wrap : | ||
| {{ : | {{ : | ||
| 行 193: | 行 234: | ||
| We will see the green check mark indicating that we have configured and connected our OpenSearch with Pandora FMS. | We will see the green check mark indicating that we have configured and connected our OpenSearch with Pandora FMS. | ||
| - | [[:en: | + | OpenSearch が Pandora FMS に設定され接続されたことを示す緑色のチェックマークが表示されます。 |
| + | |||
| + | [[:ja: | ||