Discover Packages
github.com/r-pratt/zabbix2opsgenie
command
module
Version:
v0.0.0-...-9671354
Opens a new window with list of versions in this module.
Published: Jun 2, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
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.log by default because of OEC log directory permissions.
Config path: confPath
Log path: logPath
Install
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.json
Without 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
Zabbix Action Command:
/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}'
Expand ▾
Collapse ▴
Documentation
¶
Edge encryption compatible version of zabbix2opsgenie.
Other changes:
- Priority Mapping
- Config independent of marid/OEC
@author: Robert Pratt <robert.pratt@homelab.farm>
Source Files
¶
Click to show internal directories.
Click to hide internal directories.