The Sensu Go Telegram Handler is a Sensu Event Handler for sending incident notification messages in Telegram.
Go to file
2019-06-11 18:16:59 +02:00
CHANGELOG.md initial commit, based on sensu-email-handler 2019-03-31 17:00:38 +02:00
event.json initial commit, based on sensu-email-handler 2019-03-31 17:00:38 +02:00
Gopkg.lock initial commit, based on sensu-email-handler 2019-03-31 17:00:38 +02:00
Gopkg.toml initial commit, based on sensu-email-handler 2019-03-31 17:00:38 +02:00
LICENSE initial commit, based on sensu-email-handler 2019-03-31 17:00:38 +02:00
main.go initial commit, based on sensu-email-handler 2019-03-31 17:00:38 +02:00
README.md Update 'README.md' 2019-06-11 18:16:59 +02:00

Sensu Go Telegram Handler Plugin

The Sensu Go Telegram Handler is a Sensu Event Handler for sending incident notification messages in Telegram.

Installation

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

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

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

Configuration

Example Sensu Go definition:

{
    "api_version": "core/v2",
    "type": "Handler",
    "metadata": {
        "namespace": "default",
        "name": "telegram"
    },
    "spec": {
        "type": "pipe",
        "command": "sensu-telegram-handler -t 123456789:dahxaemuGoM8ekeed1pideeCoh3ahm-abcd -c 9876543210",
        "timeout": 10,
        "filters": [
            "is_incident",
            "not_silenced"
        ]
    }
}

Usage Examples

Help:

The Sensu Go Telegram handler for sending an telegram notification

Usage:
  sensu-telegram-handler [flags]

Flags:
  -T, --bodyTemplateFile string   A template file to use for the body
  -c, --channel int               The channel (default -1)
  -h, --help                      help for sensu-telegram-handler
  -H, --hookout                   Include output from check hook(s)
  -t, --token string              the telegram bot token

Contributing

See https://github.com/sensu/sensu-go/blob/master/CONTRIBUTING.md