Compatible with Opsgenie's generic API integration (do not use this with the "built-in" Zabbix integration) and/or Edge Encryption.
Other changes:
- Priority Mapping
- Config is independent of Marid/OEC
- Logs to
/etc/opsgenie/zabbix2opsgenie.logby default because of OEC log directory permissions.
Config path: confPath
Log path: logPath
Using Go:
go get github.com/r-pratt/zabbix2opsgenie
ln -s $GOPATH/bin/zabbix2opsgenie /etc/opsgenie/zabbix2opsgenie
ln -s $GOPATH/src/github.com/r-pratt/zabbix2opsgenie/zabbix2opsgenie.json /etc/opsgenie/zabbix2opsgenie.jsonWithout Go:
mkdir /etc/opsgenie && cd /etc/opsgenie
curl -O 'https://raw.githubusercontent.com/r-pratt/zabbix2opsgenie/master/zabbix2opsgenie'
curl -O 'https://raw.githubusercontent.com/r-pratt/zabbix2opsgenie/master/zabbix2opsgenie.json'
chmod +x zabbix2opsgneie/etc/opsgenie/zabbix2opsgenie -triggerName='{TRIGGER.NAME}' -triggerId='{TRIGGER.ID}' -triggerStatus='{TRIGGER.STATUS}' -triggerSeverity='{TRIGGER.SEVERITY}' -triggerDescription='{TRIGGER.DESCRIPTION}' -triggerUrl='{TRIGGER.URL}' -triggerValue='{TRIGGER.VALUE}' -triggerHostGroupName='{TRIGGER.HOSTGROUP.NAME}' -hostName='{HOST.NAME}' -ipAddress='{IPADDRESS}' -eventId='{EVENT.ID}' -date='{DATE}' -time='{TIME}' -itemKey='{ITEM.KEY}' -itemValue='{ITEM.VALUE}' -recoveryEventStatus='{EVENT.RECOVERY.STATUS}'
