ja:documentation:pandorafms:technical_annexes:pfms_opensearch_cluster_haproxy

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:technical_annexes:pfms_opensearch_cluster_haproxy [2026/03/08 04:50] – [Installation and configuration of OpenSearch cluster] junichija:documentation:pandorafms:technical_annexes:pfms_opensearch_cluster_haproxy [2026/03/08 05:00] (現在) – [Pandora FMS コンソールでの設定] junichi
行 3: 行 3:
 {{indexmenu_n>56}} {{indexmenu_n>56}}
    
 +[[:ja:documentation:pandorafms:start|Pandora FMS ドキュメント一覧に戻る]]
 +
 <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 はデフォルトですでにインストールされているはずです)。
  
 <code> <code>
行 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 設定ファイルのコピーを作成します。
  
 <code> <code>
行 56: 行 65:
 Now we will edit the file ''/etc/haproxy/haproxy.cfg'' with the following configuration: Now we will edit the file ''/etc/haproxy/haproxy.cfg'' with the following configuration:
  
 +ここで、次の設定でファイル ''/etc/haproxy/haproxy.cfg'' を編集します。
  
 <code> <code>
行 112: 行 122:
 Replace ''<ip-nodex>'' with the IP address of each OpenSearch node in our cluster and add more nodes following the same format if you have a larger cluster. \\  Replace ''<ip-nodex>'' with the IP address of each OpenSearch node in our cluster and add more nodes following the same format if you have a larger cluster. \\ 
 Save and exit. Save and exit.
 +
 +''<ip-nodex>'' をクラスター内の各 OpenSearch ノードの IP アドレスに置き換え、クラスターが大きい場合は同じ形式に従ってノードを追加します。\\
 +保存して終了します。
  
 This is a reference configuration file, so some options can be configured according to the needs of the environment, such as timeouts, retries, or SSL certificate verification.  This is a reference configuration file, so some options can be configured according to the needs of the environment, such as timeouts, retries, or SSL certificate verification. 
 +
 +これは参考の設定ファイルなので、タイムアウト、再試行、SSL 証明書の検証など、環境のニーズに応じていくつかのオプションを設定できます。
  
 <wrap #ks3_1 /> <wrap #ks3_1 />
-==== Stats page ====+ 
 +==== 統計ページ ====
  
 We have added a stats URL to the configuration, which will be useful for monitoring the status of HAProxy. This is optional and can be disabled by deleting the block starting with ''Stats page optional''. We have added a stats URL to the configuration, which will be useful for monitoring the status of HAProxy. This is optional and can be disabled by deleting the block starting with ''Stats page optional''.
 +
 +設定に統計 URL を追加します。これは HAProxy の状態監視に役立ちます。これはオプションであり、''Stats page optional'' で始まるブロックを削除することで無効にできます。
  
 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アドレスを制限したり、ポートを変更したり、アクセス認証情報を変更したりすることでアクセスを制限することもできます。\\
 +この例では、統計情報ウェブサイトは以下の通りです。
  
 <file> <file>
行 128: 行 149:
  
 With the credentials ''admin:Pandor4!''. With the credentials ''admin:Pandor4!''.
 +
 +認証情報 ''admin:Pandor4!'' を使用します。
  
 {{  :wiki:pfms_opensearch_cluster_haproxy-image_200.png  }} {{  :wiki:pfms_opensearch_cluster_haproxy-image_200.png  }}
  
 <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
 +
 +ご覧のとおり、以下の証明書を参照が、
  
 <file> <file>
行 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 によって署名された公式証明書を使用するのが最適です。ラボテストでは、以下のコマンドで作成した自己生成証明書を使用します。
  
 <code> <code>
行 154: 行 182:
  
 Now we will create a ''.pem'' file by concatenating the key and the certificate. If using a valid certificate, the steps will be similar, but using the certificate files. Now we will create a ''.pem'' file by concatenating the key and the certificate. If using a valid certificate, the steps will be similar, but using the certificate files.
 +
 +次に、鍵と証明書を連結して ''.pem'' ファイルを作成します。有効な証明書を使用する場合は、証明書ファイルを使用する点を除き、手順は同様です。
  
 <code> <code>
行 161: 行 191:
  
 We restarted the HAProxy service. We restarted the HAProxy service.
 +
 +HAProxy サービスを再起動します。
  
 <code> <code>
行 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 ノードにアクセスできることを確認します。
  
 <file> <file>
行 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 ルートに対して数回の呼び出しを行うと、呼び出しがノード間で分散されていることを確認できます。
  
 <file> <file>
行 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's IP address. 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's IP address.
 +
 +HAProxy は他のインスタンスにインストールすることも可能ですが、クラスタにマシンを追加する手間を省くため、Pandora FMS ノード自体に直接インストールしました。そのため、設定には localhost を使用します。ただし、別のマシンに HAProxy が設定されている場合は、そのマシンの IP アドレスを使用する必要があります。
  
 Go to the Pandora FMS console, to the settings section <wrap :en>**Management →  Settings → System Settings → Log collector**</wrap>, and fill in the required fields, activating Use HTTPS if you have configured a certificate. Go to the Pandora FMS console, to the settings section <wrap :en>**Management →  Settings → System Settings → Log collector**</wrap>, and fill in the required fields, activating Use HTTPS if you have configured a certificate.
 +
 +Pandora FMS コンソールの設定セクション <wrap :ja>**管理(Management) → セットアップ(Settings) → システム設定(System Settings) → ログ収集(Log collector)**</wrap> に移動し、必要なフィールドに入力して、証明書を設定している場合は HTTPS を使用するを有効にします。
  
 {{  :wiki:pfms_opensearch_cluster_haproxy-image_400.png  }} {{  :wiki:pfms_opensearch_cluster_haproxy-image_400.png  }}
行 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:documentation:pandorafms:start|←Back to Pandora FMS documentation index]] +OpenSearch が Pandora FMS に設定され接続されたことを示す緑色のチェックマークが表示されます。 
 + 
 +[[:ja:documentation:pandorafms:start|Pandora FMS ドキュメント一覧に戻る]]
  
  • ja/documentation/pandorafms/technical_annexes/pfms_opensearch_cluster_haproxy.1772945409.txt.gz
  • 最終更新: 2026/03/08 04:50
  • by junichi