Hitachi

JP1 Version 13 JP1/Integrated Management 3 - Manager コマンド・定義ファイル・APIリファレンス


SAPシステム監視のScript exporter設定ファイルのサンプルファイル(jpc_script_exporter_sap.yml)

〈このページの構成〉

形式

次に示す条件で,SAPシステムを監視する場合の定義例をサンプルとして提供します。

■条件

<SAPシステムのログ抽出コマンド共通>

<jr3slgetコマンド>

<jr3algetコマンド>

■定義例

scripts:
  - name: SAP Syslog extractor(jr3slget)
    command: jr3slgetコマンドのパス
    args:
      - "-lasttime"
      - "sltimestamp.txt"
      - "-x2"
      - "-cnf"
      - "../conf/user/jr3slget.ini"
    timeout:
      max_timeout: 30
      enforced: true
 
  - name: SAP CCMS Alert extractor(jr3alget)
    command: jr3algetコマンドのパス
    args:
      - "-lasttime"
      - "altimestamp.txt"
      - "-x2"
      - "-cnf"
      - "../conf/user/jr3alget.ini"
    timeout:
      max_timeout: 30
      enforced: true

ファイル

jpc_script_exporter_sap.yml

格納先ディレクトリ

■統合エージェントホスト

Windowsの場合

Linuxの場合

説明

SAPシステム監視のScript exporterの動作を規定する設定ファイルです。

サンプルファイル(jpc_script_exporter_sap.yml)をコピーし,コピー先のファイル名を「jpc_script_exporter.yml」に変更して,Script exporter設定ファイル(jpc_script_exporter.yml)の配置先に配置して使用します。ファイルの配置先については,マニュアル「JP1/Integrated Management 3 - Manager 導入・設計ガイド」の「付録A.4(3)統合エージェントホスト(Windows)」および「付録A.4(4)統合エージェントホスト(Linux)」を参照してください。

文字コード

Script exporter設定ファイル(jpc_script_exporter.yml)」の「文字コード」の説明を参照してください。

改行コード

Script exporter設定ファイル(jpc_script_exporter.yml)」の「改行コード」の説明を参照してください。

定義の反映時期

Script exporter設定ファイル(jpc_script_exporter.yml)」の「定義の反映時期」の説明を参照してください。

記述内容

Script exporter設定ファイル(jpc_script_exporter.yml)」の「記述内容」の説明を参照してください。

Script exporter設定ファイルにSAPシステムのログ抽出コマンドを実行するスクリプトを定義する場合,script.nameには実行するSAPシステムのログ抽出コマンド名(jr3slget,またはjr3alget)を含める必要があります。含めない場合,SAPシステム監視のメトリック送信機能のIM管理ノードがOther Applicationsカテゴリ配下に作成されます。

複数のRFC接続先を定義する場合(マルチインスタンス)など,パラメーターの設定内容が異なる環境パラメーター設定ファイルを複数作成したときは,次に示す定義例のように複数のスクリプトを定義します。

scripts:
  - name: SAP Syslog extractor(jr3slget)_A
    command: C:/Program Files (x86)/Hitachi/jp1pc/agtm/evtrap/jr3slget.exe
    args:
      - "-lasttime"
      - "sltimestamp_A.txt"
      - "-x2"
      - "-cnf"
      - "../conf/user/jr3slget_A.ini"
    timeout:
      max_timeout: 30
      enforced: true
 
  - name: SAP CCMS Alert extractor(jr3alget)_A
    command: C:/Program Files (x86)/Hitachi/jp1pc/agtm/evtrap/jr3alget.exe
    args:
      - "-lasttime"
      - "altimestamp_A.txt"
      - "-x2"
      - "-cnf"
      - "../conf/user/jr3alget_A.ini"
    timeout:
      max_timeout: 30
      enforced: true
 
  - name:  SAP Syslog extractor(jr3slget)_B
    command: C:/Program Files (x86)/Hitachi/jp1pc/agtm/evtrap/jr3slget.exe
    args:
      - "-lasttime"
      - "sltimestamp_B.txt"
      - "-x2"
      - "-cnf"
      - "../conf/user/jr3slget_B.ini"
    timeout:
      max_timeout: 30
      enforced: true
 
  - name:  SAP CCMS Alert extractor(jr3alget)_B
    command: C:/Program Files (x86)/Hitachi/jp1pc/agtm/evtrap/jr3alget.exe
    args:
      - "-lasttime"
      - "altimestamp_B.txt"
      - "-x2"
      - "-cnf"
      - "../conf/user/jr3alget_B.ini"
    timeout:
      max_timeout: 30
      enforced: true