Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name


v0.2.1 · private · Published about 4 years ago

README
Asset Definition
Release Notes
Release Assets

Bonsai Asset Badge
goreleaser

Sensu Rocketchat Handler

Overview

The [Sensu Slack Handler][0] is a [Sensu Event Handler][3] that sends event data
to a configured Slack channel.

Usage examples

Help:

Usage:
  sensu-rocketchat-handler [flags]
  sensu-rocketchat-handler [command]

Available Commands:
  help        Help about any command
  version     Print the version number of this plugin

Flags:
  -w, --url      string     The url of the Rocket.Chat server to send messages to (default "https://open.rocket.chat/")
  -c, --channel  string     The channel to post messages to (default "sandbox")
  -u, --username string     The username that messages will be sent as (default "sensu")
  -p, --password string     The password of the user
  -t, --template string     The Rocketchat notification output template, in Golang text/template format
  -h, --help                help for sensu-rocketchat-handler

Configuration

Asset registration

Assets are the best way to make use of this handler. If you're not using an asset, please consider doing so! If you're using sensuctl 5.13 or later, you can use the following command to add the asset:

sensuctl asset add abes140377/sensu-rocketchat-handler

If you're using an earlier version of sensuctl, you can download the asset definition from [this project's
Bonsai Asset Index page][6].

Handler definition

Create the handler using the following handler definition:

---
api_version: core/v2
type: Handler
metadata:
  namespace: default
  name: rocketchat
spec:
  type: pipe
  command: sensu-rocketchat-handler -w 'http://chat.example.com' -c 'monitoring' -u 'sensu'
  env_vars:
  - "ROCKETCHAT_PASSWORD=sensu"
  filters:
  - is_incident
  runtime_assets:
  - abes140377/sensu-rocketchat-handler
  timeout: 10

Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.

×

You must be signed in to report this asset.

Sign In with Github

Download

×

Either download the source code:

Download Source

Or download the asset definition: