zabbix2opsgenie command - github.com/r-pratt/zabbix2opsgenie - Go Packages

zabbix2opsgenie

command module
v0.0.0-...-9671354 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

README

Coverage

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}'

Documentation

Overview

   	Edge encryption compatible version of zabbix2opsgenie.

		Other changes:
			- Priority Mapping
			- Config independent of marid/OEC

		@author: Robert Pratt <robert.pratt@homelab.farm>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL