両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
ja:documentation:pandorafms:installation:04_configuration [2024/02/19 07:25] – [netflowserver] junichi | ja:documentation:pandorafms:installation:04_configuration [2024/03/24 04:49] (現在) – [logserver_threads] junichi |
---|
====== Pandora FMS の設定 ====== | ====== サーバとコンソールの設定 ====== |
| |
{{indexmenu_n>4}} | {{indexmenu_n>4}} |
| |
[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] | [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] |
| |
Pandora FMS には、コンソール、サーバ、データベースの 3つの基本的なコンポーネントがあり、それぞれ正しく動作させるためには設定が必要です。 | Pandora FMS has three essential components that it is essential to configure correctly for a [[:en:documentation:pandorafms:complex_environments_and_optimization:08_optimization#introduction|proper functioning]]: |
| |
<WRAP center round tip 60%> | Pandora FMS には、基本的なコンポーネントがあり、それぞれ[[:ja:documentation:pandorafms:complex_environments_and_optimization:08_optimization#概要|正しく動作させる]]ためには設定が必要です。 |
すでに Pandora FMS をインストール・実行していたり、**[[:ja:quickguides:general_quick_guide#アプライアンス_cd_のインストール|アプライアンス]]** でインストールしている場合でも、より最適な動作のために構成を調整し、修正することを検討してください。 | |
</WRAP> | |
| |
You may get more information about Pandora FMS optimization[[:en:documentation:05_big_environments:08_optimization#optimizing_pandora_fms|in this section]]. In this chapter, we are going to explain the configuration files of the three elements and others which are important for a correct performance of the application components. | * Web console. |
| * PFMS server. |
| * Database. |
| |
Pandora FMS の最適化については、[[:ja:documentation:05_big_environments:08_optimization#optimizing_pandora_fms|こちらの章]] を参照してください。 | * ウェブコンソール |
この章では、これら 3つのコンポーネントの設定について説明します。また、パフォーマンスを維持するために重要な、その他のコンポーネントについても説明します。 | * Pandora FMS サーバ |
| * データベース |
| |
{{ :wiki:pandora_fms-standard_design.png?600 |//Standard Pandora FMS design//}} | This topic explains the configuration files for all three elements, as well as other important elements. |
| |
| このトピックでは、3 つの要素すべての設定ファイルと他の重要な要素について説明します。 |
| |
===== サーバ ===== | ===== サーバ ===== |
Pandora FMS サーバのデフォルトの設定ファイルは、ディレクトリ ''/etc/pandora/'' 以下にある ''pandora_server.conf'' です。 | |
| |
Pandora FMS バージョン 7.0NG 752 以降では、グラフィカルインターフェイスを使用して、Pandora FMS サーバに関連するいくつかの変更を行うことができます。(端末からも Web コンソールからも)プレーンテキストで設定ファイルにアクセスする必要はありません。 | The main configuration of the Pandora FMS server is found in the ''pandora_server.conf'' file, in the default path ''/etc/pandora''. |
| |
**これを行うには、リモート設定を ''pandora_server.conf'' 設定ファイル内で事前に有効にする必要があります**。 [[:ja:documentation:04_using:11_managing_and_administration#サーバ|サーバ表示]]にアクセスし、データサーバ行で有効になっているリモート設定アイコンをクリックする必要があります。 | Pandora FMS サーバの主な設定は、デフォルト パス ''/etc/pandora'' の ''pandora_server.conf'' ファイルにあります。 |
| |
{{ :wiki:servers-manage-servers-pandora-fms-servers-remote-configuration-icon.png?300 }} | ==== 設定ファイルの項目 ==== |
| |
最初のセクション **サーバの機能** で、各サーバの横にあるトークンでサーバを有効または無効にすることができます。 | Pandora FMS の設定ファイルは、UNIX の基本的なプレーンテキストファイルになっています。''#'' が先頭にある行は、使われていない設定やコメントです。Windows で設定を編集する場合は、このフォーマットに対応するエディタを利用してください。UTF-8 以外を扱う場合は、Pandora FMS **[[ja:documentation:pandorafms:management_and_operation:12_console_setup#一般設定|リモートコンフィグのエンコーディング変更(Change remote config encoding)]]** パラメータを有効にしてください。全設定パラメータは以下に示します。 |
| |
{{ :wiki:server_editor_formulario.png }} | <WRAP center round info 60%>See the [[:en:documentation:07_technical_annexes:15_security_architecture|Security Architecture section]] **to ensure the operation** of the entire Pandora FMS system.</WRAP> |
| |
2番目の設定部分では、最適化設定を行う **最適化設定(Optimization settings)** もあります。このセクションでは、タイムアウト時間やサーバ専用のスレッドなどのパラメータを変更できます。 | <WRAP center round info 60%>Pandora FMS システム全体の動作を確認するには、[[:ja:documentation:pandorafms:technical_annexes:15_security_architecture|セキュリティアーキテクチャの章]] を参照してください。</WRAP> |
| === multiprocess === |
| |
そして最後に、他の設定用に予約されたスペース **他のサーバ設定(Other server settings)** があります。このセクションには、Pandora FMS 環境に追加されるエージェントが、作成時に特に指定されていない場合にデフォルトで割り当てられるグループ ID を指定することができます。システムに存在しないエージェント ID のデータを受信した場合にエージェントを自動作成するには、エージェントの自動作成を有効にします。 | <code> |
| # If set to 1, Pandora FMS servers will run in separate processes. |
| multiprocess 0 |
| |
==== 設定ファイルの項目 ==== | </code> |
| |
Pandora FMS の設定ファイルは、UNIX の基本的なプレーンテキストファイルになっています。''#'' が先頭にある行は、使われていない設定やコメントです。Windows で設定を編集する場合は、このフォーマットに対応するエディタを利用してください。UTF-8 以外を扱う場合は、Pandora FMS **[[ja:documentation:04_using:12_console_setup#一般設定|リモートコンフィグのエンコーディング変更(Change remote config encoding)]]** パラメータを有効にしてください。全設定パラメータは以下に示します。 | Disabled by default. If set to 1, Pandora FMS servers will run in separate processes. |
| |
<WRAP center round info 60%>See the [[:en:documentation:07_technical_annexes:15_security_architecture|Security Architecture section]] **to ensure the operation** of the entire Pandora FMS system.</WRAP> | デフォルトでは無効になっています。 1 に設定すると、Pandora FMS サーバは別々のプロセスで実行されます。 |
| |
<WRAP center round info 60%>Pandora FMS システム全体の動作を確認するには、[[:ja:documentation:07_technical_annexes:15_security_architecture|セキュリティアーキテクチャの章]] を参照してください。</WRAP> | |
=== servername === | === servername === |
コンソールに表示される Pandora FMS のサーバ名を設定します。デフォルトではコメントアウトされており、ホスト名が使われます。 | コンソールに表示される Pandora FMS のサーバ名を設定します。デフォルトではコメントアウトされており、ホスト名が使われます。 |
| |
=== snmp_logfile === | === snmp_logfile === |
Pandora FMS の SNMP コンソールログを設定します。デフォルトは、///var/log/pandora/pandora_snmptrap.log// です。[[Pandora:Documentation_ja:SNMP_traps_Monitoring|SNMP コンソール]] に Pandora FMS サーバが処理する前の受け取った全 SNMP トラップがあります。 | |
| [[:en:documentation:pandorafms:monitoring:08_snmp_traps_monitoring|SNMP console]] log by default at: |
| |
| [[:ja:documentation:pandorafms:monitoring:08_snmp_traps_monitoring|SNMP コンソール]] ログはデフォルトで以下にあります。 |
| |
| <file> |
| |
| /var/log/pandora/pandora_snmptrap.log |
| |
| </file> |
| |
=== errorlog_file === | === errorlog_file === |
| |
=== activate_gis === | === activate_gis === |
[[ja:documentation:04_using:10_gis|GIS サーバ機能]]を有効化(1)または無効化(0)します。 | |
| To activate ( ''1'' ) or deactivate ( ''0'' ) server [[:en:documentation:pandorafms:monitoring:20_gis|GIS features]]. |
| |
| [[ja:documentation:pandorafms:monitoring:20_gis|GIS サーバ機能]]を有効化(1)または無効化(0)します。 |
| |
=== location_error === | === location_error === |
''1'' にするとイベント相関サーバを有効にします。''0'' で無効です。(デフォルトは ''1'' です) ''[[:ja:documentation:02_installation:04_configuration#correlationserver|correlationserver]]'' も参照してください。 | ''1'' にするとイベント相関サーバを有効にします。''0'' で無効です。(デフォルトは ''1'' です) ''[[:ja:documentation:02_installation:04_configuration#correlationserver|correlationserver]]'' も参照してください。 |
| |
| === eventserver_threads === |
| |
| {{:wiki:icono-modulo-enterprise.png |Enterprise version.}} It sets the number of threads to be executed in the ''[[#eventserver|eventserver]]'', default value 1. |
| |
| {{:wiki:icono-modulo-enterprise.png |Enterprise 版}} ''[[#eventserver|eventserver]]'' で実行されるスレッドの数を設定します。デフォルト値は 1 です。 |
| |
| <code> |
| # Number of threads for the Event Server (PANDORA FMS ENTERPRISE ONLY). |
| eventserver_threads 1 |
| |
| </code> |
| |
=== event_window === | === event_window === |
| |
</code> | </code> |
| |
| === syslog_whitelist === |
| |
| [[https://pandorafms.com/es/pandora-fms-prices/?o=dwpfms|{{:wiki:icono-modulo-enterprise.png?nolink&23x23 |Enterprise Version}}]]When activating the [[:en:documentation:pandorafms:installation:04_configuration#syslogserver|Syslog server]] , sets the **allowed** logs using regular expression filtering (**regexp**). |
| |
| [[https://pandorafms.com/es/pandora-fms-prices/?o=dwpfms|{{:wiki:icono-modulo-enterprise.png?nolink&23x23 |Enterprise 版}}]] [[:ja:documentation:pandorafms:installation:04_configuration#syslogserver|Syslog サーバ]] を有効化するときに、正規表現フィルタリング (**regexp**) を使用して **許可する** ログを設定します。 |
| |
| <code> |
| |
| # Whitelist regexp filter for the Syslog Server (PANDORA FMS ENTERPRISE ONLY). |
| # syslog_whitelist .* |
| |
| </code> |
| |
| With ''.*'' everything is allowed; see "[[:en:documentation:pandorafms:monitoring:09_log_monitoring#pfms_server_level_filters|PFMS server level filters]]" for more details. |
| |
| ''.*'' を使用すると、すべてが許可されます。 詳細については、[[:ja:documentation:pandorafms:monitoring:09_log_monitoring#pfms_server_level_filters|PFMS サーバ レベルフィルタ]] を参照してください。 |
| |
| === syslog_blacklist === |
| |
| {{:wiki:icono-modulo-enterprise.png?nolink&23x23 |Enterprise Version}} When activating the [ [#syslogserver|Syslog server]] , sets **locked** logs using regular expression filtering (**regexp**). |
| |
| {{:wiki:icono-modulo-enterprise.png?nolink&23x23 |Enterprise 版}} [ [#syslogserver|Syslog サーバ]] を有効化するときに、正規表現フィルタリング (**regexp**) を使用して **ブロックする** ログを設定します。 |
| |
| <code> |
| |
| # Blacklist regexp filter for the Syslog Server (PANDORA FMS ENTERPRISE ONLY). |
| # syslog_blacklist regex |
| |
| </code> |
| |
| See "[[:en:documentation:pandorafms:monitoring:09_log_monitoring#pfms_server_level_filters|PFMS server level filters]]" for more details. |
| |
| より詳細は、[[:ja:documentation:pandorafms:monitoring:09_log_monitoring#pfms_server_level_filters|PFMS サーバ レベルフィルタ]] を参照してください。 |
| |
| === critical_on_error === |
| |
| If set to 1 (the default), when the executions of certain checks fail (not the checks themselves), the modules go into critical. If set to 0, they will end up going into unknown. |
| |
| 1 (デフォルト) に設定すると、(チェック自体ではなく) 特定のチェックの実行が失敗すると、モジュールは障害状態になります。 0 に設定すると、最終的には不明になります。 |
| |
| <code> |
| critical_on_error 1 |
| |
| </code> |
| |
| === logserver === |
| |
| {{:wiki:icono-modulo-enterprise.png |Enterprise version.}} It enables or disables the log server, default value ''0'' (disabled). |
| |
| {{:wiki:icono-modulo-enterprise.png |Enterprise 版}} ログサーバを有効化または無効化します。デフォルトは ''0'' (無効化)です。 |
| |
| <code> |
| # Enable (1) or disable (0) Pandora FMS Log Server (PANDORA FMS ENTERPRISE ONLY). |
| logserver 0 |
| |
| </code> |
| |
| === logserver_threads === |
| |
| {{:wiki:icono-modulo-enterprise.png |Enterprise version.}} |
| |
| {{:wiki:icono-modulo-enterprise.png |Enterprise 版}} |
| |
| It sets the number of threads to be executed in the [[#logserver|logserver]], default value ''1''. |
| |
| [[#logserver|logserver]] で実行されるスレッドの数を設定します。デフォルト値は ''1'' です。 |
| |
| <code> |
| # Number of threads for the Log Server (PANDORA FMS ENTERPRISE ONLY). |
| logserver_threads 1 |
| |
| </code> |
| |
| === too_many_xml === |
| |
| <code> |
| # If greater than 0, generate an event when more than the specified number of XML data files are queued for an agent. |
| too_many_xml 10 |
| |
| </code> |
| |
| Default value: 10. Generates an event in the Web Console if there are more XML files than the specified number waiting to be processed by the PFMS server. |
| |
| デフォルト値: 10。PFMS サーバによる処理を待機している XML ファイルが指定された数よりも多い場合、Web コンソールでイベントを生成します。 |
| |
==== 環境変数 ==== | ==== 環境変数 ==== |
==== Tentacle の設定 ==== | ==== Tentacle の設定 ==== |
| |
<WRAP center round tip 60%> **Tentacle プロトコル** に関する詳細は、[[:ja:documentation:08_technical_reference:09_tentacle|こちらの章]]を参照してください。 </WRAP> | <WRAP center round tip 60%> |
| |
| You may learn more about the **Tentacle protocol** [[:en:documentation:pandorafms:technical_reference:09_tentacle|in this section]]. |
| |
| </WRAP> |
| |
| <WRAP center round tip 60%> |
| |
| **Tentacle プロトコル** に関する詳細は、[[:ja:documentation:pandorafms:technical_reference:09_tentacle|こちらの章]]を参照してください。 |
| |
| </WRAP> |
| |
デフォルトでは、Pandora FMS ソフトウエアエージェントは、データをサーバに送るのに Tentacle プロトコル (IANA [[http://www.iana.org/assignments/port-numbers|http://www.iana.org/assignments/port-numbers]] により、ポート 41121/tcp が割り当てられています) を利用します。エージェントは、ローカル(NFS,SMB)や、SSH、FTP など、他の方法でデータを送るように設定することもできます。もし、Tentacle プロトコルでデータを送りたい場合は、データを受信するための Tentacle サーバを設定する必要があります。デフォルトでは、Pandora FMS サーバをインストールすると、Tentacle サーバも同じマシンにインストールされます。 | デフォルトでは、Pandora FMS ソフトウエアエージェントは、データをサーバに送るのに Tentacle プロトコル (IANA [[http://www.iana.org/assignments/port-numbers|http://www.iana.org/assignments/port-numbers]] により、ポート 41121/tcp が割り当てられています) を利用します。エージェントは、ローカル(NFS,SMB)や、SSH、FTP など、他の方法でデータを送るように設定することもできます。もし、Tentacle プロトコルでデータを送りたい場合は、データを受信するための Tentacle サーバを設定する必要があります。デフォルトでは、Pandora FMS サーバをインストールすると、Tentacle サーバも同じマシンにインストールされます。 |
**TENTACLE_EXT_OPTS** | **TENTACLE_EXT_OPTS** |
| |
You can set up Tentacle to use authentication with [[:en:quickguides:secure_communication_with_tentacle|certificates and/or symmetric password]] | Additional options with which to run the Tentacle server. Here you may configure Tentacle to use authentication with [[:en:documentation:pandorafms:technical_reference:09_tentacle#secure_communication_configuration_with_tentacle|symmetric password or certificates]]. |
| |
Tentacle サーバを実行するときの追加オプションを設定します。[[:ja:quickguides:secure_communication_with_tentacle|証明書やパスワード]] の認証を使うように Tentacle を設定できます。 | Tentacle サーバを実行するときの追加オプションを設定します。[[:ja:documentation:pandorafms:technical_reference:09_tentacle#セキュリティオプション付での_tentacle_設定ガイド|証明書やパスワード]] の認証を使うように Tentacle を設定できます。 |
| |
**MAX_CONECTIONS** | **MAX_CONECTIONS** |
//**以下も参照してください:** // | //**以下も参照してください:** // |
| |
* [[:es:documentation:08_technical_reference:09_tentacle#configuracion_de_comunicacion_segura_con_tentacle|Secure Tentacle configuration]]. | * [[:en:documentation:pandorafms:technical_reference:09_tentacle#secure_communication_configuration_with_tentacle|Tentacle secure configuration]]. |
* [[:es:documentation:08_technical_reference:09_tentacle#compresion_de_datos_en_tentacle|Data compression in Tentacle]]. | * [[:en:documentation:pandorafms:technical_reference:09_tentacle#compresion_de_datos_en_tentacle|Data compression in Tentacle]]. |
| |
* [[:ja:quickguides:secure_communication_with_tentacle|Tentacle の暗号化設定]] | * [[:ja:documentation:pandorafms:technical_reference:09_tentacle#セキュリティオプション付での_tentacle_設定ガイド|Tentacle の暗号化設定]] |
* [[:ja:documentation:08_technical_reference:09_tentacle#compresion_de_datos_en_tentacle|Tentacle でのデータ圧縮]] | * [[:ja:documentation:pandorafms:technical_reference:09_tentacle#tentacle_データ圧縮|Tentacle でのデータ圧縮]] |
| |
==== Pandora ウェブロボットデーモン (PWRD) ==== | ==== Pandora ウェブロボットデーモン (PWRD) ==== |
コピーしたファイルは、次の操作規則に準拠するように編集する必要があります。 | コピーしたファイルは、次の操作規則に準拠するように編集する必要があります。 |
| |
* In the configuration file it should be defined with a unique server name ([[:en:documentation:02_installation:04_configuration#servername|servername]]), it cannot be the same as the main process or another secondary process. Make sure it is **not** empty **nor** [[:en:documentation:01_understanding:03_glossary#commenting_out_or_uncommenting_a_parameter|commented out]]. | * In the configuration file it must be defined with a unique server name ([[:en:documentation:pandorafms:installation:04_configuration#servername|servername]]), it cannot be the same as the main process or another child process. Make sure it is **not** empty **or** [[:en:documentation:pandorafms:introduction:03_glossary#comment_or_uncomment_a_parameter|commented]]. |
* The secondary server must always be ''master 0'', the //master// tasks will **always** be executed by the main server. | * The secondary server must always be ''master 0'', tasks on master will **always** be executed by the primary server. |
* The configuration file must have the extension ''.conf'' and be inside the ''conf.d'' directory. | * The configuration file must have the extension ''.conf'' and be inside the ''conf.d'' directory. |
* Once a secondary server configuration file is defined, the [[:en:documentation:05_big_environments:07_server_management#manual_startup:shutdown_for_pandora_fms_servers|pandora_server]] service will manage both the main server and the secondary ones, starting, stopping or informing about the state of **all** the processes that are configured. | * The rest of the configurations will be defined in the same way as those of a standard [[:en:documentation:pandorafms:installation:04_configuration#elementos_del_fichero_de_configuracion|pandora_server]]. |
| * Once a secondary server configuration file has been defined, the [[:en:documentation:pandorafms:installation:06_server_management#arranque_y_parada_manual_de_los_servidores_de_pandora_fms|pandora_server]] service will manage both the main and secondary servers, starting, stopping or reporting the status of ** all** processes that are configured. |
| |
* 設定ファイルでは、一意のサーバ名 ([[:ja:documentation:02_installation:04_configuration#サーバ名|サーバ名]]) を定義する必要があります。メイン プロセスまたは別のセカンダリプロセスと同じにすることはできません。 **空でない**ことおよび、[[:ja:documentation:01_understanding:03_glossary#パラメータのコメントアウトとアンコメント|コメントアウト]] **されていないこと**を確認してください。 | * 設定ファイルでは、一意のサーバ名 ([[:ja:documentation:pandorafms:installation:04_configuration#サーバ名|サーバ名]]) を定義する必要があります。メイン プロセスまたは別のセカンダリプロセスと同じにすることはできません。 **空でない**ことおよび、[[:ja:documentation:pandorafms:introduction:03_glossary#パラメータのコメントアウトとアンコメント|コメントアウト]] **されていないこと**を確認してください。 |
* セカンダリサーバは常に ''master 0'' でなければなりません。//マスター// タスクは、**常に**メインサーバによって実行されます。 | * セカンダリサーバは常に ''master 0'' でなければなりません。//マスター// タスクは、**常に**メインサーバによって実行されます。 |
* 設定ファイルの拡張子は ''.conf'' で、''conf.d'' ディレクトリ内にある必要があります。 | * 設定ファイルの拡張子は ''.conf'' で、''conf.d'' ディレクトリ内にある必要があります。 |
* セカンダリサーバの設定ファイルが定義されると、[[:ja:documentation:05_big_environments:07_server_management#pandora_fms_サーバの手動起動停止|pandora_server]] サービスがメインサーバとセカンダリサーバの両方を管理し、設定された**すべて**のプロセスの起動、停止、状態表示を行います。 | * セカンダリサーバの設定ファイルが定義されると、[[:ja:documentation:pandorafms:installation:06_server_management#pandora_fms_サーバの手動起動停止|pandora_server]] サービスがメインサーバとセカンダリサーバの両方を管理し、設定された**すべて**のプロセスの起動、停止、状態表示を行います。 |
| |
{{ :wiki:pfms-pandora_server_status.png }} | {{ :wiki:pfms-pandora_server_status.png }} |