Send events to Squadcast from Sensu

Follow the steps below to configure a service so as to extract its related alert data from Sensu.

Squadcast will then process this information to create incidents for this service as per your preferences.

Using Sensu as an Alert Source

On the Sidebar, click on Services.

You can either choose to use existing service or create a new service

Now, click on the corresponding Alert Sources button.

Select Sensu from Alert Source drop down and copy the API Key shown.

On Your Sensu Server

Note: This guide was written and tested on Ubuntu 16.04 and Amazon Linux 2016.09, with Sensu 0.20.2-1 and 0.26.5-2. Paths may be different for other operating systems or Sensu versions. Note that all commands provided are intended to be run as the "root" user.

Save the Squadcast Sensu handler in your Sensu installation's plugins directory.

sudo wget -O /etc/sensu/plugins/squadcast-handler.rb

Make sure that the downloaded file has execute permission if not then provide the same using:

sudo chmod +x /etc/sensu/plugins/squadcast-handler.rb

Using the above file create a Sensu handler in the directory /etc/sensu/conf.d /etc/sensu/conf.d/squadcast-handler.json

                                 "handlers": {
                                 "squadcast": {
                                 "type": "pipe",
                                 "command":  "/etc/sensu/plugins/squadcast-handler.rb YOUR-INTEGRATION-KEY-HERE-FROM-STEP-2"                      }

If you want, you can also make it the default handler as follows

                                    "handlers": {
                                    "default": {
                                    "type": "set",
                                    "handlers": [

Now you can assign this handler to any of your checks, for example:

                                    "checks": {
                                    "YOUR-CHECK-NAME": {
                                    "command": "YOUR-CHECK-COMMAND",
                                    "subscribers": [
                                    "interval": YOUR-INTERVAL,
                                    "handlers": ["default", "squadcast"]

Restart Sensu for the changes to take effect.

That's it!! Your Sensu integration is now good to go.

Once an event is resolved from Sensu, it will automatically be resolved in Squadcast.

Updated 4 days ago


Send events to Squadcast from Sensu

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.