Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
minLevel1
maxLevel3
outlinefalse
typelist
printablefalse

Overview

What does the integration offer?

Jira Service Management provides a powerful bidirectional integration with PRTG. When a sensor is down in PRTG, a corresponding Jira Service Management alert is automatically created, containing detailed information. Jira Service Management provides rich notifications with on-call rotations, scheduling features, and alert escalations to ensure the best monitoring management for PRTG customers. As users execute actions on the alerts acknowledged, the sensor information on PRTG is automatically updated according to mapped actions.

How does the integration work?

PRTG to Jira Service Management

  • When "sensor status down" notification is sent form PRTG, it creates an alert in Jira Service Management.

  • When "sensor status up" notification is sent from PRTG, the related alert is closed in Jira Service Management.

Jira Service Management to PRTG

If Send Alert Updates Back to PRTG is enabled, actions for PRTG are run in PRTG when the chosen action is run in Jira Service Management for alerts which are created by the PRTG.

The mapping feature is explained in detail in the Action Mapping section.

Set up the integration

PRTG is a bidirectional integration. Setting it up involves the following steps:

  • Add a PRTG integration in Jira Service Management

  • Map alert actions

  • Configure the integration in PRTG

Add PRTG integration

Info

If you're using the Free or Standard plan in Jira Service Management, you can only add this integration from your team’s operations page. To access the feature through Settings (gear icon) > Products (under JIRA SETTINGS) > OPERATIONS, you need to be on Premium or Enterprise plan.

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

To add a PRTG integration in Jira Service Management:

  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 “PRTG”.

  4. On the next screen, enter aname 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 integration URL.
    You will use this URL while configuring the integration in PRTG later.

  8. Select Turn on integration.
    The rules you create for the integration will work only if you turn on the integration.

Map alert actions

You can define action mappings between Jira Service Management actions and PRTG actions (also when the source of the alert is PRTG), which requires additional authentication for your PRTG account.

  1. Select Edit on the configuration page to edit the integration.

  2. Under the Authenticate for sending alert updates to PRTG section, select Authenticate with a PRTG account check box.

  3. Enter values for the following:

    • Username: The email address you use to log in to your PRTG account

    • Passhash: The passhash you use to log in to your PRTG account

    • PRTG URL: The URL of your PRTG login page.

  4. Select Save.

  5. Expand the Outgoing section.

  6. Select Send alert updates back to PRTG check box.

  7. Select alert actions for which you want to send updates back to PRTG.
    Every time an action you selected happens, a corresponding sensor is acknowledged in PRTG.

Configure the integration in PRTG

Jira Edge Connector is a prerequisite for configuring the outgoing authentication of PRTG integration. Download the latest version of the PRTG package from this repository.

  1. In PRTG, go to Setup > Account Settings > Notification Templates.

  2. Select Add new notification > Execute HTTP Action.

  3. Paste the URL you copied while adding the integration in Jira Service Management into URL.

  4. Select Send SNI and enter the URL from Step 3 into the domain and subdomain fields of Virtual Host (SNI).
    US Region: api.jsm.com

  5. EU Region api.eu.jsm.com

  6. Copy the POST data (from the file linked to as applicable) and paste it into Postdata.

    1. For PRTG version 16.x.24. and above, use this file.

    2. For other versions, use this file.

  7. Select Save.

Integrate via JEC (for on-premise PRTG)

Use JEC and the PRTG script to update alerts on PRTG. This enables deployment of your own scripts/ability to modify the ones provided and execute customized actions on PRTG.

To use the PRTG integration package, follow the steps in the following sections:

Info

Download the latest version of JEC

To download the latest version of PRTG packages, please use this repository.

 Install the PRTG package

For RedHat-based distributions

Run the following command : 

Code Block
rpm -i opsgenie-prtg-<your_version>.rpm
Note

If while installing the rpm package you get an error saying that the package is obsolated, you need to use "rpm -i opsgenie-prtg-1.0.4-rpm-x86-64.rpm --nodeps" instead.

If you get "is already installed" error, use "rpm -i opsgenie-prtg-1.0.4-rpm-x86-64.rpm --force" instead.

For Debian-based distributions

Run the following command : dpkg -i opsgenie-prtg-<your_version>.deb

For Windows

  • Unzip Jira Service Management integration zip file which contains JEC package into a directory (C:\jsm\oec is the preferred path.) Follow the instructions here to install JEC on Windows.

  • To learn more about how to run JEC, refer to the Running JEC documentation.

Configure the integration PRTG Integration for JEC

  1. To use the JEC utility, select Send Via JEC.

  2. Other configurations regarding PRTG can be done either via integration page or JEC configuration file config.json. The configuration via the integration page precedes the configuration file.

Configure JEC

Use JEC and the PRTG script to update alerts on PRTG.

To run actions in PRTG, JEC gets the configuration parameters from the configuration file. The configuration file can be found under /home/opsgenie/oec/conf/config.json.

Configuration parameters

  • apiKey – Copy the API key from the PRTG integration created above.

  • prtgUrl – PRTG with subdomain on it. Example: https://opsgenie.my-prtg.com

  • username – PRTG API Username under Account Settings at PRTG.

  • passhash – PRTG API Passhash under Account Settings at PRTG.

The package that you downloaded also includes JEC utility which is located under /usr/local/bin and the script that is needed to be run by JEC which is under /home/opsgenie/oec/scripts. After the configuration of JEC is done, you need to run it. To learn more about how to run JEC, you can refer to the Running JEC documentation.

Troubleshooting

  1. Former PRTG Integration users can convert the integration to make it work for bidirectional use by adding sensorId, {{sensorId}} key-value pair to Extra Properties field at your PRTG Integration configuration.

  2. If you are having trouble sending execute actions to Jira Service Management, enable Send SNI and add us.opsgenie.com for US and eu.opsgenie.com for EU.