Zabbix/Marid integration acknowledgement error


#1

Hello,

We use OpsGenie - Zabbix 3.0.4 integration and use version 2.18.0 of opsgenie-zabbix Debian package. The Zabbix triggers appear in OpsGenie interface so this part works fine. When we acknowledge an alert in OpsGenie it shows an error on the Zabbix-server part in /var/log/opsgenie/marid/script.log. The error can be found here.

Java version:

# java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

Kind regards,
Lucian


#2

It seems the source of this error was a HTTP redirect. The zabbix integration plugin doesn’t seem to support HTTP redirects. The URL in /etc/opsgenie/conf/opsgenie-integration.conf was using plain HTTP and the server was issuing a redirect to the HTTPS URL:

Location: https://zabbix-server.tld/api_jsonrpc.php

This was fixed by specifying the HTTPS URL in opsgenie-integration.conf.