VMware vCenter Integration

VMware vCenter provides a centralized platform for managing your VMware vSphere environments, so you can automate and deliver a virtual infrastructure with confidence. It provides simple deployment, proactive optimization, centralized control and visibility and management. OpsGenie is an alert and notification management solution that is highly complementary to VMware vCenter's alerting mechanism.

What does OpsGenie offer VMware vCenter users?

By using OpsGenie’s VMware vCenter Integration: you can forward VMware vCenter incidents to OpsGenie. OpsGenie can determine the right people to notify based on on-call schedules, using email, text messages (SMS), phone calls, iOS & Android push notifications, and escalating alerts until the alert is acknowledged or closed.

Functionality of the integration

  • When an alarm is created in VMware vCenter, it creates an alert in OpsGenie.

Add VMware vCenter Integration in OpsGenie

  1. Please create an OpsGenie account if you haven't done so already.
  2. Go to OpsGenie's VMware VCenter Integration page.
  3. Specify who should be notified for VMware vCenter alerts using the "Teams" field. Autocomplete suggestions will be provided as you type.
  4. Copy the API Key.
  5. Click on "Save Integration."

Configuration in VMware vCenter

  1. Download OpsGenie VMware vCenter zip file under C:\ directory.
  2. Unzip the file under C:\ directory.
  3. Paste this API Key into C:\opsgenie\opsgenie-integration\conf\opsgenie-integration.conf file.
  4. Run vSphere Client.
  5. In vSphere VClient click Actions.
  6. Select Alarms and then New Alarm.
  7. While configuring the alarm add an action as "Run Command" and give your vcenter2opsgenie path in Configuration part.
  8. Save the alarm.

Sample payload sent from vCenter

Create Alert Payload:

{
    "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 "

}

This payload is parsed by OpsGenie as:

{
    "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 "

}

Sample alert