Skip to content

Sensu handler written in Go to send an email notification.

Notifications You must be signed in to change notification settings

fguimond/sensu-email-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

Sensu handler written in Go to send an email notification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages