Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.26 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.26 KB

Sensu Go Slack Handler

The Sensu slack handler is a Sensu Event Handler that sends an email using a SMTP server.

Installation

Download the latest code from github.com:

go get github.com/fguimond/sensu-email-handler

Build the plugin:

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

Configuration

Example Sensu Go handler definition:

TDB

Usage examples

Help:

The Sensu Go Email handler for sending an email notification

Usage:
  sensu-email-handler [flags]

Flags:
  -e, --event string          The JSON event file to process
  -f, --fromEmail string      The 'from' email address
  -h, --help                  help for sensu-email-handler
  -s, --smtpHost string       The SMTP host to use to send to send email
  -p, --smtpPassword string   The SMTP password
  -P, --smtpPort uint16       The SMTP server port (default 587)
  -u, --smtpUsername string   The SMTP username
  -t, --toEmail string        The 'to' email address

If the --event option is specified the event will be read from the file mentioned, otherwise the event will be read from the process' standard input (os.Stdin).