差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| ja:documentation:pandorafms:complex_environments_and_optimization:06_ha [2026/06/19 23:30] – [pandora_server 設定] junichi | ja:documentation:pandorafms:complex_environments_and_optimization:06_ha [2026/06/19 23:35] (現在) – [冗長化構成(HA)] junichi | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | [[ja: | + | [[ja: |
| - | + | ||
| ===== 概要 ===== | ===== 概要 ===== | ||
| 行 1432: | 行 1430: | ||
| - | === サーバ間の SSH 鍵共有 === | ||
| - | |||
| - | An OpenSSH server must be installed and running on each host. Suppress the welcome message or banner that displays OpenSSH, run on **all** devices: | ||
| - | |||
| - | OpenSSH サーバがインストールされ、各ホストで動作している必要があります。OpenSSH を表示するウェルカムメッセージまたはバナーを抑制します。**すべて** のデバイスで以下を実行します: | ||
| - | |||
| - | < | ||
| - | [ -f / | ||
| - | sed -i -e ' | ||
| - | systemctl restart sshd | ||
| - | |||
| - | </ | ||
| - | |||
| - | Share the SSH keys between '' | ||
| - | |||
| - | '' | ||
| - | |||
| - | < | ||
| - | printf " | ||
| - | ssh-copy-id -p22 root@node1 | ||
| - | ssh-copy-id -p22 root@node2 | ||
| - | |||
| - | </ | ||
| - | |||
| - | <WRAP center round important 75%> | ||
| - | |||
| - | * In case you have the installation on Ubuntu Server, enable the **root** | ||
| - | * Then enable the SSH connection of the root user at least through shared keys " | ||
| - | |||
| - | </ | ||
| - | |||
| - | <WRAP center round important 75%> | ||
| - | |||
| - | * Ubuntu Server にインストールしている場合は、**root** ユーザが SSH 経由で接続できるようにします。 これは、'' | ||
| - | * 次に、'' | ||
| - | |||
| - | </ | ||
| - | |||
| - | === 同期スクリプトの利用 === | ||
| - | |||
| - | With Pandora FMS server a script is implemented that allows you to synchronize the **SLAVE** database in case it is out of sync. | ||
| - | |||
| - | Pandora FMS サーバでは、同期が取れていない場合に **SLAVE** データベースを同期できるようにするスクリプトが実装されています。 | ||
| - | |||
| - | The manual execution of this script is the following: | ||
| - | |||
| - | スクリプトの手動実行は次の通りです: | ||
| - | |||
| - | < | ||
| - | ./ | ||
| - | |||
| - | </ | ||
| - | |||
| - | For example, to make a manual synchronization from node 1 to node 2 the execution would be the following: | ||
| - | |||
| - | 例えば、ノード1 からノード2 へ手動で同期するには、次のように実行します: | ||
| - | |||
| - | < | ||
| - | / | ||
| - | |||
| - | </ | ||
| - | |||
| - | To configure the automatic recovery of the HA environment when there is any synchronization problem between **MASTER** and **SLAVE**, it is necessary to have the configuration token '' | ||
| - | |||
| - | **MASTER** と **SLAVE** の間で同期の問題が発生した際に HA 環境の自動回復を設定するには、サーバ設定ファイル(''/ | ||
| - | |||
| - | So, whenever a [[# | ||
| - | |||
| - | そうすると、[[# | ||
| - | |||
| - | This process will generate events in the system indicating the start, the end and if any error took place in there. | ||
| - | |||
| - | この処理は、開始、終了、およびそこでエラーが発生したかどうかを示すイベントをシステムで生成します。 | ||
| - | |||
| - | <wrap #ks6_4 /> | ||
| - | |||
| - | ==== Pandora FMS コンソールの設定 ==== | ||
| - | |||
| - | <WRAP center round info 60%> | ||
| - | |||
| - | Version 770 or later. | ||
| - | |||
| - | </ | ||
| - | |||
| - | <WRAP center round info 60%> | ||
| - | |||
| - | バージョン 770 以降 | ||
| - | |||
| - | </ | ||
| - | |||
| - | A new parameter has been added to the '' | ||
| - | |||
| - | Pandora FMS が使用するデータ受け取りディレクトリのパス、デフォルトでは ''/ | ||
| - | |||
| - | If it is configured, it will look for the file ''/ | ||
| - | |||
| - | 設定されている場合、''/ | ||
| - | |||
| - | < | ||
| - | $config[" | ||
| - | |||
| - | </ | ||
| - | |||
| - | In Pandora FMS console you could see the cluster status accessing to the Manage HA view. | ||
| - | |||
| - | Pandora FMS コンソールでは、HA 管理画面にアクセスしてクラスタの状態を確認できます。 | ||
| - | |||
| - | < | ||
| - | https:// | ||
| - | |||
| - | </ | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | The data of this view is constantly updated thanks to '' | ||
| - | |||
| - | この画面のデータは、'' | ||
| - | |||
| - | Among the available actions, you may configure a label for each one of the nodes and you can perform the option to synchronize the **SLAVE** node through the icon{{: | ||
| - | |||
| - | 実行可能なアクションとしては、各ノードのラベルを設定することができ、{{: | ||
| - | |||
| - | This icon can have the following states: | ||
| - | |||
| - | このアイコンには次の状態があります。 | ||
| - | |||
| - | * **Green**: Normal, no operation to be performed. | ||
| - | * **Blue**: Pending resynchronization. | ||
| - | * **Yellow**: Resynchronization is in progress. | ||
| - | * **Red**: //Error//, resynchronization failed. | ||
| - | |||
| - | * **緑**: 正常、何の処理も実行されていない。 | ||
| - | * **青**: 同期保留中。 | ||
| - | * **黄**: 同期実行中。 | ||
| - | * **赤**: // | ||
| 行 1613: | 行 1476: | ||
| </ | </ | ||
| - | **mysql** > '' | + | **mysql** > '' |
| - | **mysql** > '' | + | **mysql** > '' |
| **mysql** > '' | **mysql** > '' | ||
| 行 1860: | 行 1723: | ||
| *************************** 1. row *************************** | *************************** 1. row *************************** | ||
| | | ||
| - | Master_Host: | + | Master_Host: |
| Master_User: | Master_User: | ||
| Master_Port: | Master_Port: | ||
| 行 1935: | 行 1798: | ||
| </ | </ | ||
| - | [[ja: | + | [[ja: |
| ===== (OBSOLETE) データベース HA ===== | ===== (OBSOLETE) データベース HA ===== | ||