====== Pandora FMS エージェントのインストール ====== {{indexmenu_n>32}} [[:ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] For the online installation of the Pandora FMS Software Agent, see the section "[[:en:documentation:pandorafms:installation:01_installing#online_installation_of_pandora_fms_software_agent|Online installation of Pandora FMS Software Agent]]". Pandora FMS ソフトウエアエージェントのオンラインインストールは、"[[:ja:documentation:pandorafms:installation:01_installing#pandora_fms_ソフトウエアエージェントのオンラインインストール|Pandora FMS ソフトウエアエージェントのオンラインインストール]]" を参照してください。 Keep in mind that in order to encrypt communications through the Tentacle protocol between the software agents and their respective PFMS servers, it will be necessary to previously have SSL certificates and keys. Visit the section "[[:en:documentation:pandorafms:technical_reference:09_tentacle#secure_configuration_of_tentacle|Secure configuration of Tentacle]]" in the Tentacle protocol technical reference. ソフトウェアエージェントと対応する Pandora FMS サーバ間の Tentacle プロトコルを介した通信を暗号化するには、SSL 証明書と鍵が必要であることに注意してください。 Tentacle プロトコルテクニカルリファレンスの「[[:ja:documentation:pandorafms:technical_reference:09_tentacle#通信の暗号化|通信の暗号化]]」の章も参照してください。 ===== エージェントの条件 ===== The Agent can run on any computer with the minimum required operating system, any of the following are valid: リモートエージェントは、最低限の環境のオペレーティングシステムが動作している機器で実行可能です。 ^Component ^Operating System | |Pandora Agent 4.0 or later |RedHat Enterprise (RHEL) 6.x and 8. \\ Fedora 34. \\ CentOS 6.x, 7 and 8. \\ AlmaLinux. \\ SLES 11 SP1 or later. \\ OpenSUSE 11.x or later. \\ Debian 5.x or later. \\ Ubuntu Server or Desktop version 11 or later. \\ Linux Mint. \\ Elementary OS. \\ Manjaro. HPUX B.11.11 or later, with Perl 5.8. \\ AIX 4.3.3 or later, with Perl 5.8. \\ AIX 7.1 and 7.2. \\ BSD Systems (NetBSD, OpenBSD, FreeBSD), with Perl 5.8. \\ MacOS X 10.6 or later. \\ Solaris 8 or later, with Perl 5.8. \\ Windows NT4 (see special notes for this version). \\ Windows XP. \\ Windows 2000. \\ Windows 2003. \\ Windows 2008. \\ Windows 7. \\ Windows 8. \\ Windows 10. \\ Windows 11. \\ Windows 2012. \\ Windows server 2016. \\ Windows server 2019. | |Pandora Android Agent 2.0 or later |Android 6 or later | |Pandora Embedded Agent 4.0 or later |Embedded devices, compilation required | ^コンポーネント ^OS | |Pandora Agent 4.0 以上 |RedHat Enterprise (RHEL) 6.x および 8. \\ Fedora 34. \\ CentOS 6.x, 7 および 8. \\ AlmaLinux. \\ SLES 11 SP1 以上 \\ OpenSUSE 11.x 以上 \\ Debian 5.x 以上 \\ Ubuntu Server または Desktop version 11 以上 \\ Linux Mint. \\ Elementary OS. \\ Manjaro. HPUX B.11.11 以上で Perl 5.8 以上 \\ AIX 4.3.3 以上で Perl 5.8 以上 \\ AIX 7.1 および 7.2. \\ BSD Systems (NetBSD, OpenBSD, FreeBSD), Perl 5.8 以上が必要 \\ MacOS X 10.6 以上 \\ Solaris 8 以上で Perl 5.8 以上 \\ Windows NT4 (このバージョンの注意事項を参照) \\ Windows XP. \\ Windows 2000. \\ Windows 2003. \\ Windows 2008. \\ Windows 7. \\ Windows 8. \\ Windows 10. \\ Windows 11. \\ Windows 2012. \\ Windows server 2016. \\ Windows server 2019. | |Pandora Android Agent 2.0 以降 |Android 6 以上 | |Pandora Embedded Agent 4.0 以降 |組み込みデバイス、コンパイルが必要 | There is a special agent for Windows NT, which is basically the Unix agent compiled for Windows, although the performance is much lower than a native Windows agent and the native API access functionalities are not available. present. Windows NT 用には、Unix エージェントを Windows 向けにコンパイルした特別なエージェントがあります。ただし、Windows ネイティブのエージェントよりパフォーマンスが低く、ネイティブの API アクセス機能がありません。 In addition, in UNIX environments, the following must be installed: UNIX 環境では、以下がインストールされている必要があります。 * **Perl 5.8** or higher * It will also be necessary to install the following dependencies: * **Perl 5.8** またはそれ以上 * 以下の依存パッケージをインストール必要があります perl-YAML-Tiny-1.73-2 perl-Sys-Syslog unzip * Configure **logrotate**: * **logrotate** の設定: cat> /etc/logrotate.d/pandora_agent < chmod 0644 /etc/logrotate.d/pandora_agent ===== CentOS 8 / Rocky Linux / AlmaLinux へのエージェントインストール ===== Installation of dependencies: 依存ファイルのインストール: yum install dnf-plugins-core -y yum config-manager --set-enabled powertools -y yum install -y perl-YAML-Tiny perl-Sys-Syslog unzip If you are going to use the option [[:es:documentation:02_installation:05_configuration_agents#server_ssl|server_ssl]] install the following dependencies, enter in the terminal: [[:ja:documentation:02_installation:05_configuration_agents#server_ssl|server_ssl]] オプションを利用する場合は、次のように依存ファイルをインストールします。 yum install perl-IO-Socket-SSL -y Agent Installation: エージェントインストール: yum install -y https://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm ===== CentOS 7 へのエージェントインストール ===== Installation of dependencies: 依存ファイルのインストール: yum install dnf-plugins-core -y yum install -y perl-YAML-Tiny perl-Sys-Syslog unzip If you are going to use the option [[:es:documentation:02_installation:05_configuration_agents#server_ssl|server_ssl]] install the following dependencies, enter in the terminal: [[:ja:documentation:02_installation:05_configuration_agents#server_ssl|server_ssl]] オプションを利用する場合は、次のように依存ファイルをインストールします。 yum install perl-IO-Socket-SSL -y Agent installation: エージェントインストール: yum install -y https://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm ===== Ubuntu Server 22.04 へのエージェントインストール ===== Install the agent: エージェントインストール: apt update apt install -y perl coreutils wget curl unzip procps python3 python3-pip wget http://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz tar xvzf pandorafms_agent_linux-7.0NG.tar.gz cd unix ./pandora_agent_installer --install cp -a tentacle_client /usr/local/bin/ Delete the ''unix'' directory. ''unix'' ディレクトリを削除します。 If you are going to use the option [[:es:documentation:02_installation:05_configuration_agents#server_ssl|server_ssl]] install the following dependencies, enter in the terminal: [[:ja:documentation:02_installation:05_configuration_agents#server_ssl|server_ssl]] オプションを利用する場合は、次のように依存ファイルをインストールします。 apt install libio-socket-ssl-perl -y Agent Configuration: エージェント設定: sed -i "s/^remote_config.*$/remote_config 1/g" $PANDORA_AGENT_CONF /etc/init.d/pandora_agent_daemon start systemctl enable pandora_agent_daemon ===== tar ボールからのエージェントインストール ===== This version of the agent is ready to be installed on any Unix/Linux/macOS system. このパッケージは、任意の Unix/Linux/MAC OS システムへインストールするのに使えます。 [[https://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz|https://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz]] The agent does not require compilation or preparation, once you have downloaded the agent in ''.tar.gz'' format: エージェントはコンパイルの必要はありません。エージェントの tar.gz ファイルをダウンロードしたら、次のようにします。 1. Elevate privileges to root. You are solely responsible for said key. 1. root 権限を取得します。 su - 2. Copy to ''/tmp'', change to that directory, and run: 2. ファイルを /tmp 以下に展開し、インストーラを実行します。 tar xvzf pandorafms_agent_linux-7.0NG.tar.gz cd unix ./pandora_agent_installer --install 3. Manually start the Agent: 3. エージェントを手動で起動します。 /etc/init.d/pandora_agent_daemon start ==== エージェントのカスタムインストール ==== The Agent can be installed in a directory defined by the user in an integral way, this means that all the agent files will be put in that directory: logs, configuration files, binaries, help pages **man**, etc. エージェントは、完全にカスタムなディレクトリにインストールすることができます。このカスタムディレクトリに、エージェントの設定ファイル、ログファイル、プラグインや **man** ページの全てが入ります。 To use that method, just run like the following example: カスタムディレクトリを指定するには、次のように実行します。 ./pandora_agent_installer --install /opt/pandora The only file that Pandora FMS will create outside that directory defined by the user, is the agent launcher in ''/etc/init.d/pandora_agent_daemon'' (or equivalent in other Unix systems), and the link in the directory of the system boot level, for example ''/etc/rc.d/rc2.d/S90pandora_agent_daemon''. 指定したディレクトリ以外に作成されるファイルは、起動スクリプトの ''/etc/init.d/pandora_agent_daemon'' (UNIX の種類よって異なります) および、''/etc/rc.d/rc2.d/S90pandora_agent_daemon'' 等のリンクファイルのみとなります。 In addition, you can configure the installation so that instead of running the Agent as root, it can be run as another user. For example, for the Agent to run with the user Pandora, it would be: また、root 以外のユーザでエージェントを実行するようにインストールすることもできます。たとえば、pandora ユーザで実行する場合は、次のようにインストールします。 ./pandora_agent_installer --install /home/pandora pandora When a custom user is specified, the Agent must be installed in a custom location where the user has write permissions (''/home/pandora'' in the previous example). カスタムユーザを指定した場合は、ユーザに書き込み権限があるディレクトリを指定してインストールする必要があります(上記の例では ''/home/pandora'')。 The user **pandora** is disabled by default, you must enable it by putting a valid shell in ''/etc/passwd'' if you want to use it to run the agent with that user. ユーザ **pandora** は、セキュリティ上の理由によりほとんどの場合デフォルトでは無効化されています。エージェントの実行に pandora ユーザを利用したい場合は、''/etc/passwd'' ファイルで有効なシェルを設定する必要があります。 For users running **MAC OS X version 10.11** or higher (El Capitan or newer): Apple has added a new layer of security to OS X. They are gone some root privileges. When installing the Pandora FMS Agent it will appear as a restricted process. Only restricted processes that are signed by Apple will be able to modify these files. However, you can disable this security by booting into recovery mode and disabling it in a terminal by running: ''csrutil disable''. **OS X 10.11** またはそれ以上の場合: Apple により OS X に新たなセキュリティレイヤが追加されました。これにより root からいくつかの権限が外されています。Pandora エージェントのインストール時に制限されたプロセスと表示されます。Apple によって承認されたプロセスでのみファイルの編集ができます。このセキュリティシステムは、リカバリモードで起動したときに、ターミナルで ''csrutil disable'' を実行することにより無効化できます。 ===== NetBSD および FreeBSD へのエージェントインストール ===== The location of the files and the structure of the init script are different compared to Linux. ファイルの場所と起動スクリプトは Linux とは異なります。 [[https://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz|https://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar. gz]] The peculiarities of the installation on FreeBSD would be the following: FreeBSD へのエージェントインストールは次の通りです。 1. Acquire root permissions 1. root 権限を取得します。 su - 2. Copy the downloaded file to ''/tmp'' and once inside ''/tmp'' run: 2. ファイルを ''/tmp'' 以下に展開し、インストーラを実行します。 tar xvzf pandorafms_agent_linux-7.0NG.tar.gz unix cd ./pandora_agent_installer --install After installation, add the following line to ''/etc/rc.conf.'' インストール後、以下の行を ''/etc/rc.conf'' に追加する必要があります。 pandora_agent_enable="YES" To enable the Pandora FMS agent, these settings are needed, otherwise the process will not start. Pandora エージェントを有効化するにはこの設定が必要です。これを行わないとプロセスが自動起動しません。 If you want to start the agent manually, run this: エージェントを手動で起動する場合は、次のように実行します。 /usr/local/etc/rc.d/pandora_agent start FreeBSD は、Pandora エージェントのほとんどのファイルが /usr/local 以下にインストールされます。 Agent: エージェント: /usr/local/bin/pandora_agent boot script: 起動スクリプト: /usr/local/etc/rc.d/pandora_agent Configuration file: 設定ファイル: /usr/local/etc/pandora/pandora_agent.conf Plugins: プラグイン: /usr/local/share/pandora_agent/plugins/* Helps **man**: **man** ファイル: /usr/local/man/man1/* Others: The ''data_in'' and ''log'' directories are the same as in GNU/Linux. その他: ''data_in'' および ''log'' ディレクトリは、GNU/Linux と同じです。 ===== Windows へのエージェントインストール ===== The agent is delivered as [[https://firefly.pandorafms.com/pandorafms/latest/Windows/|a self-installer in executable format]] ( ''.exe'' ). To install Pandora FMS agent in MS Windows® download and execute it. エージェントは、[[https://firefly.pandorafms.com/pandorafms/latest/Windows/|実行形式]] ( ''.exe'' ) のインストーラとして提供しています。基本的なインストールは、各ステップでオプションに答えるだけです。 [[https://pandorafms.com/en/downloads-pandora-fms/|https://pandorafms.com/en/downloads-pandora-fms/]] The installer will guide you through the necessary steps in the language you select. The following example shows the installation for Windows 10®. If you are running MS Windows® as a standard user you will need Administrator permissions, enter them when running the installer. インストーラーは、選択した言語で必要な手順を案内します。 次の例は、Windows 10® でのインストールを示しています。 MS Windows® を標準ユーザとして実行している場合は、管理者権限が必要になります。インストーラーの実行時に管理者のパスワードを入力してください。 [[:wiki:pfms-software_agent-ms_windows_.png?id=en%3Adocumentation%3Apandorafms%3Atechnical_annexes%3A32_pfms_install_software_agent&media=wiki:pfms-software_agent-ms_windows_.png|{{ :wiki:pfms-software_agent-ms_windows_.png }}]] Select the language: 言語を選択します。 {{ :wiki:pandora_agent_3.0_rc3_install_windows_01.png }} Follow the installer steps: インストーラのステップに従います。 {{ :wiki:pandora_agent_3.0_rc3_install_windows_021.png }} Accept the license terms and click **Next**: ライセンス条項に同意し、**Next** をクリックします。 {{ :wiki:pandora_agent_3.0_rc3_install_windows_031.png }} Select the path where the Pandora FMS agent will be installed, by default it is installed in: ''%ProgramFiles%\pandora_agent''), you can change it by clicking **Browse…**. Then click **Next**: Pandora FMS エージェントをインストールするパスを選択します。デフォルトでは ''%ProgramFiles%\pandora_agent'' です。**Browse..** をクリックすると変更できます。次に **Next** をクリックします。 {{ :wiki:pandora_agent_3.0_rc3_install_windows_04.png }} Wait for the files to be copied. ファイルがコピーされるのを待ちます。 {{ :wiki:pandora_agent_3.0_rc3_install_windows_061.png }} Configure the data for the agent as the IP address (or name) of the Pandora FMS server that will receive the Agent data. To be able to change other parameters, such as changing the name of the agent (by default it takes the value of the hostname of the machine) or the path of the temporary files, you will have to manually edit the agent configuration. エージェントからのデータを受け取る Pandora FMS サーバの IP アドレス(または名前)を設定します。 エージェント名(デフォルトではマシンのホスト名が使われます)やテンポラリファイルのパスなど、その他パラメータを変更するには、エージェントの設定ファイルを手動で編集する必要があります。 {{ :wiki:pandora_agent_3.0_rc3_install_windows_07.png }} {{:wiki:icono-modulo-enterprise.png?nolink&23x23|Enterprise Version}}The remote configuration of the software agent is enabled by default. Check the options to be used such as basic security monitoring and/or security hardening and/or hardware and software inventory control. Set the minimum amount of free space for temporary files. {{:wiki:icono-modulo-enterprise.png?nolink&23x23|Enterprise 版}}ソフトウェアエージェントのリモート設定はデフォルトで有効になっています。 基本的なセキュリティ監視、セキュリティ強化、ハードウェアおよびソフトウェアのインベントリ管理など、使用するオプションを確認します。 一時ファイルのための最小空き容量を設定します。 {{ :wiki:pandora_agent_remote_config.png }} Start the Pandora FMS agent service, otherwise you will have to do it manually, or it will start when Windows restarts again. Pandora FMS エージェントサービスを開始します。そうしない場合は、手動で行うか、Windows が再起動したときにサービスが開始されます。 {{ :wiki:pandora_agent_3.0_rc3_install_windows_08.png }} The installation is finished, you can change the agent parameters in the ''pandora_agent.conf'' file or through the direct link in the Pandora FMS menu. インストール完了です。エージェントのパラメータは ''pandora_agent.conf'' を編集するか、Pandora FMS メニューからのリンクで変更できます。 ==== Windows エージェントのコマンドラインインストール ==== As of Agent version **5.1**, the installer supports unattended mode. To carry out the installation, you simply have to execute the following: **バージョン 5.1** 以降のエージェントでは、インストーラは(GUIを使わない)コマンドラインインストールが可能です。インストールには、次のコマンドを実行します。 "Pandora FMS Windows Agent v7.0NG.VERSION-BUILD_ARCH.exe" /S In case you want to install the Agent in a different path than the default one: デフォルトとは異なるパスにエージェントをインストールする場合は、次のようにします。 "Pandora FMS Windows Agent v7.0NG.VERSION-BUILD_ARCH.exe" /S /D=C:\PFMS_agent You can also pass certain parameters to be written in the configuration file of the agent to create. Thanks to these options, the deployment of Pandora FMS agents is much more customizable. The command line options that are supported are the following: 作成するエージェントの設定ファイルに書き込まれるように特定のパラメータを渡すこともできます。これらのオプションにより、Pandora FMS エージェントのデプロイはカスタマイズ可能です。 サポートされているコマンドラインオプションは次のとおりです。 --ip * Corresponds to the token named **server_ip**. * **server_ip** トークンに対応します。 --group * Corresponds to the token named **group**. * **group** トークンに対応します。 --alias * Corresponds to the token named **agent_alias**. * **agent_alias** トークンに対応します。 --remote_config * Corresponds to the token named **remote_config**{{:wiki:icono-modulo-enterprise.png?23x23|Enterprise Version}}. * **remote_config** トークンに対応します。{{:wiki:icono-modulo-enterprise.png?23x23|Enterprise 版}} For example, if you want to create an agent that belongs to the Applications group, named Mifunne and that points to the server with the IP address 192.168.0.59, with the [[:en:documentation:03_monitoring:02_operations#remote_configuration|remote_configuration enabled]], the command would be: 例えば、//Mifunne// という名前で、グループ //Applications// に所属し、サーバの IP が //192.168.0.59// のエージェントを[[:ja:documentation:03_monitoring:02_operations#リモート設定|リモート設定有効で]]作成したい場合は、次のようなコマンドを実行します。 "Pandora FMS Windows Agent v7.0NG.VERSION-BUILD_ARCH.exe" /S --ip 192.168.0.59 --group Applications --alias Mifunne --remote_config 1 ==== コマンドラインでのアンインストール ==== The uninstaller, which is an executable called ''uninstall.exe'' that remains in the Pandora FMS installation directory, also allows **unattended uninstallation**, for this you have to run the uninstaller with the option ''**/S **''. アンインストーラの実行ファイルは、インストールしたディレクトリ内にある ''uninstall.exe'' です。コマンドラインで実行することもできます。それには、アンインストーラを ''**/S**'' オプションをつけて実行します。 For example, assuming that Pandora FMS is installed in the default path: 例えば、デフォルトのパスに Pandora FMS エージェントがインストールされていたとします。 "%ProgramFiles%\pandora_agent\uninst.exe" /S {{ :wiki:pfms-run-uninstall-software_agent.png }} {{ :wiki:pfms-grant-uninstall-software_agent-.png }} ==== コマンドラインからの PandoraAgent.exe の利用 ==== If you run: pandoraagent.exe --help will display something similar to this: 上記を実行すると、次のような表示がされます。 C:\Users\Jimmy>"%ProgramFiles%\pandora_agent\pandoraagent.exe" --help Pandora agent for Windows v7.0NG.761 Build 220427 Usage: C:\Program Files\pandora_agent\pandoraagent.exe [OPTION] Available options are: --install: Install the Pandora Agent service. --uninstall: Uninstall the Pandora Agent service. --test-ssh: Test the SSH Pandora Agent configuration. --test-ftp: Test the FTP Pandora Agent configuration. --process: Run the Pandora Agent as a user process instead of a service. C:\Users\Jimmy> To install the service (if it is not installed), just run the following in the directory where the executable is (geusually ''C:\Program Files'' or equivalent). サービスをインストールする(インストールされていない場合)には、実行ファイルのインストール先ディレクトリ(通常は c:\program files 以下です)で次のようにします。 pandoraagent.exe --install This will install the service on the machine, based on the path where the ''.exe'' is located. ''.exe'' ファイルが置かれている場所をもとに、サービスを有効化します。 To test if it connects via SSH with the Pandora FMS server: Pandora FMS サーバへの SSH 接続を確認するには次のようにします。 C:\WINDOWS\system32>cd %PROGRAMFILES% C:\Program Files>cd pandora_agent C:\Program Files\pandora_agent>PandoraAgent.exe --test-ssh Public key file C:\Program Files\pandora_agent\key\id_dsa.pub exists. Private key file: C:\Program Files\pandora_agent\key\id_dsa exists. Connecting with munchkin.pandorafms.com. Authentication successful. Host fingerprint: Created a blank XML file in C:\Program Files\pandora_agent\temp\ssh.test Remote copying C:\Program Files\pandora_agent\temp\ssh.test on server munchkin.pandorafms.com at /var/spool/pandora/data_in/ssh.test Successfully file copied to remote host Successfully disconnected from remote host The SSH test was successful! C:\Program Files\pandora_agent> If you want to uninstall it, it's the same process but with a different option: サービスのアンインストールには、次のようにします。 pandoraagent.exe --uninstall ==== Pandora FMS Window エージェントをプロセスとして起動する ==== It is possible, for debugging, testing, and other unusual circumstances, to run the agent in "Process" mode. This is done by running it from the command line: デバッグやテストその他のために、エージェントは "プロセス" として起動することができます。その場合は、コマンドラインから次のように実行します。 pandoraagent.exe --process There are some limitations in running in process mode, since Pandora FMS is designed to run as a service and under the ''SYSTEM'' user. If you run it with another user without privileges, there will be functionalities that do not work correctly. プロセスとして起動する場合は若干制約があります。Pandora FMS は、エージェントをサービスとして ''SYSTEM'' ユーザで実行する前提となっているため、権限が無い他のユーザで実行した場合は正しく動作しません。 [[:ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]