Sends notifications to Rocket.Chat through REST API
- bin/handler-rocketchat.rb
Configure Rocket.Chat credentials, url and channel:
{
"rocketchat": {
"username": "username",
"password": "password",
"api_url": "https://chat.example.com",
"channel": "sensu"
}
}
Create a handler:
{
"handlers": {
"rocketchat": {
"type": "pipe",
"command": "/opt/sensu/embedded/bin/handler-rocketchat.rb"
}
}
}