These instructions explain how to open sensu-slack-handler.json
and edit the definition using Vi/Vim so you can complete the Learn Sensu sandbox Lesson #2, step 3.
NOTE: You can use any text editor you'd like for this step. These instructions are intended to help users who may not know how to open and edit the definition.
1. Open the JSON file.
vi sensu-slack-handler.json
2. Start "insert" mode so you can add and replace text.
i
3. Using your keyboard arrows to navigate, make these changes in the text.
- Replace the value for
KEEPALIVE_SLACK_WEBHOOK
with your webhook URL. - Replace the value for
KEEPALIVE_SLACK_CHANNEL
with the name of your Slack channel. - Inside the
runtime_assets
brackets ([]
), type"sensu-slack-handler"
(including the quotation marks).
We recommend typing the text you want to add rather than copying and pasting.
esc
to exit "insert" mode.
4. Press :w
to save your changes.
5. Type :q
to quit back to sensuctl.
6. Type When you finish these steps, you can pick back up in the sandbox at Lesson #2, step 3.