• 使用を開始する
  • 関連ドキュメント

VMware vCenter と統合する

この記事では、Jira Service Management Cloud の一部のお客様に段階的に展開されている、Jira Service Management でネイティブに利用できる新しいアラート機能を取り上げています。ご利用のサイトにはまだ表示されていないか、利用できない可能性があります。

VMWare VCSA のロゴ

統合でできるようになること

Jira Service ManagementVMware vCenter 統合を使用して、VMware vCenter のインシデントを Jira Service Management に転送します。Jira Service Management はこれらのインシデントのディスパッチャーとして機能し、オンコール スケジュールに基づいて通知する適切な担当者を決定します。メール、テキスト メッセージ (SMS)、電話、iPhone や Android のプッシュ通知による通知を行い、アラートが承認またはクローズされるまでアラートをエスカレーションします。

統合による機能

VMware vCenter でアラームが作成されると、Jira Service Management でアラートが作成されます。

統合をセットアップする

VMware vCenter は AP ベースの統合です。次の手順でセットアップを行います。

  • Jira Service ManagementVMware vCenter 統合を追加する

  • VMware vCenter で統合を設定する

VMware vCenter 統合を追加する

Bidirectional integrations aren’t supported in Free and Standard plans. All the other integrations are supported at a team level in Free and Standard; however, for their outgoing part to work, you need to upgrade to a higher plan. To add any integration at a site level through Settings (gear icon) > Products (under JIRA SETTINGS) > OPERATIONS, you need to be either on Premium or Enterprise.

統合をチームの運用ページから追加すると、そのチームが統合の所有者になります。つまり、Jira Service Management は、この統合を通じて受信したアラートをチームにのみ割り当てます。

Jira Service ManagementVMware vCenter 統合を追加するには、次の手順を実行してください。

  1. チームの運用ページに移動します。

  2. 左側のナビゲーション パネルで、[統合] > [統合を追加] の順に選択します。

  3. 検索を実行して「VMware vCenter」を選択します。

  4. 次の画面で、統合の名前を入力します。

  5. オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。

  6. [Continue] を選択します。
    この時点で、統合が保存されます。

  7. Expand the Steps to configure the integration section and copy the API key.
    You will use this key while configuring the integration in VMware vCenter later.

  8. [統合をオンにする] を選択します。
    統合のために作成したルールは、統合をオンにした場合にのみ機能します。

VMware vCenter で統合を設定する

VMware vCenterJira Service Management の統合を設定するには、次の手順を実行してください。

  1. C:\ に VMware vCenter の Zip ファイルをダウンロードします。

  2. ファイルを C:\ に解凍します。

  3. さきほど Jira Service Management からコピーした API キーを C:\jsm\jsm-integration\conf\jsm-integration.conf ファイルに貼り付けます。

  4. vSphere Client を実行します。

  5. vSphere vClient で [Actions (アクション)] を選択します。

  6. [Alarms (アラーム)] > [New Alarm (新しいアラーム)] を選択します。

  7. アラームの設定中に「Run Command」という名前のアクションを追加します。

  8. [設定] に C:\jsm-integration\scripts\send2jsm.exe と入力します。

  9. アラームを保存します。

VMware vCenter でプラグインを設定する

プラグインでは golang 実行可能ファイル (vcenter2jsm としてプラグインに含まれています) を使用して、Jira Service Management でアラートを作成します。Jira Service Management でアラートを作成するには、イベント時にこのファイルを実行するよう VMware vCenter を設定します。

apiKey の設定は必須です。その他の設定パラメーターは既定値に設定され、ほとんどの VMware vCenter 実装で動作しますが、変更が必要な場合もあります。

設定パラメーター

apiKey - Copy the API key from the VMware vCenter integration created above. vcenter2jsm uses this key to authenticate to Jira Service Management. The API key is also used to identify the right integration configuration to process alerts.

teams - Teams field is used to specify which teams should be notified for the VMware vCenter alerts. This field is used to set the default teams field value. Modify this field to route different alerts to different teams in Jira Service Management VMware vCenter integration, Advanced Settings page.

tags - tags フィールドは、Jira Service Management で作成されたアラートのタグを指定するために使用します。

logPath - ログ ファイルの完全なパスを指定します(既定値は C:\jsm\vcenter2jsm.log)。

vcenter2jsm.http.proxy.enabled - vcenter2jsm.http.proxy.enabled フィールドは、外部プロキシ設定を有効/無効にするためのものです。既定値は false です。

vcenter2jsm.http.proxy.host - プロキシのホスト。

vcenter2jsm.http.proxy.port - プロキシのポート。

vcenter2jsm.http.proxy.scheme - プロキシ接続プロトコル。プロキシ サーバーに応じて http または https になる場合があります。既定値は http です。

vcenter2jsm.http.proxy.username - プロキシ認証ユーザー名。

vcenter2jsm.http.proxy.password - プロキシ認証パスワード。

jsm.api.url - 別のドメインから Jira Service Management を使用している場合 (例: EU、サンドボックス)、この設定を更新する必要があります。

golang 実行可能ファイルを設定するには、次の 3 つの方法があります。

conf ファイルから設定する

Configure from C:\jsm\conf\jsm-integration.conf file. Configuring from conf file overwrites the configurations made in the script.

golang フラグを使用して設定する

Configure by entering flags to the command of the notification created in VMware vCenter, which is described in "Configure Triggers in VMware vCenter" section. Use -apiKey flag for the apiKey.

追加のカスタム引数を送信する場合は、customArgName1 customArgValue1 customArgName2 customArgValue2 のようにフラグの後に追加します。入力フィールドの必要な場所に {{_payload.customArgName}} を追加して、カスタム引数を解析します。
動的プロパティに関する詳細をご確認ください。

スクリプトから設定する

apiKey vcenter2jsm.go スクリプトを設定します。スクリプトを再構築し、新しい実行可能ファイルを /usr/bin ディレクトリに配置します。vcenter2jsm.go の場所と go スクリプトの構築方法については、「ソース」セクションを参照してください。

VMware vCenter から送信されるペイロードのサンプル

アラートのペイロードを作成する

JSON

{ "VMWARE_ALARM_ALARMVALUE": "Event details", "VMWARE_ALARM_DECLARINGSUMMARY": "([Event alarm expression: Alarm created; Status ", "VMWARE_ALARM_EVENTDESCRIPTION": "Reconfigured testAlarm 'testAlarm' on Datacenter. \n \nModified: \n \ninfo.expression.expression: ((comparisons ", "VMWARE_ALARM_EVENT_DATACENTER": "Datacenter", "VMWARE_ALARM_EVENT_USERNAME": "VSPHERE.LOCAL\\Administrator", "VMWARE_ALARM_ID": "alarm-310", "VMWARE_ALARM_NAME": "JsmAlarm", "VMWARE_ALARM_NEWSTATUS": "Green", "VMWARE_ALARM_OLDSTATUS": "Yellow", "VMWARE_ALARM_TARGET_ID": "datacenter-21", "VMWARE_ALARM_TARGET_NAME": "Datacenter", "VMWARE_ALARM_TRIGGERINGSUMMARY": "Event: Alarm reconfigured (1978)\nSummary: Reconfigured alarm 'testAlarm' on Datacenter. \n \nModified: \n \ninfo.expression.expression: ((comparisons " }

Jira Service Management ではペイロードは次のように解析されます。

JSON

{ "alarmValue": "Event details", "declaringSummary": "([Event alarm expression: Alarm created; Status ", "eventDescription": "Reconfigured testAlarm 'testAlarm' on Datacenter. \n \nModified: \n \ninfo.expression.expression: ((comparisons ", "eventDatacemter": "Datacenter", "eventUsername": "VSPHERE.LOCAL\\Administrator", "alarmID": "alarm-310", "alarmName": "JsmAlarm", "newStatus": "Green", "oldStatus": "Yellow", "targetID": "datacenter-21", "targetName": "Datacenter", "triggeringSummary": "Event: Alarm reconfigured (1978)\nSummary: Reconfigured alarm 'testAlarmæ' on Datacenter. \n \nModified: \n \ninfo.expression.expression: ((comparisons " }

 

 

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。