The Sensu slack handler is a Sensu Event Handler that sends an email using a SMTP server.
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
Example Sensu Go handler definition:
TDB
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
).