ja:documentation:pandorafms:installation:06_server_management

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:installation:06_server_management [2024/08/02 08:51] – [ヒストリデータベースの設定] junichija:documentation:pandorafms:installation:06_server_management [2026/06/26 23:11] (現在) – [サーバ管理] junichi
行 3: 行 3:
 {{indexmenu_n>6}} {{indexmenu_n>6}}
  
-[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]+[[ja:documentation:pandorafms:start|Pandora FMS ドキュメント一覧に戻る]]
  
 <wrap #ks1 /> <wrap #ks1 />
行 11: 行 11:
 <WRAP center round info 90%> <WRAP center round info 90%>
  
-Please note that if for maintenance reasons you want to manually stop Pandora FMS server, verify whether a service **Watchdog** is running. [[#ks6|Check this section]] for more details.+Please note that if for maintenance reasons you wish to manually stop Pandora FMS server, verify whether a service **Watchdog** is running. [[#ks6|Check this section]] for more details.
  
 </WRAP> </WRAP>
行 30: 行 30:
  
 <file> <file>
-/etc/init.d/pandora_server stop+ 
 +systemctl stop pandora_server
  
 </file> </file>
行 39: 行 40:
  
 <file> <file>
-/etc/init.d/pandora_server start+systemctl start pandora_server
  
 </file> </file>
行 48: 行 49:
  
 <file> <file>
-/etc/init.d/pandora_server restart+systemctl restart pandora_server
  
 </file> </file>
行 65: 行 66:
 ===== データベース管理 ===== ===== データベース管理 =====
  
-There is an essential tool for the proper functioning of Pandora FMS which is in charge of carrying out these tasks. Its location is:+There is an essential tool for proper Pandora FMS performance, which is in charge of carrying out these tasks. Its location is:
  
-Pandora FMS が適切に機能するためのタスクを実行するための重要なツールがあります。その場所は次のとおりです。+Pandora FMS が適切にパフォーマンスを維持するためのタスクを実行する重要なツールがあります。その場所は次のとおりです。
  
 <file> <file>
行 316: 行 317:
 #!/bin/bash #!/bin/bash
 sendsms +34458474843 "The Pandora FMS has suffered some issue and it cannot be started." sendsms +34458474843 "The Pandora FMS has suffered some issue and it cannot be started."
-/etc/init.d/tentacle_serverd stop+systemctl stop tentacle_serverd 
  
 </code> </code>
行 335: 行 337:
 **ウォッチドッグ**を起動し、バックグラウンドで動作させるには、次のように実行します。 **ウォッチドッグ**を起動し、バックグラウンドで動作させるには、次のように実行します。
  
-<code>+<file>
 nohup /usr/share/pandora_server/util/pandora_watchdog.sh & nohup /usr/share/pandora_server/util/pandora_watchdog.sh &
  
-</code>+</file>
  
-<WRAP center round important 60%> When starting a **Watchdog**, bear in mind that if for maintenance reasons you wish to manually stop Pandora FMS server, you must also previously have stopped the **Watchdog** process to prevent it from trying to start the sercice automatically continuously. </WRAP>+<WRAP center round important 90%> 
 + 
 +When starting a **Watchdog**, bear in mind that if for maintenance reasons you wish to manually stop Pandora FMS server, you must also previously have stopped the **Watchdog**  process to prevent it from trying to start the service automatically continuously. 
 + 
 +</WRAP
 + 
 +<WRAP center round important 90%>
  
-<WRAP center round important 60%> 
 **ウォッチドッグ**を実行しているときに、メンテナンス上の理由で Pandora FMS サーバを手動で停止したい場合は、事前に**ウォッチドッグ**プロセスを停止して、サービスが自動的に起動されないようにする必要があります。 **ウォッチドッグ**を実行しているときに、メンテナンス上の理由で Pandora FMS サーバを手動で停止したい場合は、事前に**ウォッチドッグ**プロセスを停止して、サービスが自動的に起動されないようにする必要があります。
 +
 </WRAP> </WRAP>
 +
 +<wrap #ks7 />
  
 ===== ヒストリデータベース ===== ===== ヒストリデータベース =====
行 354: 行 364:
 ==== ヒストリデータベースの設定 ==== ==== ヒストリデータベースの設定 ====
  
-To configure a historical database, it is necessary to have a new server where to host it (**different from the one of the main database**)Once you have that server where MySQL is installed, follow these steps:+To configure a historical database, it is necessary to have a new MySQL server for its hosting, and it **must be different from the main database**.
  
-ヒストリデータベースを設定するには、それをホストする新しいサーバが必要です(**メインデータベースのサーバとは異なります**)。MySQL がインストールされているサーバを用意したら、次の手順に従います+ヒストリデータベースを設定するには、それをホストするための新しい MySQL サーバが必要であり、そのサーバは**メインデータベースとは異なるものである必要があります**。
  
-In Pandora FMS console, go to **Setup → Setup → Historical database** to access [[:en:documentation:pandorafms:management_and_operation:12_console_setup#the_history_database|connection configuration]] (**Configure connection target**).+<WRAP center round info 90%>
  
-Pandora FMS コンソールで、**セットアップ(Setup)** → **セットアップ(Setup)** → **ヒストリデータベース(Historical database)** へ行き、[[:ja:documentation:pandorafms:management_and_operation:12_console_setup#ヒストリデータベース|接続設定]] (**接続先設定(Configure connection target)**) にアクセスします。+Keep in mind that on the first connection to the future historical database, the specified user will create a new data structure. If this fails, it will cause the <wrap :en>**Enable historical database**</wrap> button to be disabled.
  
-Fill in the following fields:+Essentially, the **root** administrator of the remote MySQL server that will host the historical database must create it and configure it with the user credentials that will connect to create said data structure. To do this, run something similar to the following on the remote MySQL command line:
  
-次のフィールドを入力します。+</WRAP>
  
-  * **Host**: Host name (web link or IP address) of the history database. +<WRAP center round info 90%>
-  * **Port**: Connection port of the history database. Stardard value: ''3306''+
-  * **Database name**: Name of the history database. Default value: ''pandora''+
-  * **Database user**: History database user. Default value: ''pandora''+
-  * **Database password**: Password of the history database. This will allow to cennect to the history database. Next fill in the custom parameters (**Customize settings**):+
  
-  * **ホスト(Host)**: ヒストリデータベースのホスト名(または IP アドレス) +将来的に使用するヒストリデータベース初回接続時に指定されたユザによって新しいデータ構造が作成される点にご注意くださいこの処理に失敗ると、**ヒストリデータベース有効化(Enable historical database)** ンが無効になります。
-  * **ポート(Port)**: ヒストリデータベースの接続ポート番号。標準は''3306'' です。 +
-  * **デタベース名(Database name)**: ヒストリデータベースの名前デフォルトは ''pandora''。 +
-  * **データベースユーザ(Database user)**ヒストリデータベースユーザ。デフォルトは ''pandora'' です。 +
-  * **データベースパスワード(Dabase password)**: ヒストリデーベースのパスワード。これにより、ヒストリデータベースに接続できるようになります。 次に、カスタムパラメータを入力します(**設定のカスタマイズ**):+
  
-{{  :wiki:pandora_console_06-1.png  }}+基本的には、ヒストリデータベースをホストするリモート MySQL サーバの **root** 管理者が、データベースを作成し、そのデータ構造を構築するために接続するユーザの認証情報を設定する必要があります。これを行うには、リモートMySQL のコマンドラインで以下のようなコマンドを実行してください。
  
-The last fields of this form **Data days old to keep in active database, Transference block size (Step)**  and **Delay betewwn transferences (seconds)**  will define the way in which the data will be sent to the historical database, that is, the oldest data those with more than n //days (Data days)//  will be moved to the history database in blocks of made of n rows (//Step//) waiting n seconds (//Delay//) between one block and the next to avoid overloads.+</WRAP>
  
-このフォームの最後のフィールド**アクティブなデータベースに保持するデータ日数、転送ブロックサイズ(ステップ)** および **転送の遅延(秒)** は、データがヒストリデータベースへ送信される方法を定義します。つまり、オーバーロードを避けるために、n //日(データ日)//以上前の古いデータが、n 行(//ステップ//)単位で、それぞれの送信単位の間に n 秒(//遅延//)待機しながらヒストリデータベースに移動されます。+<code sql> 
 +CREATE USER <pfms_user_name> IDENTIFIED BY '<pfms_user_name>';
  
-In the same screen, it is also possible to decide whether to send the events with more than n days to the history database (**Events days old to keep in active database**), although it must be taken into account that including the events will considerably increase the growth rate of the historical database, and that these will only be consulted when generating reports, not in the event view.+ALTER USER '<pfms_user_name>'  
 + IDENTIFIED WITH mysql_native_password BY '<pfms_user_password>';
  
-同じ画面で、n 日を超えるイベントをヒストリデータベースに送信するかどうかを決定することもできます(**アクティブなデータベースにイベントを保持する日数**)。ただし、 イベントはヒストリデータベースを大幅に増大させることと、レポートを生成するときにのみ参照されイベント表示では参照されない点を考慮する必要があります。+CREATE DATABASE <historical_database_name>;
  
-<WRAP center round tip 75%>+GRANT ALL PRIVILEGES 
 + ON `<historical_database_name>`.*  
 + TO `<pfms_user_name>`@`<pfms_server_ip_address>`;
  
-The historical database uses the ''/usr/bin/pandora_db''  binary to transfer dataIn addition, you must configure the settings [[:en:documentation:pandorafms:management_and_operation:12_console_setup#history_database_maintenance_options|for the maintenance of the history database]].+FLUSH PRIVILEGES; 
 +</code> 
 + 
 +In the PFMS Web Console menu, choose <wrap :en>**Management → Setup → Setup → Historical database**</wrap> and enable the <wrap :en>**Enable historical database**</wrap> button to access the connection configuration (<wrap :en>**Configure connection target**</wrap>): 
 + 
 +PFMS Web コンソールのメニューから **管理(Management) → セットアップ(Setup) → セットアップ(Setup) → ヒストリデータベース(Historical database)** を選択し、**ヒストリデータベース有効化(Enable historical database)** ボタンを有効にして、接続設定(**接続先設定(Configure connection target)**)にアクセスします。 
 + 
 +Fill in the previous fields: 
 + 
 +項目を入力します: 
 + 
 +  * <wrap :en>**Host**</wrap>: Hostname (web link or IP address) of the historical database. 
 +  * <wrap :en>**Port**</wrap>: Connection port of the historical database. Standard value: ''3306''
 +  * <wrap :en>**Database name**</wrap>: Name of the historical database. Default value: ''pandora'', replace with ''<historical_database_name>''
 +  * <wrap :en>**Database user**</wrap>: Historical database user. Default value: ''pandora'', replace with ''<pfms_user_name>''
 +  * <wrap :en>**Database password**</wrap>: Historical database password, replace with ''<pfms_user_password>''. This will allow connecting to the historical database. 
 + 
 +  * <wrap :ja>**ホスト(Host)**</wrap>: ヒストリデータベースのホスト名(Webリンクまたは IP アドレス)  
 +  * <wrap :ja>**ポート(Port)**</wrap>: ヒストリデータベースの接続ポート。標準値: ''3306''  
 +  * <wrap :ja>**データベース名(Database name)**</wrap>: ヒストリデータベース名。デフォルト値: ''pandora''(''<historical_database_name>'' に置き換えてください)。  
 +  * <wrap :ja>**データベースユーザ(Database user)**</wrap>: ヒストリデータベースのユーザ名。デフォルト値: ''pandora''(''<pfms_user_name>'' に置き換えてください)。  
 +  * <wrap :ja>**データベースパスワード(Database password)**</wrap>: ヒストリデータベースのパスワード(''<pfms_user_password>'' に置き換えてください)。これにより、ヒストリデータベースへの接続が可能になります。 
 + 
 +<WRAP center round tip 90%> 
 + 
 +It is recommended to configure the options for [[:en:documentation:pandorafms:management_and_operation:12_console_setup#ks1_4|a secure connection to the historical database using SSL]].
  
 </WRAP> </WRAP>
  
-<WRAP center round tip 75%>+<WRAP center round tip 90%> 
 + 
 +[[:ja:documentation:pandorafms:management_and_operation:12_console_setup#ks1_4|SSL を使用したヒストリデータベースへのセキュアな接続]]のためのオプションを設定することをお勧めします。 
 + 
 +</WRAP> 
 + 
 +In the fields of this form called <wrap :en>**Data days old to keep in active database**</wrap>, <wrap :en>**Transference block size (Step)**</wrap> and <wrap :en>**Delay between transferences (seconds)**</wrap>, you will define how the data will be sent to the historical database; that is, data older than //n// days (//Data days//) will be moved to the historical database in blocks of //n// rows (//Step//), waiting //n// seconds (//Delay//) between one block and the next to avoid overloads. 
 + 
 +**アクティブデータベースに保持するデータの経過日数(Data days old to keep in active database)**、**転送ブロックサイズ(ステップ)(Transference block size (Step))**、および **転送間隔(秒)(Delay between transferences (seconds))** の各フィールドでは、データをヒストリデータベースへ送信する際の手順を定義します。具体的には、//n//日(Data days)以上経過したデータを、//n//行(Step)ずつのブロックに分けてヒストリデータベースへ移動させ、過負荷を防ぐためにブロック間の処理に//n//秒(Delay)の待機時間を設けます。 
 + 
 +On this same screen, you can also decide whether to send events older than //n// days to the historical database (<wrap :en>**Events days old to keep in active database**</wrap>), although it must be taken into account that including events will considerably increase the growth rate of the historical database, and that these will only be queried when generating reports, not in the event view. 
 + 
 +同じ画面で、//n//日以上経過したイベントをヒストリデータベースに送信するかどうかも設定できます(<wrap :ja>**アクティブデータベースに保持するイベント日数(Events days old to keep in active database)**</wrap>)。ただし、イベントを含めるとヒストリデータベースの増加速度が大幅に速まること、また、それらのイベントはレポート生成時にのみ参照され、イベントビューには表示されない点に注意が必要です。 
 + 
 +<WRAP center round tip 90%> 
 + 
 +The historical database uses the binary ''/usr/bin/pandora_db'' to transfer the data. In addition, you must configure the options for [[:en:documentation:pandorafms:management_and_operation:12_console_setup#ks1_4|historical database maintenance]]. 
 + 
 +</WRAP> 
 + 
 +<WRAP center round tip 90%>
  
-ヒストリデータベースは、''/usr/bin/pandora_db'' バイナリを使用してデータを転送する Enterprise 版の機能です。加えて[[:ja:documentation:pandorafms:management_and_operation:12_console_setup#ヒストリデータベースメンテナンスオプション|ヒストリデータベースのメンテナンス]]設定を行う必要があります。+ヒストリデータベースは、データの転送にバイナリ ''/usr/bin/pandora_db'' を使用しす。さらに、ヒストリデータベースの保守に関するオプション設定する必要があります。
  
 </WRAP> </WRAP>
  
-[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]+[[ja:documentation:pandorafms:start|Pandora FMS ドキュメント一覧に戻る]]
  
 ===== (OBSOLETE) ===== ===== (OBSOLETE) =====
  • ja/documentation/pandorafms/installation/06_server_management.1722588699.txt.gz
  • 最終更新: 2024/08/02 08:51
  • by junichi