项目作者: SICSoftwareGmbH

项目描述 :
Handler for Sensu Go. Supports output to Slack, XMPP, Mail via Redmine project memberships
高级语言: Go
项目地址: git://github.com/SICSoftwareGmbH/sensu-sic-handler.git
创建时间: 2019-04-30T12:09:41Z
项目社区:https://github.com/SICSoftwareGmbH/sensu-sic-handler

开源协议:MIT License

下载


GitHub release
Travis
License

Sensu Go SIC Handler

The Sensu SIC handler is a Sensu Event Handler that is used by SIC! Software for dispatching events based on entity annotations.

Installation

Download the latest version of the sensu-sic-handler from releases,
or create an executable script from this source.

From the local path of the sensu-sic-handler repository:

  1. go build -o /usr/local/bin/sensu-sic-handler main.go

Configuration

Example:

  1. etcd-endpoints: http://etcd:2379
  2. redmine-url: https://redmine.example.com
  3. redmine-token: foobar
  4. annotation-prefix: com.example
  5. smtp-address: smtp.example.com:25
  6. mail-from: sensu@example.com
  7. slack-webhook-url: https://hooks.slack.com/services/foo/bar/foobar
  8. slack-username: sensu
  9. slack-icon-url: http://s3-us-west-2.amazonaws.com/sensuapp.org/sensu.png
  10. xmpp-server: jabber.example.com
  11. xmpp-username: sensu@jabber.example.com
  12. xmpp-password: foobar

Usage examples

  1. $ sensu-sic-handler redmine import -c sic-handler.yml
  2. $ sensu-sic-handler event -c sic-handler.yml --outputs='mail'
  3. $ sensu-sic-handler event -c sic-handler.yml --outputs='slack'
  4. $ sensu-sic-handler event -c sic-handler.yml --outputs='xmpp'