ja:faq:start

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:faq:start [2022/08/26 22:12] – [エージェントとの接続は正しいのに、二値 ICMP ネットワークモジュールが障害状態を示している] junichija:faq:start [2023/01/31 06:12] (現在) – [server_keepalive パラメータの設定] junichi
行 318: 行 318:
 === データベースのバックアップはどうやって取れますか? === === データベースのバックアップはどうやって取れますか? ===
  
-A simple **mysqldump** command execution will dump your database contents. A blank database with the same name (without data), should be enough to receive the dump generated by the **mysqldump** command.+A simple **mysqldump** command execution will dump your database contents. A blank database with the same name (without data, generally named ''pandora''), should be enough to receive the dump generated by the **mysqldump** command.
  
-**mysqldump** にて簡単にデータベースのダンプが取れます。**mysqldump** で取得したダンプは、同じ名前の空の (データが入っていない) データベースへリストアできます。+**mysqldump** にて簡単にデータベースのダンプが取れます。**mysqldump** で取得したダンプは、同じ名前の空の (データが入っていない、通常は ''pandora'' という名前の) データベースへリストアできます。
  
-バックアップ取得+**First you should create the backup:** 
 + 
 +**最初にバックアップ取得します:**
  
 <code> <code>
行 329: 行 331:
 </code> </code>
  
-バックアップからリストア+**Restore the backup (from scratch):** 
 + 
 +**バックアップからリストアします(スクラッチから):**
  
 <code> <code>
行 346: 行 350:
 </code> </code>
  
-以上で+If you want to make a complete backup of the system, do not forget to backup the entire ''/etc/pandora'' directory to save the configuration information of the local agents and servers. 
 + 
 +システムの全なバックアップを作成したい場合は、''/etc/pandora'' ディレクトリ全体をバックアップして、ローカルエージェントとサーバの設定情報を保存することを忘れないください
  
 === コマンドラインからの mysql および mysqldump の利用 === === コマンドラインからの mysql および mysqldump の利用 ===
行 360: 行 366:
 <code> <code>
  mysql -u pandora -D pandora -p  mysql -u pandora -D pandora -p
- <enter pass in console> 
  
 </code> </code>
 +
 +//And enter the corresponding password.//
 +
 +//対応するパスワードを入力します。//
  
 SQL のダンプを実行します。 SQL のダンプを実行します。
行 368: 行 377:
 <code> <code>
  mysqldump -u pandora -p pandora> file  mysqldump -u pandora -p pandora> file
- <コンソールのパスワードを入力します> 
  
 </code> </code>
 +
 +//And enter the corresponding password.//
 +
 +//対応するパスワードを入力します。//
 +
 +=== イベントに Base64 形式のカスタムフィールドがあります。それらをプレーンテキストに変換する方法を教えてください。===
 +
 +From version 761, event custom fields are saved in plain text but in previous versions they were saved in Base 64.
 +
 +バージョン 761 から、イベントカスタムフィールドはプレーンテキストで保存されますが、以前のバージョンでは Base64 で保存されていました。
 +
 +  * To backup the information contained in the database see "[[:en:documentation:07_technical_annexes:07_backup_and_restore_procedures#database_backup|Backup and recovery procedures]]".
 +  * To see if you have information in the event custom fields, execute the following query through the "[[:en:documentation:04_using:11_managing_and_administration#db_interface|DB Interface]]":
 +
 +  * データベースの情報のバックアップは、"[[:ja:documentation:07_technical_annexes:07_backup_and_restore_procedures#データベースバックアップ|バックアップとリカバリ手順]]" を参照してください。
 +  * イベントカスタムフィールドに情報があるかどうかを見るには、"[[:ja:documentation:04_using:11_managing_and_administration#データベースインタフェース|DB インタフェース]]" を通して、次のクエリを実行します。
 +
 +<code sql>
 +SELECT id_evento, custom_data FROM tevento WHERE IF(CONVERT(FROM_BASE64(custom_data) USING utf8mb4) IS NULL, TRUE, IF(CONVERT(FROM_BASE64(custom_data) USING utf8mb4) = '', TRUE, FALSE)) = FALSE;
 +
 +
 +</code>
 +
 +  * If the previous query is positive, to convert them to plain text use:
 +
 +  * 上記のクエリ結果が TRUE の場合、それらをプレーンテキストに変換するには次を実行します。
 +
 +<code sql>
 +UPDATE tevento SET custom_data = CONVERT(FROM_BASE64(custom_data) USING utf8mb4) WHERE IF(CONVERT(FROM_BASE64(custom_data) USING utf8mb4) IS NULL, TRUE, IF(CONVERT(FROM_BASE64(custom_data) USING utf8mb4) = '', TRUE, FALSE)) = FALSE;
 +
 +
 +</code>
 +
  
 ==== ウェブサーバ(Apache, Nginx) および Pandora FMS コンソール ==== ==== ウェブサーバ(Apache, Nginx) および Pandora FMS コンソール ====
行 479: 行 520:
 === システム起動時に Pandora FMS エージェントを起動するには? === === システム起動時に Pandora FMS エージェントを起動するには? ===
  
-Q: I have installed the pandora_agent in my Linux system and I want it to run every time that I start the system. How can I do it automatically? A: The first thing you should do is to copy the pandora_agent_daemon at/etc/init.d+**Q:** I have installed the ''pandora_agent'' in my GNU/Linux system and I want it to run every time that I start the system. How can I do it automatically?
  
-QLinux システムに pandora_agent をインストールしましたが、システムを起動するたびに自動起動したいのですが、どうすればできますか? +**Q:** GNU/Linux システムに ''pandora_agent'' をインストールしましたが、システムを起動するたびに自動起動したいのですが、どうすればできますか? 
-A最初にすべきことは、pandora_agent_daemon を /etc/init.d にコピーすることです。 + 
 +**A:** The first thing you should do is to copy the ''pandora_agent_daemon'' at ''/etc/init.d''
 + 
 +**A:** 最初にすべきことは、''pandora_agent_daemon'' を ''/etc/init.d'' にコピーすることです。 
  
 After, if you want that the pandora_agent_daemon to start when running your system, you'll only need this: After, if you want that the pandora_agent_daemon to start when running your system, you'll only need this:
  
-その後、システムの実行時に pandora_agent_daemon を起動する場合は、次を操作するのみです。 +その後、システムの実行時に ''pandora_agent_daemon'' を起動する場合は、次を操作するのみです。 
  
 <code> <code>
行 497: 行 541:
 ここで 'X' は、起動時の run レベルです。 ここで 'X' は、起動時の run レベルです。
  
-After, be sure that your pandora_agent_daemon is correctly off when you switch off.+After, be sure that your ''pandora_agent_daemon'' is correctly off when you switch off.
  
-また、電源を切る際には、pandora_agent_daemon も正しく終了することを確認してください。+また、電源を切る際には、''pandora_agent_daemon'' も正しく終了することを確認してください。
  
 <code> <code>
行 520: 行 564:
 ==== Pandora FMS サーバ ==== ==== Pandora FMS サーバ ====
  
-{{  :wiki:pfms-pandora-fms-server.png  }}+{{  :wiki:pfms-pandora-fms-server.png?nolink&  }}
  
 === /var/spool/pandora/data_in ディレクトリに数百万の .data ファイルがありますが、どうすればそれらを削除できますか? === === /var/spool/pandora/data_in ディレクトリに数百万の .data ファイルがありますが、どうすればそれらを削除できますか? ===
行 530: 行 574:
 <code> <code>
  
-perl -e 'for(<*>){((stat)[[9|]]<(unlink))}'+perl -e 'for(<*>){((stat)[9]<(unlink))}'
  
 </code> </code>
 +
 +=== サテライトサーバで WMI モジュールが動作しません ===
 +
 +On some Windows® computers, for security reasons, if we run the Satellite Server service as Local User, we may find that the WMI modules do not run correctly.
 +
 +一部の Windows® コンピュータでは、セキュリティ上の理由から、サテライトサーバサービスをローカルユーザとして実行すると、WMI モジュールが正しく実行されないことがあります。
 +
 +To avoid this problem, the service must be configured to run with Administrator user permissions. There are two ways to do this:
 +
 +この問題を回避するには、管理者ユーザ権限で実行するようにサービスを構成する必要があります。 これを行うには、次の 2 つの方法があります。
 +
 +1.- From''cmd.exe'' with this command:
 +
 +1.- ''cmd.exe'' にて以下のコマンドを実行:
 +
 +<code>
 +
 +sc.exe config "SATELLITESRV" obj= "DOMAIN\Administrador" password= "password"
 +
 +</code>
 +
 +2.- Or from **Services.msc** → Secondary mouse button on service **SATELLITESRV** → **Properties** → **Login** and select the Administrator user for execution.
 +
 +2.- または、**Services.msc** → **SATELLITESRV** サービス上でマウスを右クリック → **プロパティ** → **Login** に行き、管理者として実行を選択します。
 +
 +=== エージェントから受信した大量のデータの処理 ===
 +
 +It could happen that for any reason the PFMS server has been out of service for minutes, or even hours. When this happens, the metrics collected by the agents could accumulate in great quantity, which could cause severe delays in Pandora FMS. From version 765 you could set the ''[[:en:documentation:02_installation:04_configuration#dataserver_smart_queue|dataserver_smart_queue]]'' token to the value of 1 and thus activate the special data processing mode.
 +
 +なんらかの理由で、Pandora FMS サーバが数分から数時間もサービス停止していた場合、エージェントによって収集されたメトリクスが大量に蓄積され、Pandora FMS で深刻な遅延が発生する可能性があります。 バージョン 765 から、''[[:ja:documentation:02_installation:04_configuration#dataserver_smart_queue|dataserver_smart_queue]]'' トークンの値を 1 に設定して、特別なデータ処理モードを有効にすることができます。
 +
 +=== server_keepalive パラメータの設定 ===
 +
 +  * The server process (''pandora_server'') restarts in loop every few minutes/seconds, **what could be the problem?**
 +
 +  * サーバプロセス(''pandora_server'')が数分/数秒ごとに再起動します。**何が問題ですか?**
 +
 +If you have increased the [[:en:documentation:02_installation:04_configuration#dataserver_threads|threads of some server]] in the ''pandora_server.conf''  file, check if you have increased the ''[[:es:documentation:02_installation:04_configuration#server_keepalive|server_keepalive]]'' parameter accordingly.
 +
 +''pandora_server.conf'' ファイルで [[:ja:documentation:02_installation:04_configuration#dataserver_threads|一部のサーバのスレッド]] を増やした場合は、''[[:ja:documentation: 02_installation:04_configuration#server_keepalive|server_keepalive]]'' パラメーターを適宜変更します。
 +
 +Increasing the number of server threads can increase the time it takes to start the ''pandora_server''  process completely (depending on the hardware used), so you may have to increase the ''server_keepalive''  parameter to adjust it to this startup time.
 +
 +サーバのスレッド数を増やすと、''pandora_server'' プロセスを完全に開始するのにかかる時間が長くなる可能性があります(使用するハードウェアによって異なります)。そのため、''server_keepalive'' パラメータを増やして、この起動時間に合わせて調整する必要がある場合があります。
 +
 +This happens because if the ''pandora_server''  complete startup time is longer than the one configured in the ''server_keepalive''  parameter, the ''pandora_ha''  won't detect the ''pandora_server''  process as active, //and it will be this itself the one that tries to restart it, forming this way a restart loop.//
 +
 +これは、''pandora_server'' の完全な起動時間が ''server_keepalive'' パラメータで設定された時間より長い場合、''pandora_ha'' が ''pandora_server'' プロセスが稼働していると認識しないためです。 // そして、''pandora_ha'' が ''pandora_server'' プロセスの再起動を試み、再起動ループが発生します。//
 +
 +=== CentOS 7 上の Pandora FMS オープンソース版で "Thread::Semaphore" というエラーが表示されますが、どういう意味でしょうか? ===
 +
 +In version 768 this PFMS Open server dependency is required. Run with the aproppriate permissions:
 +
 +Pandora FMS バージョン 768 のオープンソース版では追加の依存ファイルが必要です。適切な権限で以下を実行します。
 +
 +<code>
 +yum install -y cpanminus
 +cpanm -i Thread::Semaphore
 +
 +</code>
 +
 +You may install and execute an additional dependency that checks the library and may take a few minutes to finish.
 +
 +ライブラリをチェックする追加の依存ファイルがインストールされる場合があり、完了するまでに数分かかることがあります。
  
 ==== Pandora FMS Enterprise, ライセンス ==== ==== Pandora FMS Enterprise, ライセンス ====
行 554: 行 662:
 </code> </code>
  
-=== Pandora FMS への MIB 追加 ===+ 
 +==== Simple Network Management Protocol (SNMP) ==== 
 + 
 +{{  :wiki:pfms-snmp-trap-monitoring.png  }} 
 + 
 +=== Pandora FMS へ MIB はどう追加すればよいですか? ===
  
 **Question: Does anyone know how to load HP and/or Compaq MIBs onto pandora for the SNMP Walk functionality? ** **Question: Does anyone know how to load HP and/or Compaq MIBs onto pandora for the SNMP Walk functionality? **
行 592: 行 705:
 MIB トークン(または同等の設定)からリストを読み取ることに加えて、ロードする(単一の) MIB ファイルを指定します。 この値は、MIBFILES 環境変数によって上書きされることに注意してください。 MIB トークン(または同等の設定)からリストを読み取ることに加えて、ロードする(単一の) MIB ファイルを指定します。 この値は、MIBFILES 環境変数によって上書きされることに注意してください。
  
-==== Simple Network Management Protocol (SNMP) ==== 
- 
-{{  :wiki:pfms-snmp-trap-monitoring.png  }} 
-=== Pandora FMS へ MIB はどう追加すればよいですか? === 
- 
-**Question: Does anyone knows how to load MIBS in pandora for the SNMP Walk feature?**  Answer: Pandora FMS does not manage SNMP directly. It is based on GNU/Linux Net-SNMP libraries that are managed by systems,so edit ''/etc/snmp/snmp.conf''  to define MIB loading.You should configure the GNU/Linux system which runs PandoraFMS and add the MIBS file to the ''/etc/snmp/snmp.conf''  file(and restart Apache web server) These are the directives ''/etc/snmp/snmp.conf''  for the MIB management: 
- 
-**質問:snmpwalk 機能のために Pandora に MIBS をロードするにはどうすれば良いでしょうか?** 
- 
-回答: Pandora FMS は SNMP を直接管理しません。 これは、システムによって管理される GNU/Linux Net-SNMP ライブラリに基づいているため、''/etc/snmp/snmp.conf'' を編集してMIBの読み込みを定義します。Pandora FMS を実行する GNU/Linux システムを設定し、MIB ファイルを ''/etc/snmp/snmp.conf'' ファイルに追加します(そして Apache Web サーバを再起動します)。MIB 管理のためのディレクティブが ''/etc/snmp/snmp.conf'' にあります。 
- 
-**mibdirs DIRLIST** 
- 
-This command specifies a list of directories to search for MIB files. This operates in the same way as the ''-M''  option (see snmpcmd for further details). Note that this value can be overridden by the MIBDIRS environment variable, and the ''-M''  option. 
- 
-このコマンドは、MIB ファイルを検索するディレクトリのリストを指定します。 これは、''-M'' オプションと同じように動作します(詳細については、snmpcmd を参照してください)。 この値は、MIBDIRS 環境変数および ''-M'' オプションによって上書きされることに注意してください。 
- 
-**mibs MIBLIST** 
- 
-Specifies a list of MIB modules (not files) that should be loaded. This operates in the same way as the ''-M''  option (see snmpcmd for details). Note that this list can be overridden by the MIBS environment variable, and the ''-M''  option. 
- 
-ロードする必要のある MIB モジュール(ファイルではない)のリストを指定します。 これは、''-M'' オプションと同じように動作します(詳細については、snmpcmd を参照してください)。 このリストは、MIBS 環境変数および ''-M'' オプションによって上書きされることに注意してください。 
- 
-**mibfile FILE** 
- 
-Specifies a (single) MIB file to load, in addition to the list read from the MIBS token (or equivalent configuration). Note that this value can be overridden by the MIBFILES environment variable. 
- 
-MIBS トークン(または同等の設定)から読み取られたリストに加えて、ロードする(単一の)MIB ファイルを指定します。 この値は、MIBFILES 環境変数によって上書きされることに注意してください。 
  
 === トラップコンソールから全トラップを削除するにはどうすれば良いですか? === === トラップコンソールから全トラップを削除するにはどうすれば良いですか? ===
行 633: 行 718:
 </code> </code>
  
-To delete all the traps previous to July 10 2010 that are in the traps console, you should execute, from the DB Interface extension, the following SQL sentence:+To delete all the traps previous to July 10, 2020 that are in the traps console, you should execute, from the DB Interface extension, the following SQL sentence:
  
-トラップコンソールにある 2010年7月10日より前のすべてのトラップを削除するには、DB インターフェイス拡張機能から次のSQL文を実行する必要があります。+トラップコンソールにある 2020年7月10日より前のすべてのトラップを削除するには、DB インターフェイス拡張機能から次のSQL文を実行する必要があります。
  
 <code> <code>
-DELETE FROM ttrap WHERE timestamp <'2010-07-10 00:00:00';+DELETE FROM ttrap WHERE timestamp <'2020-07-10 00:00:00';
  
 </code> </code>
  • ja/faq/start.1661551935.txt.gz
  • 最終更新: 2022/08/26 22:12
  • by junichi