License
MIT License
v0.2.0 · private · Published almost 5 years ago
The [Sensu Slack Handler][0] is a [Sensu Event Handler][3] that sends event data
to a configured Slack channel.
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, --rocketchat-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")
-i, --icon-url string A URL to an image to use as the user avatar (default "https://www.sensu.io/img/sensu-logo.png")
-u, --username string The username that messages will be sent as (default "sensu")
-t, --descriptionTemplate The Rocketchat notification output template, in Golang text/template format
-h, --help help for sensu-rocketchat-handler
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].
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 -channel 'sandbox' --username 'sensu'
filters:
- is_incident
runtime_assets:
- sensu/sensu-rocketchat-handler
secrets:
- name: ROCKETCHAT_PASSWORD
secret: rocketchat-password
timeout: 10
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.
×