差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:technical_annexes:27_pfms_db_management [2024/06/24 05:25] – [DB スキーマチェック] junichija:documentation:pandorafms:technical_annexes:27_pfms_db_management [2026/01/17 00:13] (現在) – [コンソールからのデータベース管理] junichi
行 3: 行 3:
 {{indexmenu_n>27}} {{indexmenu_n>27}}
  
-**The core of the Pandora FMS system is its database**. It stores all the data collected by the monitored systems, the configuration of the agents, the alerts, the events, the audit data, the different users and their data. That is, all the data in the system.+<WRAP center round box centeralign>
  
-**Pandora FMS システムの中核はデータベースです**。 監視対象システムによって収集されたすべてのデータ、エージェントの設定、アラート、イベント、監査データ、さまざまなユーザとそのデータが保存されます。 つまり、システム内のすべてのデータです。+**The core of Pandora FMS system is its database**.
  
-There are several extensions that you can use from the Console to view information about the database.+</WRAP> 
 + 
 +<WRAP center round box centeralign> 
 + 
 +**Pandora FMS システムのコアはデータベースです。** 
 + 
 +</WRAP> 
 + 
 +It stores all the data collected by the monitored systems, agent configurations, alerts, events, audit data, different users and their information. //In other words, all system data//. 
 + 
 +監視対象システムによって収集されたすべてのデータ、エージェント設定、アラート、イベント、監査データ、さまざまなユーザとその情報を保存します。 //つまり、すべてのシステムデータです//。 
 + 
 +{{  :wiki:arch-schema.png  }} 
 + 
 +There are several extensions you can use from the web Console to view information about the database. Some of them are described here.
  
-データベースに関する情報を表示するためにコンソールから使用できる拡張機能がいくつかあります。+データベースに関する情報を表示するためにコンソールから使用できる拡張機能がいくつかあります。いくつかをここで説明します。
  
 <wrap #ks1 /> <wrap #ks1 />
  
-===== 診断ツール =====+===== 診断情報 =====
  
-In this section you can view general information about the Pandora FMS installation. The recommended parameters are shown, as well as warnings about existing values that need to be changed.+<WRAP left round box 50%>
  
-このセクションでは、Pandora FMS のインストールに関する一般的な情報を表示できます。推奨されるパラメータと、変更が必要な既存の値に関する警告が表示されます。+<wrap :en>**Management → {{:wiki:pfms-management-admin_tools-icon.svg?nolink&21x21}} Admin tools → Diagnostic info**</wrap> menu.
  
-Menu <wrap :en>**Management → Admin tools → Diagnostic info**</wrap>Sections:+</WRAP> 
 +\\ \\ \\ \\ \\  
 + 
 +<WRAP left round box 50%> 
 + 
 +<wrap :ja>**管理(Management→ {{:wiki:pfms-management-admin_tools-icon.svg?nolink&21x21}} 管理ツール(Admin tools→ 診断情報(Diagnostic info)**</wrap> メニュー。 
 + 
 +</WRAP> 
 +\\ \\ \\ \\ \\  
 + 
 +This section displays general information about the Pandora FMS installationIt shows recommended parameters as well as warnings about existing values that need to be changed. 
 + 
 +このセクションでは、Pandora FMS のインストールに関する一般的な情報が表示されます。推奨パラメータと、変更が必要な既存の値に関する警告が表示されます。 
 + 
 +It may take a few moments to load all the information. Then it will show the following sections: 
 + 
 +すべての情報を読み込むには少し時間がかかる場合があります。その後、以下のセクションが表示されます。 
 + 
 +  - <wrap :en>**Info status Pandora FMS**</wrap>: With installed versions, a link to access the Console, and basic license information. 
 +  - <wrap :en>**PHP setup**</wrap>: Installed PHP language version and configured values for execution time, timeout, and memory handling. 
 +  - <wrap :en>**Database size stats**</wrap>: Basic database information and its usage with PFMS. 
 +  - <wrap :en>**Database health status**</wrap>: Includes, among other values, the last execution of the //script// [[:en:documentation:pandorafms:installation:06_server_management#ks2|pandora_db]]. 
 +  - <wrap :en>**Database status info**</wrap>: Installed database version. 
 +  - <wrap :en>**System Info**</wrap>: Information about the hardware and operating system hosting the web Console. 
 +  - <wrap :en>**MySQL Performance metrics**</wrap>: Displays a series of recommended values and compares them with the configured ones. Validated values are denoted with the icon {{:wiki:pfms-icon_failed.svg?nolink&21x21}}, //items that need correction are shown with the icon// {{:wiki:pfms-icon_validated.svg?nolink&21x21}}. 
 +  - <wrap :en>**Tables fragmentation in the Pandora FMS database**</wrap>: Analyzes table fragmentation to keep it below the recommended percentage (10% by default). 
 +  - <wrap :en>**Pandora FMS logs dates**</wrap>: Size of log files. 
 +  - <wrap :en>**Pandora FMS Licence Information**</wrap>: Extended information about the license in use. 
 +  - <wrap :en>**Status of the attachment folder**</wrap>: Total number of files in the attachment directory. 
 +  - <wrap :en>**Information from the tagente_datos table**</wrap>: Special table with agent data and information; its size should be constantly monitored. 
 +  - <wrap :en>**Pandora FMS server threads**</wrap>: Threads used for different [[:en:documentation:pandorafms:introduction:02_architecture|PFMS servers]]. 
 +  - <wrap :en>**Date system**</wrap>: Date and time of the web Console (which may differ from the [[:en:documentation:pandorafms:management_and_operation:12_console_setup#ks1_1_1|date and time of the database]]).
  
-メニュー <wrap :ja>**管理(Management→ 管理ツール(Admin tools→ 診断情報(Diagnostic info)**</wrap>。セクシン:+  - <wrap :ja>**Pandora FMS 情報(Info status Pandora FMS)**</wrap>: インストルされているバージョン、コンソールへのアクセスリンク、および基本的なライセンス情報。 
 +  - <wrap :ja>**PHP 設定(PHP setup)**</wrap>: インストールされている PHP 言語のバージョンと、実行時間、タイムアウト、メモリ処理の設定値。 
 +  - <wrap :ja>**データベースサイズ統計(Database size stats)**</wrap>: 基本的なデータベース情報と PFMS での使用状況。 
 +  - <wrap :ja>**データベース健全性状態(Database health status)**</wrap>: その他、//script// [[:ja:documentation:pandorafms:installation:06_server_management#ks2|pandora_db]] の最終実行日時などが含まれます。 
 +  - <wrap :ja>**データベース状態(Database status info)**</wrap>: インストールされているデータベースのバージョン 
 +  - <wrap :ja>**システム情報(System Info)**</wrap>: Web コンソールをホストしているハードウェアとオペレーティングシステムに関する情報。 
 +  - <wrap :ja>**MySQL パフォーマンスメトリクス(MySQL Performance metrics)**</wrap>: 一連の推奨値を表示し、設定値と比較します。検証済みの値はアイコン {{:wiki:pfms-icon_failed.svg?nolink&21x21}} で示され、修正が必要な項目はアイコン {{:wiki:pfms-icon_validated.svg?nolink&21x21}} で示されます。 
 +  - <wrap :ja>**Pandora FMS データベースのテーブル断片化(Tables fragmentation in the Pandora FMS database)**</wrap>: テーブルの断片化を分析し、推奨割合(デフォルトは 10%)未満に保ちます。 
 +  - <wrap :ja>**Pandora FMS ログ日時(Pandora FMS logs dates)**</wrap>: ログファイルのサイズ。 
 +  - <wrap :ja>**Pandora FMS ラインス情報(Pandora FMS License Information)**</wrap>: 使用中のライセンスに関する詳細情報。 
 +  - <wrap :ja>**添付フォルダの状態(Status of the attachment folder)**</wrap>: 添付ディレトリ内のファイルの総数。 
 +  - <wrap :ja>**tagente_datos テーブルの情報(Information from the tagente_datos table)**</wrap>: エージェントのデータと情報を格納する特別なテーブル。サイズは常に監視する必要があります。 
 +  - <wrap :ja>**Pandora FMS サーバスレッド(Pandora FMS server threads)**</wrap>: 異なる [[:ja:documentation:pandorafms:introduction:02_architecture|PFMS サーバ]] で使用されるスレッド。 
 +  - <wrap :ja>**日付ステム(Date system)**</wrap>: Web コソールの日付と時刻 ([[:ja:documentation:pandorafms:management_and_operation:12_console_setup#ks1_1_1|データベースの日付と時刻]] とは異なる場合があります)。
  
-  - <wrap :en>**Info status Pandora FMS**</wrap>+Additionally, graphs representing the self-monitoring of the PFMS Server modules will be shown at the end.
-  - <wrap :en>**PHP setup**</wrap>+
-  - <wrap :en>**Database size stats**</wrap>+
-  - <wrap :en>**Database health status**</wrap>+
-  - <wrap :en>**Database status info**</wrap>+
-  - <wrap :en>**System Info**</wrap>+
-  - <wrap :en>**MySQL Performance metrics**</wrap>+
-  - <wrap :en>**Tables fragmentation in the Pandora FMS database**</wrap>+
-  <wrap :en>**Pandora FMS logs dates**</wrap>+
-  - <wrap :en>**Pandora FMS Licence Information**</wrap>+
-  - <wrap :en>**Status of the attachment folder**</wrap>+
-  - <wrap :en>**Information from the tagente_datos table**</wrap>+
-  - <wrap :en>**Pandora FMS server threads**</wrap>+
-  - <wrap :en>**Date system**</wrap>.+
  
-  - <wrap :ja>**Pandora FMS 情報(Info status Pandora FMS)**</wrap>+さらに、最後に PFMS サーバモジュールの自己監視を表すグラフが表示されます。
-  - <wrap :ja>**PHP 設定(PHP setup)**</wrap>+
-  - <wrap :ja>**データベースイズ統計(Database size stats)**</wrap>+
-  - <wrap :ja>**デタベス健全性状態(Database health status)**</wrap>+
-  - <wrap :ja>**データベース状態(Database status info)**</wrap>+
-  - <wrap :ja>**システム情報(System Info)**</wrap>+
-  - <wrap :ja>**MySQL パフォーマンスメトリック(MySQL Performance metrics)**</wrap>+
-  - <wrap :ja>**Pandora FMS データベースのテーブルの断片化(Tables fragmentation in the Pandora FMS database)**</wrap>+
-  - <wrap :ja>**Pandora FMS ロ日時(Pandora FMS logs dates)**</wrap>+
-  - <wrap :ja>**Pandora FMS イセンス情報(Pandora FMS Licence Information)**</wrap>+
-  - <wrap :ja>**添付ォルダの状態(Status of the attachment folder)**</wrap>+
-  - <wrap :ja>**tagente_datos テーブルの情報(Information from the tagente_datos table)**</wrap>+
-  - <wrap :ja>**Pandora FMS サーバスレッド(Pandora FMS server threads)**</wrap>+
-  - <wrap :ja>**日付システム(Date system)**</wrap>.+
  
 <wrap #ks2 /> <wrap #ks2 />
行 57: 行 89:
 ===== DB インタフェース ===== ===== DB インタフェース =====
  
-<WRAP center round important 90%>+<WRAP left round box 50%>
  
-Improper use of this tool may destroy data or render the application permanently inoperativeUse with caution.+<wrap :en>**Management → {{:wiki:pfms-management-admin_tools-icon.svg?nolink&21x21}} Admin tools → DB Interface**</wrap> menu.
  
 </WRAP> </WRAP>
 +\\ \\ \\ \\ \\ 
  
-<WRAP center round important 90%>+<WRAP left round box 50%>
  
-このツールを正しく利用しないと、デーが破壊されたり、アプリケションが永久に動作不能になったりする可能性があります。 慎重に使用してください+<wrap :ja>**管理(Management) → {{:wiki:pfms-management-admin_tools-icon.svg?nolink&21x21}} 管理ツール(Admin tools) → DB インフェース(DB Interface)**</wrap> メニュー。
  
 </WRAP> </WRAP>
 +\\ \\ \\ \\ \\ 
  
-It is an extension that allows to execute commands in the database and see its resultAdvanced tool that should only be used by people who know SQL and the Pandora FMS database schema with enough detail.+It is an extension that allows you to execute commands on the database and view the resultsThis is an advanced tool that **should only** be used by people who are familiar with SQL and the Pandora FMS database schema in sufficient detail. It is reserved for users of type [[:en:documentation:pandorafms:introduction:03_glossary#superadmin|superadmin]].
  
-これは、データベースコマンドを実行し、その結果を確認できる拡張機能です。SQL と Pandora FMS データベーススキーマ十分に理解している人だけが使用る高度なツです。+これは、データベースに対してコマンドを実行し、結果を表示できる拡張機能です。これは高度なツールであり、**SQL と Pandora FMS データベーススキーマ十分な知識を持つユーザのみ**が使用すべです。[[:ja:documentation:pandorafms:introduction:03_glossary#superadmin|スパー管理者]]ユーザ専用です。
  
-Menu <wrap :en>**Management → Admin tools → DB Interface**</wrap>.+<WRAP center round important 90%>
  
-メニュー <wrap :ja>**管理(Management) → 管理ツール(Admin tools) → DB インフェス(DB Interface)**</wrap>+Improper use of this tool can destroy data or render the application permanently inoperable. **It should be used with caution**. 
 + 
 +</WRAP> 
 + 
 +<WRAP center round important 90%> 
 + 
 +このツールを不適切に使用すると、デーが破壊されたり、アプリケションが永久に動作しなくなる可能性があります。**注意して使用してください**。 
 + 
 +</WRAP>
  
 <wrap #ks3 /> <wrap #ks3 />
行 81: 行 123:
 ===== DB スキーマチェック ===== ===== DB スキーマチェック =====
  
-<WRAP center round important 60%>+<WRAP left round box 50%>
  
-This check can only be performed on MySQL databases.+Menu <wrap :en>**Management → {{:wiki:pfms-management-admin_tools-icon.svg?nolink&21x21}} Admin tools → DB Schema check**</wrap>.
  
 </WRAP> </WRAP>
 +\\ \\ \\ \\ \\ 
  
-<WRAP center round important 60%>+<WRAP left round box 50%>
  
-このチェックは MySQL データベースでのみ実行できます。+メニュー <wrap :ja>**管理(Management) → {{:wiki:pfms-management-admin_tools-icon.svg?nolink&21x21}} 管理ツール(Admin tools) → DB スキーマチェック(DB Schema check)**</wrap>.
  
 </WRAP> </WRAP>
 +\\ \\ \\ \\ \\ 
  
-This is an extension that allows to check the structural differences between the established Pandora FMS databaseand a pattern scheme to compare possible errors.+This extension allows you to check for structural differences between the Pandora FMS database and a reference schema to compare potential errors. It is recommended to use this extension to verify if a database migration has been performed correctly.
  
-れは、現状の Pandora FMS データベースと、考えられるエラーを比較するための標準スキームとの間の構造的な違いをチェックできるよする拡張機能す。+この拡張機能を使用すると、Pandora FMS データベースと参照スキー間の構造的な差異をチェックし、潜在的なエラーを比較することができます。データベース移行が正しく実行されたかどかを確認するために、この拡張機能の使用をお勧めします。
  
-Menú <wrap :en>**Management → Admin tools → DB Schema check**</wrap>.+<WRAP center round important 90%>
  
-メニュー <wrap :ja>**管理(Management) → 管理ツール(Admin tools) → DB スキーマチェック(DB Schema check)**</wrap>.+This check can only be performed on MySQL databases. The user must have privileges for the ''SELECT'', ''DROP'', ''CREATE'', and ''REFERENCES'' commands.
  
-<WRAP center round tip 90%>+</WRAP>
  
-It is recommended to use this extension to check if a database migration has been performed correctly.+<WRAP center round important 90%> 
 + 
 +このチェックは MySQL データベースでのみ実行できます。ユーザには ''SELECT''、''DROP''、''CREATE''、''REFERENCES'' コマンドの権限が必要です。
  
 </WRAP> </WRAP>
  
-<WRAP center round tip 90%データベースの移行が成功したかどうかを確認するには、この拡張機能を使用することをお勧めします。+  * <wrap :en>**DB User with privileges**</wrap>: ''root''
 +  * <wrap :en>**DB Password for this user**</wrap>: ''pandora'' or ''Pandor4!''
 +  * <wrap :en>**DB Hostname**</wrap>: ''localhost''
 +  * <wrap :en>**DB Name (testing purposes only; temporary)**</wrap>: ''db_test''.
  
-</WRAP>+  * <wrap :ja>**権限を持つ DB ユーザ(DB User with privileges)**</wrap>: ''root'' 
 +  * <wrap :ja>**このユーザの DB パスワード(DB Password for this user)**</wrap>: ''pandora'' または ''Pandor4!'' 
 +  * <wrap :ja>**DB ホスト名(DB Hostname)**</wrap>: ''localhost'' 
 +  * <wrap :ja>**DB名(テスト目的のみ、一時的)(DB Name (testing purpose only; temporary)**</wrap>: ''db_test''
  
-The operation is as follows:+Steps taken during the check:
  
-操作は以下のとおりです。+チェック中に実行される手順:
  
-  * The user must have privileges to ''Select'', ''Drop'', ''Create'' and ''References''. Example: +  * A temporary database is created with the structure the installation database should have (different depending on the installed version). 
-    * <wrap :en>**DB User with privileges**</wrap>: ''root''+  * The schema of the created database is compared with the database schema referenced in the installation.
-    * <wrap :en>**DB Password for this user**</wrap>: ''pandora'' or ''Pandor4!''+
-    * <wrap :en>**DB Hostname**</wrap>: ''localhost''+
-    * <wrap :en>**DB Name (testing purposes only; temporary)**</wrap>: ''db_test''+
-  * A temporary database is created with the structure that the installation database must have (different depending on the version installed). +
-  * The schema of the database created is compared with that of the database referenced in the installation.+
   * The temporary database is deleted.   * The temporary database is deleted.
-  * The results are displayed, if something is incorrect, messages will be displayed with instructions to follow to bring the database to its correct structure.+  * The results are displayed, and if something is incorrect, messages with instructions will be shown to bring the database to its correct structure.
  
-  * ユーザには、''select''、''drop''、''create''、および ''references'' 権限が必要です。例: +  * インストールデータベース構造インストールバージョンによって異なります)に基づいて、一時データベースが作成されます。 
-    * <wrap :ja>**権限のある DB ユーザ(DB User with privileges)**</wrap>: ''root''+  * 作成されたデータベースのスキーマ、インストール時に参照されるデータベーススキーマと比較されます。
-    * <wrap :ja>**この DB ユーザのパスワード(DB Password for this user)**</wrap>: ''pandora'' または ''Pandor4!''+
-    * <wrap :ja>**DB ホスト名(DB Hostname)**</wrap>: ''localhost''+
-    * <wrap :ja>**DB 名(一時的なテスト目的のみ)(DB Name (testing purposes only; temporary))**</wrap>: ''db_test''+
-  * インストールデータベースに必要な構造 (インストールされているバージョンによって異なります) を持つ一時データベースが作成されます。 +
-  * 作成されたデータベースのスキーマ、インストール参照されるデータベーススキーマと比較されます。+
   * 一時データベースが削除されます。   * 一時データベースが削除されます。
-  * 結果が表示され、何か間違っている場合は、データベースを正しい構造にするための指示を示すメッセージが表示されます。+  * 結果が表示され、問題る場合は、データベースを正しい構造にするための手順を示すメッセージが表示されます。
  
-[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]+[[ja:documentation:pandorafms:start|Pandora FMS ドキュメント一覧に戻る]]
  
  • ja/documentation/pandorafms/technical_annexes/27_pfms_db_management.1719206715.txt.gz
  • 最終更新: 2024/06/24 05:25
  • by junichi