• Get started
  • Documentation

Integrate with VMware vCenter

This article highlights a new alerting feature that's natively available in Jira Service Management which is gradually rolling out to some Jira Service Management Cloud customers. It may not yet be visible or available on your site.

VMWare VCSA Logo

What does the integration offer?

Use Jira Service Management's VMware vCenter integration to forward VMware vCenter incidents to Jira Service Management. Jira Service Management acts as a dispatcher for these incidents and determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls, and iPhone & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

How does the integration work?

When an alarm is created in VMware vCenter, an alert is created in Jira Service Management.

Set up the integration

VMware vCenter is an AP-based integration. Setting it up involves the following steps:

  • Add a VMware vCenter integration in Jira Service Management

  • Configure the integration in VMware vCenter

Add a VMware vCenter integration

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.

Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team.

To add a VMware vCenter integration in Jira Service Management, complete the following steps:

  1. Go to your team’s operations page.

  2. On the left navigation panel, select Integrations and then Add integration.

  3. Run a search and select “VMware vCenter”.

  4. On the next screen, enter a name for the integration.

  5. Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.

  6. Select Continue.
    The integration is saved at this point.

  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. Select Turn on integration.
    The rules you create for the integration will work only if you turn on the integration.

Configure the integration in VMware vCenter

To configure the integration of VMware vCenter with Jira Service Management, complete the following steps:

  1. Download the VMware vCenter zip file into C:\.

  2. Unzip the file into C:\.

  3. Paste the API key previously copied from Jira Service Management into the C:\jsm\jsm-integration\conf\jsm-integration.conf file.

  4. Run vSphere Client.

  5. In vSphere vClient, select Actions.

  6. Select Alarms > New Alarm.

  7. While configuring the alarm, add an action named "Run Command".

  8. Enter C:\jsm-integration\scripts\send2jsm.exe into Configuration.

  9. Save the alarm.

Configure the plugin in VMware vCenter

The plugin uses a golang-executable file (included in the plugin as vcenter2jsm) to create alerts in Jira Service Management. Configure VMware vCenter to execute this file on events to create alerts in Jira Service Management.

Setting the apiKey is required. Other configuration parameters are set to defaults that work with most VMware vCenter implementations but may need to be modified as well.

Configuration Parameters

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 field is used to specify the tags of the alert that created in Jira Service Management.

logPath - Specifies the full path of the log file. (Default value is C:\jsm\vcenter2jsm.log)

vcenter2jsm.http.proxy.enabled - vcenter2jsm.http.proxy.enabled field is to enable/disable external proxy configuration. The default value is false.

vcenter2jsm.http.proxy.host - It is the host of the proxy.

vcenter2jsm.http.proxy.port - It is the port of the proxy.

vcenter2jsm.http.proxy.scheme - It is the proxy connection protocol. It may be http or https depending on your proxy servers. Its default value is http.

vcenter2jsm.http.proxy.username - It is the Proxy authentication username.

vcenter2jsm.http.proxy.password - It is the Proxy authentication password.

jsm.api.url - If you're using Jira Service Management from another domain(eg. EU, sandbox), you should update this configuration.

There are three ways to configure golang-executable file:

Configure from the conf file

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

Configure by using golang flags

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.

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.
Read more about dynamic properties.

Configure from the script

Configure the apiKey vcenter2jsm.go script. Build the script again and put the new executable to /usr/bin directory. Find information about the location of the vcenter2jsm.go and how to build a go script in the "Source" section.

Sample payload sent from VMware vCenter

Create Alert payload

JSON

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 { "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 parses the payload as follows:

JSON

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 { "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 " }

 

 

Still need help?

The Atlassian Community is here for you.