Unfortunately, MySQL is degraded with time, and this affects the global performance of the system.There is no other solution that does not involve rebuilding all the database schemes from scratch, rebuilding the data binary file that MySQL uses to store all the information and the files used to rebuild the transactions.
+
<code bash>
+
systemctl stop pandora_ha
-
時間ともに MySQL のパフォーマンスが落ちると、システム全体のパフォーマンスに影響します。この場合は、すべてのデータベーススキーマをゼロから再構築する以外に解決策はありません。MySQL がデータの保存に利用しているバイナリファイルを利用し、またそれを再構築します。
+
</code>
-
If you take a look at the ''/var/lib/mysql'' directory, you may see that there are three files, that have always the same name, and that are, depending on the severity of the case, huge. In this example:
+
Secondly, an export of all schemas and data must be done. Choose a directory of the machine, in a partition that has enough space to store the backup of the database in case it is a large database. The following command is executed:
The ''ibdata1'' file is the one that stores all the system Innobd data. In a very fragmented system that has not been "rebuilt" or "installed" for a long time, this system will be big but little efficient. The ''innodb_file_per_table'' parameter, that was [[#ks1_3|mentioned before]], regulates part of this performance.
- Dump (via **mysqldump**) all the schemes to the disk:
+
</code>
+
+
Access the MySQL installation directory in ''/var/lib/mysql'' and delete the files named ''binlog.000001'', ''binlog.000002'' … and ''binlog.index''. In addition, we will delete the directory with the same name as the database ''pandora''.
-
- すべてのスキーマをディスクにダンプします (**mysqldump** 経由)。
+
MySQL インストールディレクトリ (''/var/lib/mysql'') にアクセスし、''binlog.000001''、''binlog.000002''、… および ''binlog.index'' という名前のファイルを削除します。さらに、データベース ''pandora'' と同じ名前のディレクトリも削除します。
<code bash>
<code bash>
-
mysqldump -u root -p -A> alldata.sql
+
rm -rf /var/lib/mysql/pandora
+
rm -rf /var/lib/mysql/binlog.0*
+
rm -rf /var/lib/mysql/binlog.index
</code>
</code>
-
* Stop MySQL.
+
Once these steps are done, we will start MySQL again with:
-
* Delete ''ibdata1'', ''ib_logfile0'', ''ib_logfile1'' and the InnoDB database directories
+
-
* Start MySQL.
+
-
* Create ''pandora'' database again (''create database pandora;'')
Access the MySQL terminal with the following command:
+
+
次のコマンドで MySQL ターミナルにアクセスします。
+
+
<code bash>
+
mysql -uroot -p pandora
+
+
</code>
+
+
The ''pandora'' database will be selected, but it will be empty. The following command is used to import in the database the //backup// that we did from the Pandora FMS database:
**Send and Receive the Agent Local Configuration**
+
**Send and Receive Agent Local Configuration**
**エージェントのローカル設定の送受信**
**エージェントのローカル設定の送受信**
-
If you activate in your ''pandora_xml_stress.conf'' the ''get_and_send_agent_conf'' configuration value to 1, you can make the test load agents work as normal agents, so that they send their configuration file and also the MD5 hash. From the PFMS Web Console you can modify the remote configuration for subsequent runs of the ''pandora_xml_stress''.
+
If you activate in your ''pandora_xml_stress.conf'' the ''get_and_send_agent_conf'' configuration value to 1, you may make the test load agents work as normal agents, so that they send their configuration file and also the MD5 hash. From PFMS Web Console you may modify the remote configuration for subsequent runs of ''pandora_xml_stress''.
''pandora_xml_stress.conf'' で、''get_and_send_agent_conf'' を 1 に設定して実行した場合、テスト負荷エージェントで、通常のエージェントのように設定ファイルおよび md5 を送ることができます。PFMS Web コンソールから、''pandora_xml_stress'' の以降の実行のリモート設定を変更できます。
''pandora_xml_stress.conf'' で、''get_and_send_agent_conf'' を 1 に設定して実行した場合、テスト負荷エージェントで、通常のエージェントのように設定ファイルおよび md5 を送ることができます。PFMS Web コンソールから、''pandora_xml_stress'' の以降の実行のリモート設定を変更できます。
行 1523:
行 1535:
* **max_threads**: Number of threads where the script will be executed. This improves the E/S.
* **max_threads**: Number of threads where the script will be executed. This improves the E/S.
* **agent_file**: Path of the name list file path, separated by a new line.
* **agent_file**: Path of the name list file path, separated by a new line.
-
* **temporal**: Path of the directory where the made-up XML data files are generated.
+
* **temporal**: Path of the directory where made-up XML data files are generated.
* **log_file**: Path of the log where it will report about its execution script.
* **log_file**: Path of the log where it will report about its execution script.
* **xml_version**: Version of the XML data file (by default 1.0).
* **xml_version**: Version of the XML data file (by default 1.0).
行 1532:
行 1544:
* **time_from**: Time from which made-up XML data files are generated, in format ''yyyy-MM-dd HH:mm:ss''.
* **time_from**: Time from which made-up XML data files are generated, in format ''yyyy-MM-dd HH:mm:ss''.
* **time_to**: Time until which made-up XML data files are generated, in format ''yyyy-MM-dd HH:mm:ss''.
* **time_to**: Time until which made-up XML data files are generated, in format ''yyyy-MM-dd HH:mm:ss''.
-
* **get_and_send_agent_conf**: Boolean value 0 or 1. When it is active the made-up agents will try to download by remote configuration a more updated version of the standard configuration file of an agent. And they can be edited through the Pandora FMS Web console.
+
* **get_and_send_agent_conf**: Boolean value 0 or 1. When it is active, the made-up agents will try to download by remote configuration a more updated version of the standard configuration file of an agent. And they can be edited through Pandora FMS Web console.
* **startup_delay**: Time numeric value in seconds before each agent starts to generate files. It is used to avoid //race conditions//.
* **startup_delay**: Time numeric value in seconds before each agent starts to generate files. It is used to avoid //race conditions//.
* **timezone_offset**: Numeric value of the time zone offset.
* **timezone_offset**: Numeric value of the time zone offset.
行 1539:
行 1551:
* **longitude_base**: Numeric value. It is the longitude geographic area to be used to define fictitious agents.
* **longitude_base**: Numeric value. It is the longitude geographic area to be used to define fictitious agents.
* **altitude_base**: Numeric value. It is the altitude geographic area to be used to define fictitious agents.
* **altitude_base**: Numeric value. It is the altitude geographic area to be used to define fictitious agents.
-
* **position_radius**: Numeric value. Defines the radius of the circumference in which the geographic position of the fictitious agent will be set (randomly and based on the parameters **latitude_base** and **longitude_base**).
+
* **position_radius**: Numeric value. It defines the radius of the circumference in which the geographic position of the fictitious agent will be set (randomly and based on parameters **latitude_base** and **longitude_base**).
-
+
* **max_threads** スクリプトの実行スレッド数。処理率を改善します。
-
* **max_threads** スクリプトの実行スレッド数。処理率を改善します。
+
* **agent_file** 行ごとに名前を書いたファイルのパス。
-
* **agent_file** 行ごとに名前を書いたファイルのパス。
+
* **temporal** 架空の XML データファイルを生成するディレクトリのパス。
-
* **temporal** 架空の XML データファイルを生成するディレクトリのパス。
+
* **log_file** スクリプトの実行について情報を出力するログのパス。
-
* **log_file** スクリプトの実行について情報を出力するログのパス。
+
* **xml_version** XML データファイルのバージョン。(デフォルトは 1.0)
-
* **xml_version** XML データファイルのバージョン。(デフォルトは 1.0)
+
* **encoding** XML データファイルのエンコーディング。(デフォルトは ISO-8859-1)
-
* **encoding** XML データファイルのエンコーディング。(デフォルトは ISO-8859-1)
+
* **os_name** 仮想エージェントの OS 名。(デフォルトは Linux)
-
* **os_name** 仮想エージェントの OS 名。(デフォルトは Linux)
+
* **os_version** 仮想エージェントの OS バージョン。(デフォルトは 2.6)
-
* **os_version** 仮想エージェントの OS バージョン。(デフォルトは 2.6)
+
* **agent_interval** 仮想エージェントの実行秒間隔。(デフォルトは 300)
-
* **agent_interval** 仮想エージェントの実行秒間隔。(デフォルトは 300)
+
* **time_from** 仮想 XML データの開始時間。"年-月-日 時間:分:秒" というフォーマットにて。
-
* **time_from** 仮想 XML データの開始時間。"年-月-日 時間:分:秒" というフォーマットにて。
+
* **time_to** 仮想 XML データの終了時間。"年-月-日 時間:分:秒" というフォーマットにて。
-
* **time_to** 仮想 XML データの終了時間。"年-月-日 時間:分:秒" というフォーマットにて。
module_exec type =< xml_stress_type_generation >;< another_option >;< another_option > …
+
module_exec type =<xml_stress_type_generation>;<another_option>;<another_option> …
-
module_unit < units >
+
module_unit <units>
module_min_critical <value>
module_min_critical <value>
module_max_critical <value>
module_max_critical <value>
行 1577:
行 1587:
module_max_warning <value>
module_max_warning <value>
module_end
module_end
+
</file>
</file>
行 1591:
行 1602:
module_max_warning <値>
module_max_warning <値>
module_end
module_end
+
</file>
</file>
行 1597:
行 1609:
それぞれの項目は次のように設定可能です。
それぞれの項目は次のように設定可能です。
-
* **type_generation_xml_stress**: It can have the values [[#ks2_2_1_1|RANDOM]], [[#ks2_2_1_2|SCATTER]], [[#ks2_2_1_3|CURVE]].
+
* **type_generation_xml_stress**: It can have values [[#ks2_2_1_1|RANDOM]], [[#ks2_2_1_2|SCATTER]], [[#ks2_2_1_3|CURVE]].
* **module_attenuation <value>**: The generated module value is multiplied by the specified value, usually between 0.1 and 0.9.
* **module_attenuation <value>**: The generated module value is multiplied by the specified value, usually between 0.1 and 0.9.
* **module_attenuation_wdays <value> <value> … <value>**: The module value is only attenuated during the given days, ranging from Sunday (0) to Saturday (6). For example, the following module simulates a 50 % drop in network traffic on Saturdays and Sundays:
* **module_attenuation_wdays <value> <value> … <value>**: The module value is only attenuated during the given days, ranging from Sunday (0) to Saturday (6). For example, the following module simulates a 50 % drop in network traffic on Saturdays and Sundays:
Sometimes there are problems for which direct help from Pandora FMS support is needed. To facilitate the communication with the Support team, Pandora FMS servers have some tools for this.
+
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.
This tool is located in the <wrap :en>**Management → Admin tools → Diagnostic Info**</wrap> section, and is designed to provide the most important information about Pandora FMS configuration and its database.
+
This tool is located in the <wrap :en>**Management → Admin tools → Diagnostic Info**</wrap> section, and is conceived to provide the most important information about Pandora FMS configuration and its database.