Skip to content

Handler for Sensu Go. Supports output to Slack, XMPP, Mail via Redmine project memberships

License

Notifications You must be signed in to change notification settings

SICSoftwareGmbH/sensu-sic-handler

Repository files navigation

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:

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

Configuration

Example:

etcd-endpoints: http://etcd:2379

redmine-url: https://redmine.example.com
redmine-token: foobar

annotation-prefix: com.example
smtp-address: smtp.example.com:25
mail-from: [email protected]
slack-webhook-url: https://hooks.slack.com/services/foo/bar/foobar
slack-username: sensu
slack-icon-url: http://s3-us-west-2.amazonaws.com/sensuapp.org/sensu.png
xmpp-server: jabber.example.com
xmpp-username: [email protected]
xmpp-password: foobar

Usage examples

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