ja:quickguides:migration_to_another_system

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
ja:quickguides:migration_to_another_system [2023/07/27 05:16] – [Data Export] junichija:quickguides:migration_to_another_system [2023/07/27 05:51] (現在) – [Data Import] junichi
行 70: 行 70:
 データの保護はユーザのみなさん自身の責任です。データ転送のために選択する手順を紙と鉛筆で書き留めましょう。 バックアップや手順に関しては、複数の人が作業をサポートしてくれるような体制を確保するよう**注意してください**。 データの保護はユーザのみなさん自身の責任です。データ転送のために選択する手順を紙と鉛筆で書き留めましょう。 バックアップや手順に関しては、複数の人が作業をサポートしてくれるような体制を確保するよう**注意してください**。
  
-==== Data Import ====+==== データのインポート ====
  
 **2.-** Install the new Pandora FMS system from scratch, we recommend the [[:en:documentation:02_installation:01_installing#herramienta_de_instalacion_en_linea|online installation tool]]. **2.-** Install the new Pandora FMS system from scratch, we recommend the [[:en:documentation:02_installation:01_installing#herramienta_de_instalacion_en_linea|online installation tool]].
 +
 +**2.-** 新規で Pandora FMS システムをスクラッチからインストールします。[[:ja:documentation:02_installation:01_installing#オンラインインストールツール|オンラインインストールツール]]の利用をお勧めします。
  
 **3.-** Close all processes running on the new system, except **mysql**; Start with Pandora FMS (starting with version NG 754, there are [[:en:documentation:05_big_environments:07_server_management#arranque_y_parada_manual_de_los_servidores_de_pandora_fms|additional options for manual start and stop]] of HA High Availability Environments): **3.-** Close all processes running on the new system, except **mysql**; Start with Pandora FMS (starting with version NG 754, there are [[:en:documentation:05_big_environments:07_server_management#arranque_y_parada_manual_de_los_servidores_de_pandora_fms|additional options for manual start and stop]] of HA High Availability Environments):
 +
 +**3.-** **mysql** を除く、新しいシステムで実行中のすべてのプロセスを止めます。Pandora FMS から始めます (バージョン NG 754 以降、HA 高可用性環境の [[:ja:documentation:05_big_environments:07_server_management#pandora_fms_サーバの手動起動停止|手動起動および停止用の追加オプション]] があります):
 +
 <code> <code>
  
行 84: 行 89:
  
 **4.-** To stop the Apache server will depend on the distribution you are using: **4.-** To stop the Apache server will depend on the distribution you are using:
 +
 +**4.-** Apache サーバの停止は、利用しているディストリビューションに依存します。
  
 <code> <code>
行 101: 行 108:
  
 **5.-** Next, send or copy, in the easiest way, the file ''backup_pandora_X.Y.tar.gz'' from the old system to the new one. Unzip the files in their corresponding places. **5.-** Next, send or copy, in the easiest way, the file ''backup_pandora_X.Y.tar.gz'' from the old system to the new one. Unzip the files in their corresponding places.
 +
 +**5.-** 次に、旧システムから ''backup_pandora_X.Y.tar.gz'' を新システムに送信、コピーします。適当な場所でファイルを展開します。
  
 **6.-** Enter **mysql** with root user. Access the Pandora FMS database in the new system, by default ''pandora'' and import the database. **6.-** Enter **mysql** with root user. Access the Pandora FMS database in the new system, by default ''pandora'' and import the database.
 +
 +**6.-** 新システムで、root で **mysql** へログインし、Pandora FMS データベースへアクセスします。デフォルトは ''pandora'' です。データベースにインポートします。
  
 <code> <code>
行 113: 行 124:
  
 This path will vary depending on the directory where you have the old system backup, here it is assumed that you have it in your home directory (''$HOME''). This path will vary depending on the directory where you have the old system backup, here it is assumed that you have it in your home directory (''$HOME'').
 +
 +このパスは、古いシステムのバックアップがあるディレクトリによって異なります。ここでは、ホームディレクトリ (''$HOME'') にバックアップがあるものと想定しています。
  
 **7.-** In the event that it was a migration to a higher version, in which the structure of the database changes, this would be the moment of axisCut the migration scripts as indicated in [[:en:documentation:02_installation:02_anexo_upgrade#update_a_major_version|major version upgrade procedure]]. **7.-** In the event that it was a migration to a higher version, in which the structure of the database changes, this would be the moment of axisCut the migration scripts as indicated in [[:en:documentation:02_installation:02_anexo_upgrade#update_a_major_version|major version upgrade procedure]].
 +
 +**7.-** データベースの構造が変更される新しいバージョンへの移行の場合は、[[:ja:documentation:02_installation:02_anexo_upgrade#メジャーアップデート|メジャーバージョン]] に示されているように、このタイミングで移行スクリプトを実行します。
  
 **8.-** If you have made a distribution change, take into account that the path or ''PATH'' of the Web Console has been modified and in this case there are some fields in the database that have also been changed. modified, such as the ''tconfig'' table and its ''attachment_store'' and ''fontpath'' fields. To modify these fields you must enter these instructions (query). The example is for a migration to Rocky Linux 8; in other distributions change the ''path'' of the Apache directory. **8.-** If you have made a distribution change, take into account that the path or ''PATH'' of the Web Console has been modified and in this case there are some fields in the database that have also been changed. modified, such as the ''tconfig'' table and its ''attachment_store'' and ''fontpath'' fields. To modify these fields you must enter these instructions (query). The example is for a migration to Rocky Linux 8; in other distributions change the ''path'' of the Apache directory.
 +
 +**8.-** ディストリビューションを変更した場合は、Web コンソールのパスが変更されていることを考慮してください。この場合、データベース内のいくつかのフィールド''tconfig'' テーブルの ''attachment_store'' および ''fontpath'' フィールドなども変更します。これらのフィールドを変更するには、次のコマンド(クエリ)を入力する必要があります。 この例は、Rocky Linux 8 への移行の場合です。 他のディストリビューションでは、Apache ディレクトリのパスを変更します。
 +
 <code> <code>
  
行 125: 行 143:
  
 These ''PATH'' must also be taken into account in the server and console configuration files (''config.php'' and ''pandora_server.conf'' files). These ''PATH'' must also be taken into account in the server and console configuration files (''config.php'' and ''pandora_server.conf'' files).
 +
 +これらのパスは、サーバおよびコンソールの設定ファイル(''config.php'' および ''pandora_server.conf'') でも考慮する必要があります。
  
 **9.-** Once the database has been migrated, you must check if the files ''…/pandora_console/include/config.php'' and ''/etc/pandora/pandora_server.conf'' and the new ones they have the same data in the ''dbname'', ''dbuser'' and ''dbpass'' fields. **9.-** Once the database has been migrated, you must check if the files ''…/pandora_console/include/config.php'' and ''/etc/pandora/pandora_server.conf'' and the new ones they have the same data in the ''dbname'', ''dbuser'' and ''dbpass'' fields.
 +
 +**9.-** データベースのマイグレーションを行ったら、''…/pandora_console/include/config.php'' および ''/etc/pandora/pandora_server.conf'' ファイルで、''dbname'', ''dbuser'' および ''dbpass'' フィールドの設定が同じであるか確認する必要があります。
  
    * If they are the same, go to **step number 10**.    * If they are the same, go to **step number 10**.
行 133: 行 155:
        * Option ( b ): Copy the data ( ''dbname'', ''dbuser'' and ''dbpass'' ) from the old files to the new ones.        * Option ( b ): Copy the data ( ''dbname'', ''dbuser'' and ''dbpass'' ) from the old files to the new ones.
        * Option ( c ): Grant permissions to the database with the data from the new installation. Assuming that the new installation has these data: ''dbname=pandora'', ''dbuser=pandora1'' and ''dbpass=pandora2'', the example takes the form:        * Option ( c ): Grant permissions to the database with the data from the new installation. Assuming that the new installation has these data: ''dbname=pandora'', ''dbuser=pandora1'' and ''dbpass=pandora2'', the example takes the form:
 +
 +   * 同じであれば、**ステップ 1o** へ行きます。
 +   * 異なるのであれば、いかのいずれかを選択します。
 +       * オプション(a): 古いファイルで新しいファイルを置き換える。
 +       * オプション(b): 古いファイルから、設定  ( ''dbname'', ''dbuser'' および ''dbpass'' ) を新しいファイルへコピーする。
 +       * オプション(c): 新たにインストールしたデータベースにアクセス許可を付与する。新たな設定で ''dbname=pandora''、''dbuser=pandora1''、''dbpass=pandora2'' となっていると仮定すると、次の例の通りです。
  
 <code> <code>
行 140: 行 168:
  
 **10.-** After this, start all the [[:en:documentation:01_understanding:03_glossary#demonio|daemon ]]again and you will be able to access the Pandora FMS Console, with all the Agents, Modules, alerts , etc. **10.-** After this, start all the [[:en:documentation:01_understanding:03_glossary#demonio|daemon ]]again and you will be able to access the Pandora FMS Console, with all the Agents, Modules, alerts , etc.
 +
 +**10.-** この後、すべての [[:ja:documentation:01_ Understanding:03_glossary#デーモン|デーモン]] を再起動すると、すべてのエージェント、モジュール、アラートなどを備えた Pandora FMS コンソールにアクセスできるようになります。
  
 **11.-** If the IP address or URL has changed in the new host, all **local** Agents will report to this new system. For Software Agents, you must modify the parameter [[:en:documentation:02_installation:05_configuration_agents#server_ip|server_ip]] in each of them. **11.-** If the IP address or URL has changed in the new host, all **local** Agents will report to this new system. For Software Agents, you must modify the parameter [[:en:documentation:02_installation:05_configuration_agents#server_ip|server_ip]] in each of them.
 +
 +**11.-** 新しいホストで IP アドレスまたは URL が変更された場合、すべての **ローカル** エージェントは、この新しいシステムに接続する必要があります。ソフトウェアエージェントの場合は、それぞれのパラメータ [[:ja:documentation:02_installation:05_configuration_agents#server_ip|server_ip]] を変更する必要があります。
  
 **12.-** Use, in [[:en:documentation:05_big_environments:01_massive_operations#operaciones_masivasagentes|Operaciones Masivas, editing agents]] to finalize any pending details. **12.-** Use, in [[:en:documentation:05_big_environments:01_massive_operations#operaciones_masivasagentes|Operaciones Masivas, editing agents]] to finalize any pending details.
 +
 +**12.-** 最後の修正には、[[:ja:documentation:05_big_environments:01_massive_operations#一括操作エージェント|一括操作のエージェント編集]] を利用します。
  
 In the case of an Enterprise version, the same process will be followed. In the case of an Enterprise version, the same process will be followed.
 +
 +Enterprise 版の場合も、同じ手順です。
  
  • ja/quickguides/migration_to_another_system.1690435001.txt.gz
  • 最終更新: 2023/07/27 05:16
  • by junichi