clevertoday / sensu-plugins-hangouts-chat

Sensu Hangouts Chat Handler
MIT License
1 stars 1 forks source link
alerting handler hangouts-chat notification ruby sensu-plugins

sensu-plugins-hangouts-chat

Build Status Gem Version Maintainability Test Coverage

Files

Usage

After installation, you have to set up a pipe type handler, like so:

{
  "handlers": {
    "hangouts_chat": {
      "type": "pipe",
      "command": "handler-hangouts-chat.rb"
    }
  }
}

This gem also expects a JSON configuration file with the following contents:

{
  "hangouts_chat": {
    "webhook_url": "YOUR_WEBHOOK_URL",
  }
}

Installation

Installation and Setup

Testing

cat <<EOF | bundle exec bin/handler-hangouts-chat.rb -u "WEBHOOK_URL"
{
  "client": {
    "name": "client"
  },
  "check": {
    "status": 1,
    "name": "name",
    "source": "source",
    "output": "Hello, warning"
  }
}
EOF