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

Opsgenie を Remedyforce と統合する

BMC のロゴ

Opsgenie が BMC Remedyforce ユーザーに提供するもの

OpsgenieBMC Remedyforce との強力なインテグレーションを提供します。BMC Remedyforce で新しいインシデントが作成されると、インシデントに関する詳しい情報を含む、対応する Opsgenie アラートが自動的に作成されます。Opsgenie は、オンコールローテーション、スケジューリング機能、アラートエスカレーションを含む高度な通知を提供し、BMC Remedyforce の顧客に最適なインシデント管理を保証します。

統合の機能性

  • インシデントが BMC Remedyforce で作成されると、アラートが Opsgenie で作成されます。

  • インシデントが BMC Remedyforce でクローズ、拒否、クローズ/連絡先なし、クローズしてメール、完了にアップデートされると、アラートは Opsgenie でもクローズされます。

  • BMC Remedyforce でインシデントが受け入れ済み、割り当て済みとして更新されると、Opsgenie のアラートは承認済みとして更新されます。

  • If Send Alert Updates Back to BMC RemedyForce is enabled, actions for BMC Remedyforce are executed in BMC Remedyforcee when the chosen action is executed in Opsgenie for alerts which are created by the BMC Remedyforce.

Opsgenie に BMC Remedyforce 統合を追加する

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

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

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

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

  1. Go to Settings > Integrations. Search for BMC Remedyforce and select Add.

  2. Specify who is notified of BMC Remedyforce alerts using the Responders field. Auto-complete suggestions are provided as you type.

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

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

BMC Remedyforce での設定

  • BMC Remedyforce との統合により、Opsgenie へのインシデントの転送がサポートされます。

  • Do the following steps on your BMC Remedyforce account.

    • In BMC Remedyforce, click on the Setup button top right.

    • 設定ページの左側で [ 開発] -> [Apex クラス] に移動します。

    • リストの最上部にある [新規] ボタンをクリックします。

    • Download the opsgenieClass.apxc file. Then copy and paste to the Apex Class Page.

    • [保存] をクリックします。

Apex クラス
  • 設定ページの左側で [ 作成] -> [オブジェクト] に移動します。

    • [カスタムオブジェクト] リストで [インシデント] をクリックします。

    • [トリガー] リストの上部にある [新規] をクリックします。

    • Download the opsgenieTrigger.apxt file. Then copy and paste to the Apex Trigger Page.

    • apiKey 変数の CUSTOMER_GENERATED_OPS_GENIE_API_KEY の値を Opsgenie の設定ページでコピーした API キーに変更します。

    • [保存] をクリックします。

Apex トリガー

トリガーメソッドによって送信される必須フィールド

簡易モードで統合を追加した (詳細な統合の設定を編集していない) 場合、次のフィールドは必須です。

  • ID

  • shortDescription

  • impactId

  • statusId

  • CategoryID

  • priorityId

  • 重大度

  • name

  • ownerId

  • statusChangeDate

  • ID

  • clientName

  • urgencyId

  • incidentResolution

設定でパラメータとして与えられるフィールドは必須です。BMC Remedy Force システムで使用されていないフィールドがある場合は、Apex トリガー関数でこれらのフィールドを削除する必要があります。また、これらのフィールドを統合設定のパラメータとして指定しないでください。

カスタマイズしたフィールドの設定 Apex トリガー関数

  • In BMC Remedyforce, customers are able to create new fields and use these fields in incident. If you need to use the custom fields in Opsgenie alerts, you need to customize the apex function. In the apex trigger function, There are 10 custom fields that you can edit. These fields are defined but not initialized. You can send customized by doing following steps:

    • 設定ページの左側で [ 作成] -> [オブジェクト] に移動します。

    • [カスタムオブジェクト] リストで [インシデント] をクリックします。

    • [カスタム フィールドと関係] リストで送信する必要があるフィールドを見つけ、指定されたフィールド名を [API 名] 列にメモします。

    • Go to apex trigger function, edit the custom fields that are not initialized before. You should initialize fields as obj.<COPIED_API_NAME>. Also, if data types are different from string, you should change data type. The custom fields are already added to payload. When you initialize fields they will be sent to Opsgenie.

    • Opsgenie アラートにカスタム フィールドを追加する必要がある場合は、Opsgenie 統合ページの [詳細設定] に移動し、フィルターまたはアラート設定をアップデートしてください。

Opsgenie と BMC Remedyforce

  1. For Sending alerts and updates to BMC Remedyforce create a connected App. Please follow this page for created a connected with enabled OAuth settings.

  2. 接続アプリを作成したら、接続アプリからコンシューマーキーとコンシューマーシークレットをコピーします。

Remedyforce による接続アプリの管理

3. コンシューマーキー、カスタマーシークレット、ユーザー名、パスワードの情報を Opsgenie に追加します。

パスワード

Entered Password in Opsgenie is concatenation of you Salesforce login password and your account security token. So, if your password is ABC and Security token is XYZ. Please enter ABCXYZ. In case you don't have security token. Go to Setting > My Personal Information > Reset My Security Token. Your new security token will be send to your email.

BMC Remedyforce でアラートを送信
  1. インシデントオブジェクトに新しいカスタム フィールド opsgenie-alias を追加します。

  • 設定ページの左側にある オブジェクト マネージャー に移動します。

  • [カスタムオブジェクト] リストで [インシデント] をクリックします。

  • 左側のメニューから [フィールドと関係] を選択し、[新規] をクリックします

  • カスタム フィールドに含まれる情報の種類としてテキストを選択し、[次へ] をクリックします。

  • フィールドラベルopsgenie-alias長さ255 を入力します。

  • Use default security and Add to Page layout settings. Click Save and New

すでに古い統合があり、現在双方向に変換しようとしている場合は、Apex トリガーコードをアップデートしてください。

トラブルシューティング

Apex アプリケーションから「不正なエンドポイント。[設定] -> [セキュリティ] -> [リモートサイト設定] を確認してください」メッセージを含む開発者スクリプト例外を受け取る場合、[設定] -> [セキュリティ] -> [リモートサイトの設定] タブに移動し、https://api.opsgenie.com を新しいリモートサイトから追加できます。

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

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