Sensu
Send events to Squadcast from Sensu
Last updated
Send events to Squadcast from Sensu
Last updated
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.
Navigate to Services -> Service Overview -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click Add.
2. Select Sensu. Copy the displayed Webhook URL to configure it within Sensu. Finish by clicking Add Alert Source -> Done.
Important:
When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
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.
Make sure that the downloaded file has execute permission if not then provide the same using:
Using the above file create a Sensu handler in the directory /etc/sensu/conf.d
/etc/sensu/conf.d/squadcast-handler.json
If you want, you can also make it the default handler as follows /etc/sensu/conf.d/default_handler.json
Now you can assign this handler to any of your checks, for example: /etc/sensu/conf.d/YOUR-CHECK.json
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.