差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:complex_environments_and_optimization:08_optimization [2024/11/12 02:37] – [pandora_server.conf] kanayama | ja:documentation:pandorafms:complex_environments_and_optimization:08_optimization [2025/02/26 02:42] (現在) – [全体の再構築] junichi | ||
---|---|---|---|
行 1114: | 行 1114: | ||
=== 全体の再構築 === | === 全体の再構築 === | ||
- | This section affects only **InnoDB** databases. Pandora FMS is built on Innodb databases. | + | The **PFMS server** must first be stopped: |
- | この節の説明は、Innodb データベースのみ該当します。Pandora FMS は、Innodb データベースを利用しています。 | + | まず**PFMS サーバ**を停止する必要があります。 |
- | Unfortunately, | + | <code bash> |
+ | systemctl stop pandora_ha | ||
- | 時間ともに MySQL のパフォーマンスが落ちると、システム全体のパフォーマンスに影響します。この場合は、すべてのデータベーススキーマをゼロから再構築する以外に解決策はありません。MySQL がデータの保存に利用しているバイナリファイルを利用し、またそれを再構築します。 | + | </ |
- | If you take a look at the ''/ | + | Secondly, an export of all schemas and data must be done. Choose |
- | ''/ | + | 次に、すべてのスキーマとデータのエクスポートを実行する必要があります。データベースが大きい場合に備えて、データベースのバックアップを保存するのに十分なスペースがあるパーティション内のディレクトリを選択します。次のコマンドを実行します。 |
- | < | + | |
- | | + | |
- | | + | |
- | | + | |
- | </file> | + | <code bash> |
+ | mysqldump -uroot -p pandora --single-transaction > backup.sql | ||
- | The '' | + | </ |
- | '' | + | After finishing the process we will have in the file '' |
- | Similarly, each database has in the '' | + | 処理が完了すると、現在のディレクトリ内のファイル |
- | 同様に、各データベースは ''/ | + | Once this is done, MySQL is stopped with: |
- | The process is quite easy: | + | これが完了したら、MySQL を次のように停止します。 |
- | 手順はとても簡単です。 | + | <code bash> |
+ | systemctl stop mysqld.service | ||
- | - Dump (via **mysqldump**) all the schemes to the disk: | + | </ |
+ | |||
+ | Access | ||
- | - すべてのスキーマをディスクにダンプします | + | MySQL インストールディレクトリ (''/ |
<code bash> | <code bash> | ||
- | mysqldump | + | rm -rf / |
+ | rm -rf / | ||
+ | rm -rf / | ||
</ | </ | ||
- | * Stop MySQL. | + | Once these steps are done, we will start MySQL again with: |
- | * Delete '' | + | |
- | * Start MySQL. | + | |
- | * Create '' | + | |
- | * Import the backup file ('' | + | |
- | * MySQL を停止します。 | + | これらの手順が完了したら、次のコマンドで |
- | * '' | + | |
- | * MySQL を再起動します。 | + | |
- | * '' | + | |
- | * バックアップファイル('' | + | |
<code bash> | <code bash> | ||
- | mysql -u root -p | + | systemctl start mysqld.service |
</ | </ | ||
+ | |||
+ | Access the MySQL terminal with the following command: | ||
+ | |||
+ | 次のコマンドで MySQL ターミナルにアクセスします。 | ||
+ | |||
+ | <code bash> | ||
+ | mysql -uroot -p pandora | ||
+ | |||
+ | </ | ||
+ | |||
+ | The '' | ||
+ | |||
+ | '' | ||
<code sql> | <code sql> | ||
- | CREATE DATABASE pandora; | + | source backup.sql; |
- | USE pandora; | + | |
- | SOURCE alldata.sql; | + | |
</ | </ | ||
- | The system should work faster now. | + | Finally the **PFMS server** must be started: |
- | システムの動作が高速化されるはずです。 | + | 最後に、**PFMS サーバ** を起動する必要があります。 |
- | <wrap #ks1_11 /> | + | <code bash> |
+ | systemctl start pandora_ha | ||
+ | </ | ||
+ | |||
+ | <wrap #ks1_11 /> | ||
==== オプションのインデックス ==== | ==== オプションのインデックス ==== | ||
行 1377: | 行 1387: | ||
==== キャパシティ分析ツール (Capacity) ==== | ==== キャパシティ分析ツール (Capacity) ==== | ||
- | Pandora FMS has several tools that can help you to measure properly its hardware and software for the amount of data that it expects to obtain. One of them is useful to " | + | Pandora FMS has several tools that may help you to measure properly its hardware and software for the amount of data it expects to obtain. One of them is useful to " |
Pandora FMS には、ハードウエアおよびソフトウエアで、取得可能なデータ量を適切に計測できるいくつかのツールがあります。一つは、ダミーデータで直接データベースへアクセスするもの (**dbstress**)、もう一つは、ダミーの XML ファイルを生成するもの (**xml_stress**) です。 | Pandora FMS には、ハードウエアおよびソフトウエアで、取得可能なデータ量を適切に計測できるいくつかのツールがあります。一つは、ダミーデータで直接データベースへアクセスするもの (**dbstress**)、もう一つは、ダミーの XML ファイルを生成するもの (**xml_stress**) です。 | ||
<wrap #ks2_2_1 /> | <wrap #ks2_2_1 /> | ||
+ | |||
=== Pandora FMS の XML 負荷 === | === Pandora FMS の XML 負荷 === | ||
行 1391: | 行 1402: | ||
< | < | ||
/ | / | ||
+ | |||
</ | </ | ||
行 1406: | 行 1418: | ||
< | < | ||
- | ./ | + | ./ |
</ | </ | ||
行 1412: | 行 1425: | ||
'' | '' | ||
- | |||
< | < | ||
# Maximum number of threads, by default 10. | # Maximum number of threads, by default 10. | ||
行 1502: | 行 1514: | ||
module_data 1 | module_data 1 | ||
module_end | module_end | ||
+ | |||
</ | </ | ||
- | **Send and Receive | + | **Send and Receive Agent Local Configuration** |
**エージェントのローカル設定の送受信** | **エージェントのローカル設定の送受信** | ||
- | If you activate in your '' | + | If you activate in your '' |
'' | '' | ||
行 1522: | 行 1535: | ||
* **max_threads**: | * **max_threads**: | ||
* **agent_file**: | * **agent_file**: | ||
- | * **temporal**: | + | * **temporal**: |
* **log_file**: | * **log_file**: | ||
* **xml_version**: | * **xml_version**: | ||
行 1531: | 行 1544: | ||
* **time_from**: | * **time_from**: | ||
* **time_to**: | * **time_to**: | ||
- | * **get_and_send_agent_conf**: | + | * **get_and_send_agent_conf**: |
* **startup_delay**: | * **startup_delay**: | ||
* **timezone_offset**: | * **timezone_offset**: | ||
行 1538: | 行 1551: | ||
* **longitude_base**: | * **longitude_base**: | ||
* **altitude_base**: | * **altitude_base**: | ||
- | * **position_radius**: | + | * **position_radius**: |
- | + | * **max_threads** | |
- | * **max_threads** スクリプトの実行スレッド数。処理率を改善します。 | + | * **agent_file** |
- | * **agent_file** 行ごとに名前を書いたファイルのパス。 | + | * **temporal** |
- | * **temporal** 架空の XML データファイルを生成するディレクトリのパス。 | + | * **log_file** |
- | * **log_file** スクリプトの実行について情報を出力するログのパス。 | + | * **xml_version** |
- | * **xml_version** XML データファイルのバージョン。(デフォルトは 1.0) | + | * **encoding** |
- | * **encoding** XML データファイルのエンコーディング。(デフォルトは ISO-8859-1) | + | * **os_name** |
- | * **os_name** 仮想エージェントの OS 名。(デフォルトは Linux) | + | * **os_version** |
- | * **os_version** 仮想エージェントの OS バージョン。(デフォルトは 2.6) | + | * **agent_interval** |
- | * **agent_interval** 仮想エージェントの実行秒間隔。(デフォルトは 300) | + | * **time_from** |
- | * **time_from** 仮想 XML データの開始時間。" | + | * **time_to** |
- | * **time_to** 仮想 XML データの終了時間。" | + | * **get_and_send_agent_conf** |
- | * **get_and_send_agent_conf** 0 または 1 の値です。有効な場合、仮想エージェントは、リモート設定により、より新しいエージェントの設定ファイルをダウンロードしようとします。Pandora FMS Enterprise のコンソールから編集可能になります。 | + | * **startup_delay** |
- | * **startup_delay** それぞれのエージェントがファイル生成を開始するまでの時間を秒で指定します。競合を回避するために利用します。 | + | * **timezone_offset** |
- | * **timezone_offset** タイムゾーンのオフセット値です。 | + | * **timezone_offset_range** |
- | * **timezone_offset_range** ランダムに指定した範囲でタイムゾーンを生成します。 | + | * **latitude_base** |
- | * **latitude_base** 数値です。仮想エージェントを表示する緯度です。 | + | * **longitude_base** |
- | * **longitude_base** 数値です。仮想エージェントを表示する経度です。 | + | * **altitude_base** |
- | * **altitude_base** 数値です。仮想エージェントを表示する高度です。 | + | * **position_radius** |
- | * **position_radius** 数値です。指定した半径内の円に仮想エージェントがランダムに表示されます。 | + | The definition of one module in the script configuration file. If remote configuration |
- | + | ||
- | The definition of one module in the script configuration file. If remote configuration | + | |
スクリプト設定ファイル内の 1 つのモジュールの定義。リモート設定が有効になっている場合も同様です。次のようになります。 | スクリプト設定ファイル内の 1 つのモジュールの定義。リモート設定が有効になっている場合も同様です。次のようになります。 | ||
行 1566: | 行 1577: | ||
< | < | ||
module_begin | module_begin | ||
- | module_name < module_name > | + | module_name < |
- | module_type < module_type_data> | + | module_type < |
- | module_description < description > | + | module_description < |
- | module_exec type =< xml_stress_type_generation >;< another_option >;< another_option > … | + | module_exec type =< |
- | module_unit < units > | + | module_unit < |
module_min_critical < | module_min_critical < | ||
module_max_critical < | module_max_critical < | ||
行 1576: | 行 1587: | ||
module_max_warning < | module_max_warning < | ||
module_end | module_end | ||
+ | |||
</ | </ | ||
行 1590: | 行 1602: | ||
module_max_warning <値> | module_max_warning <値> | ||
module_end | module_end | ||
+ | |||
</ | </ | ||
行 1596: | 行 1609: | ||
それぞれの項目は次のように設定可能です。 | それぞれの項目は次のように設定可能です。 | ||
- | * **type_generation_xml_stress**: | + | * **type_generation_xml_stress**: |
* **module_attenuation < | * **module_attenuation < | ||
* **module_attenuation_wdays < | * **module_attenuation_wdays < | ||
- | |||
* **type_generation_xml_stress**: | * **type_generation_xml_stress**: | ||
* **module_attenuation < | * **module_attenuation < | ||
- | * **module_attenuation_wdays <値> < | + | * **module_attenuation_wdays <値> < |
< | < | ||
+ | |||
module_begin | module_begin | ||
module_name Network Traffic | module_name Network Traffic | ||
行 1615: | 行 1627: | ||
module_attenuation_wdays 0 6 | module_attenuation_wdays 0 6 | ||
module_end | module_end | ||
+ | |||
</ | </ | ||
* **module_incremental < value >**: If set to 1, the module' | * **module_incremental < value >**: If set to 1, the module' | ||
* **Others**: See below which options are available, depending on the execution type. | * **Others**: See below which options are available, depending on the execution type. | ||
- | |||
* **module_incremental < | * **module_incremental < | ||
* **その他**: | * **その他**: | ||
- | |||
<wrap #ks2_2_1_1 /> | <wrap #ks2_2_1_1 /> | ||
- | ==RANDOM== | ||
- | 次のオプションがあります。 | + | == RANDOM == |
- | * **variation** 前回の値から変化が発生する可能性を % で指定します。 | + | 次のオプションがあります。 |
- | * **min** 値の最小値を指定します。 | + | |
- | * **max** 値の最大値を指定します。 | + | |
+ | * **variation** | ||
+ | * **min** | ||
+ | * **max** | ||
**Numeric** | **Numeric** | ||
- | **min** と **max** の間の数値をランダムに生成します。 | + | **min** |
- | **Boleans** | + | **Booleans** |
0 または 1 の値を生成します。 | 0 または 1 の値を生成します。 | ||
行 1643: | 行 1654: | ||
**String** | **String** | ||
- | **min** と **max** の間の長さの文字列を生成します。文字は、A から Z の間のランダムで、大文字、小文字を含み、また数字や記号を含みます。 | + | **min** |
**外部データソース (SOURCE)** | **外部データソース (SOURCE)** | ||
行 1650: | 行 1661: | ||
* **src**: ソースデータファイル | * **src**: ソースデータファイル | ||
- | |||
ファイルは、1行に1データを含む形式で、行数に制限はありません。例えば次の通りです。 | ファイルは、1行に1データを含む形式で、行数に制限はありません。例えば次の通りです。 | ||
行 1658: | 行 1668: | ||
6 | 6 | ||
10 | 10 | ||
+ | |||
</ | </ | ||
行 1664: | 行 1675: | ||
< | < | ||
4 5 6 10 4 5 6 10 4 5 6 10 4 5 6 10 4 5 6 10 4 5 6 10 | 4 5 6 10 4 5 6 10 4 5 6 10 4 5 6 10 4 5 6 10 4 5 6 10 | ||
+ | |||
</ | </ | ||
<wrap #ks2_2_1_2 /> | <wrap #ks2_2_1_2 /> | ||
+ | |||
==SCATTER== | ==SCATTER== | ||
行 1759: | 行 1772: | ||
===== Pandora FMS の診断ツール ===== | ===== Pandora FMS の診断ツール ===== | ||
- | Sometimes there are problems for which direct help from Pandora FMS support is needed. To facilitate | + | Sometimes, there are problems for which direct help from Pandora FMS support is needed. To fmake the communication with the Support team easier, Pandora FMS servers have some tools for this. |
場合によっては、Pandora FMS サポートからの直接的な支援が必要な問題が発生することがあります。サポートチームとのコミュニケーションを容易にするために、Pandora FMS サーバーにはそのためのツールがいくつかあります。 | 場合によっては、Pandora FMS サポートからの直接的な支援が必要な問題が発生することがあります。サポートチームとのコミュニケーションを容易にするために、Pandora FMS サーバーにはそのためのツールがいくつかあります。 | ||
<wrap #ks3_1 /> | <wrap #ks3_1 /> | ||
+ | |||
==== 診断情報 ==== | ==== 診断情報 ==== | ||
- | This tool is located in the <wrap : | + | This tool is located in the <wrap : |
このツールは <wrap : | このツールは <wrap : | ||
- | {{ : | + | [[: |
+ | |||
+ | [[: | ||
- | [[ja: | ||
===== (OBSOLETE) ===== | ===== (OBSOLETE) ===== |