差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
ja:faq:start [2022/06/18 23:07] – [Pandora FMS アップデート] junichi | ja:faq:start [2023/01/31 06:08] – [コマンドラインからの mysql および mysqldump の利用] junichi | ||
---|---|---|---|
行 90: | 行 90: | ||
<code bash> | <code bash> | ||
- | # | + | # |
- | # pingcheck.sh | + | # pingcheck.sh |
- | if [ -z " | + | if [ -z " |
- | | + | then |
- | | + | echo " |
- | | + | echo " " |
- | | + | echo " |
- | | + | echo " " |
- | | + | exit |
- | fi | + | fi |
- | COUNT =$1 | + | COUNT=$1 |
- | | + | TIMEOUT=$2 |
- | IP =$3 | + | IP=$3 |
+ | |||
+ | ping -c $COUNT -W $TIMEOUT $IP 2> / | ||
+ | if [ $? == 0 ] | ||
+ | then | ||
+ | echo 1 | ||
+ | else | ||
+ | echo 0 | ||
+ | fi | ||
- | ping -c $COUNT -W $TIMEOUT $IP 2> / | ||
- | if [ $? == 0 ] | ||
- | then | ||
- | echo 1 | ||
- | else | ||
- | echo 0 | ||
- | fi | ||
</ | </ | ||
行 153: | 行 154: | ||
{{ : | {{ : | ||
- | < | + | Name: '' |
- | Name: PingCheck | + | |
- | Command: / | + | |
- | </code> | + | 名前: '' |
* Finally, we enter the module configuration inside the agent where the issue is taking place, and we add a new Plugin Server Module. After this, we choose the plugin and we set these parameters for the check in the **Plug-in Parameters** | * Finally, we enter the module configuration inside the agent where the issue is taking place, and we add a new Plugin Server Module. After this, we choose the plugin and we set these parameters for the check in the **Plug-in Parameters** | ||
行 319: | 行 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 '' |
- | **mysqldump** にて簡単にデータベースのダンプが取れます。**mysqldump** で取得したダンプは、同じ名前の空の (データが入っていない) データベースへリストアできます。 | + | **mysqldump** にて簡単にデータベースのダンプが取れます。**mysqldump** で取得したダンプは、同じ名前の空の (データが入っていない、通常は '' |
- | バックアップの取得 | + | **First you should create the backup:** |
+ | |||
+ | **最初にバックアップを取得します: | ||
< | < | ||
行 330: | 行 331: | ||
</ | </ | ||
- | バックアップからのリストア | + | **Restore the backup (from scratch): |
+ | |||
+ | **バックアップからリストアします(スクラッチから): | ||
< | < | ||
行 347: | 行 350: | ||
</ | </ | ||
- | 以上で完了です。 | + | If you want to make a complete backup of the system, do not forget to backup the entire ''/ |
+ | |||
+ | システムの完全なバックアップを作成したい場合は、''/ | ||
=== コマンドラインからの mysql および mysqldump の利用 === | === コマンドラインからの mysql および mysqldump の利用 === | ||
行 361: | 行 366: | ||
< | < | ||
mysql -u pandora -D pandora -p | mysql -u pandora -D pandora -p | ||
- | < | ||
</ | </ | ||
+ | |||
+ | //And enter the corresponding password.// | ||
+ | |||
+ | // | ||
SQL のダンプを実行します。 | SQL のダンプを実行します。 | ||
行 369: | 行 377: | ||
< | < | ||
| | ||
- | < | ||
</ | </ | ||
+ | |||
+ | //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 " | ||
+ | * To see if you have information in the event custom fields, execute the following query through the " | ||
+ | |||
+ | * データベースの情報のバックアップは、" | ||
+ | * イベントカスタムフィールドに情報があるかどうかを見るには、" | ||
+ | |||
+ | <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) = '', | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | * 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) = '', | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
==== ウェブサーバ(Apache, | ==== ウェブサーバ(Apache, | ||
行 480: | 行 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? | + | **Q:** I have installed the '' |
- | Q:Linux システムに pandora_agent をインストールしましたが、システムを起動するたびに自動起動したいのですが、どうすればできますか? | + | **Q:** GNU/Linux システムに |
- | A:最初にすべきことは、pandora_agent_daemon を /etc/init.d にコピーすることです。 | + | |
+ | **A:** The first thing you should do is to copy the '' | ||
+ | |||
+ | **A:** 最初にすべきことは、'' | ||
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 を起動する場合は、次を操作するのみです。 | + | その後、システムの実行時に |
< | < | ||
行 498: | 行 541: | ||
ここで ' | ここで ' | ||
- | After, be sure that your pandora_agent_daemon is correctly off when you switch off. | + | After, be sure that your '' |
- | また、電源を切る際には、pandora_agent_daemon も正しく終了することを確認してください。 | + | また、電源を切る際には、'' |
< | < | ||
行 521: | 行 564: | ||
==== Pandora FMS サーバ ==== | ==== Pandora FMS サーバ ==== | ||
- | {{ : | + | {{ : |
=== / | === / | ||
行 531: | 行 574: | ||
< | < | ||
- | perl -e ' | + | perl -e ' |
</ | </ | ||
+ | |||
+ | === サテライトサーバで 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'' | ||
+ | |||
+ | 1.- '' | ||
+ | |||
+ | < | ||
+ | |||
+ | sc.exe config " | ||
+ | |||
+ | </ | ||
+ | |||
+ | 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 '' | ||
+ | |||
+ | なんらかの理由で、Pandora FMS サーバが数分から数時間もサービス停止していた場合、エージェントによって収集されたメトリクスが大量に蓄積され、Pandora FMS で深刻な遅延が発生する可能性があります。 バージョン 765 から、'' | ||
+ | |||
+ | === server_keepalive パラメータの設定 === | ||
+ | |||
+ | * The server process ('' | ||
+ | |||
+ | * サーバプロセス('' | ||
+ | |||
+ | If you have increased the [[: | ||
+ | |||
+ | '' | ||
+ | |||
+ | Increasing the number of server threads can increase the time it takes to start the '' | ||
+ | |||
+ | サーバのスレッド数を増やすと、'' | ||
+ | |||
+ | This happens because if the '' | ||
+ | |||
+ | これは、'' | ||
==== Pandora FMS Enterprise, ライセンス ==== | ==== Pandora FMS Enterprise, ライセンス ==== | ||
行 555: | 行 646: | ||
</ | </ | ||
- | === Pandora FMS への MIB の追加 === | + | |
+ | ==== Simple Network Management Protocol (SNMP) ==== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | === 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? | ||
行 593: | 行 689: | ||
MIB トークン(または同等の設定)からリストを読み取ることに加えて、ロードする(単一の) MIB ファイルを指定します。 この値は、MIBFILES 環境変数によって上書きされることに注意してください。 | MIB トークン(または同等の設定)からリストを読み取ることに加えて、ロードする(単一の) MIB ファイルを指定します。 この値は、MIBFILES 環境変数によって上書きされることに注意してください。 | ||
- | ==== Simple Network Management Protocol (SNMP) ==== | ||
- | |||
- | {{ : | ||
- | === Pandora FMS へ MIB はどう追加すればよいですか? | ||
- | |||
- | **Question: Does anyone knows how to load MIBS in pandora for the SNMP Walk feature? | ||
- | |||
- | **質問:snmpwalk 機能のために Pandora に MIBS をロードするにはどうすれば良いでしょうか? | ||
- | |||
- | 回答: Pandora FMS は SNMP を直接管理しません。 これは、システムによって管理される GNU/Linux Net-SNMP ライブラリに基づいているため、''/ | ||
- | |||
- | **mibdirs DIRLIST** | ||
- | |||
- | This command specifies a list of directories to search for MIB files. This operates in the same way as the '' | ||
- | |||
- | このコマンドは、MIB ファイルを検索するディレクトリのリストを指定します。 これは、'' | ||
- | |||
- | **mibs MIBLIST** | ||
- | |||
- | Specifies a list of MIB modules (not files) that should be loaded. This operates in the same way as the '' | ||
- | |||
- | ロードする必要のある MIB モジュール(ファイルではない)のリストを指定します。 これは、'' | ||
- | |||
- | **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 環境変数によって上書きされることに注意してください。 | ||
=== トラップコンソールから全トラップを削除するにはどうすれば良いですか? | === トラップコンソールから全トラップを削除するにはどうすれば良いですか? | ||
行 634: | 行 702: | ||
</ | </ | ||
- | 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: |
- | トラップコンソールにある | + | トラップコンソールにある |
< | < | ||
- | DELETE FROM ttrap WHERE timestamp <'2010-07-10 00: | + | DELETE FROM ttrap WHERE timestamp <'2020-07-10 00: |
</ | </ |