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

Opsgenie を VMware vCenter Server Appliance と統合する

Opsgenie が VMware vCenter Server Virtual Appliance ユーザーに提供するもの

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

統合の機能性

  • VMware vCenter Server Virtual Appliance でアラームが作成されると、Opsgenie でアラートが作成されます。

Opsgenie で VMware vCenter Server Virtual Appliance インテグレーションを追加する

Opsgenie の Free プランまたは Essentials プランを使用している、または Jira Service Management の Standard プランで Opsgenie を使用している場合は、チーム ダッシュボードからのみこの統合を追加できます。 このプランでは、[設定] の [統合] ページが利用できません。

  1. [チーム] に移動して自分のチームを選択します。

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

統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。このセクションの残りの手順に従って、統合を設定してください。

  1. Go to Settings > Integrations. Search for VMware vCenter Server Virtual Appliance and select Add

  2. Specify who is notified of VMware vCenter Server Virtual Appliance alerts using the Responders field. Autocomplete suggestions are provided as you type.

  3. API キーをコピーします。

  4. [Save Integration (統合の保存)] を選択します。

VMware vCenter Server Virtual Appliance での設定

  1. Download the Opsgenie VMware vCenter Server Virtual Appliance RPM package.

  2. sudo rpm -i opsgenie-vcsa-<your_version>.rpm を実行します

  3. インストールが完了すると、プラグインの設定ファイル (opsgenie-integration.conf) が /etc/opsgenie/conf に配置されます。

  4. このファイルを編集し、「apiKey」に VCSA 統合の API キーを置いて、「“<your_opsgenie_integration_api_key>“」を置き換えます。

  5. 設定ファイルを保存します。

  6. vSphere Client を実行します。

  7. vSphere Client で、[Actions (アクション)] をクリックします。

  8. [Alarms (アラーム)]、[New Alarm (新しいアラーム)] の順に選択します。

  9. アラームの設定時に、アクションを「実行コマンド」として追加し、[Configuration (構成)] の部分にお使いの vcsa2opsgenie パスを入力します。

新しいアラームの定義

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

VMware vCenter Server Virtual Appliance での Opsgenie プラグインの設定

プラグインは golang-executable ファイル (vcsa2opsgenie としてプラグインに含まれる) を使用して、Opsgenie でアラートを作成します。イベント時にこのファイルを実行して Opsgenie でアラートを作成するように、VMware vCenter Server Virtual Appliance を構成する必要があります。

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

設定パラメーター

apiKey - Copy the API key from the VMware vCenter Server Virtual Appliance integration you've created above. vcsa2opsgenie uses this key to authenticate to Opsgenie. API key is also used to identify the right integration configuration that should be used to process alerts.

teams - Teams field is used to specify which teams to notify of VMware vCenter Server Virtual Appliance alerts. This field is used to set the default teams field value. It can be modified to route different alerts to different teams in Opsgenie VMware vCenter Server Virtual Appliance integration, Advanced Settings page.

tags - Tags field is used to specify the tags of the alert that created in Opsgenie.

logPath - ログ ファイルの完全なパスを指定します(既定値は /var/log/vcsa2opsgenie.log)。

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

vcsa2opsgenie.http.proxy.host - プロキシのホストです。

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

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

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

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

opsgenie.api.url - 別のドメインから Opsgenie を使用している場合 (例: EU、サンドボックス) 、この設定を更新します。

 

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

conf ファイルからの設定:

Configure from /etc/opsgenie/conf/opsgenie-integration.conf file. Configuring from conf file overwrites the configurations made in the script.

Golang フラグを使用して設定:

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

To send additional custom arguments, add them after the flags as: customArgName1 customArgValue1 customArgName2 customArgValue2
Parse custom arguments by adding {{_payload.customArgName}} to wherever is needed on the input fields.
For more information about using raw parameters please visit the Dynamic Fields document.

スクリプトからの設定:

apiKey vcsa2opsgenie.go スクリプトを設定します。このオプションを使用するには、スクリプトを再構築し、新しい実行可能ファイルを /etc/opsgenie/ ディレクトリに配置します。go スクリプトは /etc/opsgenie/ ディレクトリにあります。

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

アラートのペイロードを作成します。

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": "OpsGenieAlarm", "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 " }

このペイロードは Opsgenie によって次のように解析されます。

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": "OpsgenieAlarm", "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 " }

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

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