Ad Widget

Collapse

Opsgenie integration hints

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teu_pega
    Junior Member
    • Oct 2023
    • 3

    #1

    Opsgenie integration hints

    Hello,

    I´ve recently setup the Zabbix Opsgenie integration and stumbled about the issue that it makes a difference which API key from Opsgenie you´re using.

    In Opsgenie there two ways to integrate Zabbix with. The one Opsgenie describes is to install a small package developed by them and using the "Zabbix Integration" API key.
    Zabbix on the other hand also has a built in Media type to send alerts to Opsgenie, which works mostly out of the box.

    If you´re using the Zabbix built-in media type to send alerts to Opsgenie you can´t use the the Zabbix Integration in Opsgenie. If you do so alerts will be routed through the "Default API" Integration which is a problem if you have multiple teams.
    The solution is to create a new "API Integration" in Opsgenie for each team and use this API key.

    Unfortunately, I din´t found this in any documentation, so I´d suggest to add a small hint to the Opsgenie Webhook readme (https://git.zabbix.com/projects/ZBX/...enie/README.md) to the first step in Opsgenie or to "Known issues". Somehting like:

    "To use the Zabbix built-in Media type for Opsgenie you have to create an "API" Integration in Opsgenie. Don´t use the "Zabbix Integration" from Opsgenie."

    I´m still waiting for an answer from Atlassian Support why their "Zabbix Integration" API Key does not work as expected and will share it here then.

  • teu_pega
    Junior Member
    • Oct 2023
    • 3

    #2
    Answer from Atlassian support:

    ... the API key from Zabbix integration for Zabbix bundled Opsgenie integration is not working as expected because it is using a /v1/json/integrationName API key with the /v2/alerts endpoint. Please note, API key from Zabbix integration would work if you use the Opsgenie Plugin here as recommended:
    https://support.atlassian.com/opsgen...zabbix-plugin/

    However, when you use the API key from the API integration both the endpoints are of the same version and hence it creates the alerts as expected.....

    Comment

    Working...