====== Exec server 設定 ====== {{indexmenu_n>39}} 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. リモート設定を有効にしないと、サテライトモジュールをウィザードから作成する機能が**動作しません**。 ===== Pandora FMS ウェブコンソール設定 ===== 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 サーバのリストから実行サーバとして機能するサーバを選択し、編集します。 {{ :wiki:pfms-manage_servers_list.png }} 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 アドレスを入力します。 **サテライトサーバ**の場合の例: {{ :wiki:pfms-exec_server_config_enabled.png }} Since the configuration is not finished at this point, the connection test will fail (**Check server execution**). この時点では設定が完了していないため、接続テスト(**サーバーの実行を確認**)は失敗します。 ===== リモートサーバにおける OS ユーザ設定 ===== 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 {{ :wiki:pfms-satellite_server_useradd.png }} Assign a password to the newly created user: 新しく作成したユーザにパスワードを設定します。 passwd pandora_exec_proxy {{ :wiki:pfms-satellite_server_passwd.png }} ===== Pandora FMS サーバ OS でのユーザ設定 ===== ==== 鍵の生成とコピー ==== Now act as root or equivalent user where PFMS Web Console is running to generate the key pair: 次に、Pandora FMS ウェブコンソールが実行されている環境で root または同等のユーザで鍵のペアを生成します。 ssh-keygen {{ :wiki:pfms-pfms_server_ssh-keygen.png }} 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 > {{ :wiki:pfms-pfms_server_ssh-copy-id.png }} 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/ ===== Exec server 動作チェック ===== 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 コンソールのプロキシサーバ編集セクションで設定をテストするだけで済みます。テストインジケータをクリックして確認します。 {{ :wiki:exec-server-4.png }} [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]