ja:documentation:pandorafms:technical_annexes:39_exec_server_configuration

Exec server 設定

At the end of this configuration process, an SSH connection with digital key will have been established for the automated monitoring processes.

この設定プロセスの最後に、自動監視処理用に鍵を使用した SSH 接続が確立されます。

In a Logical Agent already created and with the remote configuration enabled, a user (for example pandora_exec_proxy) and a pair of digital keys created (public and private), will be able to access a remote device to which the public key has been hosted and configured.

論理エージェントがすでに作成されており、リモート設定が有効になっている場合、ユーザ (例えば pandora_exec_proxy など) と作成されたデジタル鍵のペア (公開鍵と秘密鍵) は、公開鍵が保存・設定されているリモートデバイスにアクセスできます。

Without remote configuration enabled, you will lack the ability to create Satellite modules from wizards.

リモート設定を有効にしないと、サテライトモジュールをウィザードから作成する機能が動作しません

This option can be configured on a Network Server PFMS and/or a Satellite Server PFMS. From the list of Pandora FMS servers, select one to work as Exec Server and edit it:

このオプションは、Pandora FMS ネットワークサーバおよびサテライトサーバで設定できます。 Pandora FMS サーバのリストから実行サーバとして機能するサーバを選択し、編集します。

Check the checkbox as Exec Server, enter the port number (default 80 ) and the IP address of the server where the desired commands will be launched, e.g. for a Satellite server:

Exec Server のチェックボックスをオンにし、ポート番号 (デフォルトは 80 ) と、目的のコマンドが起動されるサーバの IP アドレスを入力します。 サテライトサーバの場合の例:

Since the configuration is not finished at this point, the connection test will fail (Check server execution).

この時点では設定が完了していないため、接続テスト(サーバーの実行を確認)は失敗します。

Before accessing the Exec Server through SSH, in the Network server PFMS and/or Satellite Server PFMS enabled as Exec server(s), it is necessary to create in that machine a specific user, for example called pandora_exec_proxy. In a terminal window connected as root user or equivalent through sudo:

SSH 経由で実行サーバにアクセスする前に、実行サーバとして有効になっている Pandora FMS ネットワークサーバまたはサテライトサーバで、そのマシンに特定のユーザ (たとえば、pandora_exec_proxy という名前) を作成する必要があります。 root ユーザまたは同等のユーザとして sudo を用いて、ターミナルウインドウにて次のようにします:

useradd pandora_exec_proxy -m

Assign a password to the newly created user:

新しく作成したユーザにパスワードを設定します。

passwd pandora_exec_proxy

Now act as root or equivalent user where PFMS Web Console is running to generate the key pair:

次に、Pandora FMS ウェブコンソールが実行されている環境で root または同等のユーザで鍵のペアを生成します。

ssh-keygen

Proceed to copy the key to the remote server (replace the IP address in < Satellite_IP >):

鍵をリモートサーバにコピーします (< Satellite_IP > の IP アドレスを置き換えます)。

ssh-copy-id pandora_exec_proxy@< Satellite_IP >

Then create the SSH folder of the Apache user, move the credentials and change its owner:

次に、Apache ユーザの SSH フォルダを作成し、認証情報を移動して、その所有者を変更します。

mkdir /usr/share/httpd/.ssh
mv /root/.ssh/* /usr/share/httpd/.ssh/
chown -R apache. /usr/share/httpd/.ssh/

To finish, you only have to test the configuration in the proxy server edition section of Pandora FMS console, check the test indicator by clicking on it:

完了するには、Pandora FMS コンソールのプロキシサーバ編集セクションで設定をテストするだけで済みます。テストインジケータをクリックして確認します。

Pandora FMS ドキュメント一覧に戻る

  • ja/documentation/pandorafms/technical_annexes/39_exec_server_configuration.txt
  • 最終更新: 2024/01/24 05:46
  • by 127.0.0.1