Skip to content

Instantly share code, notes, and snippets.

@seth-paxton
seth-paxton / gist:d19571620e8986c2ef1a
Created October 6, 2014 22:27
Sensu Remediate Example
1. Download the plugin from: https://github.com/sensu/sensu-community-plugins/blob/master/handlers/remediation/sensu.rb
2. Create the handler definition:
{
"handlers": {
"remediator": {
"type": "pipe",
"command": "/etc/sensu/handlers/remediator.rb"
}
}
}
@seth-paxton
seth-paxton / gist:a653dbe1a1c77160df34
Created October 6, 2014 22:03
Sensu Remediation Example
{
"checks": {
"seyren_check": {
"command": "/etc/sensu/plugins/check-procs.rb -p PROC",
"interval": 10,
"subscribers": ["SUB"],
"handlers": ["remediator","pagerduty"],
"occurrences": 1,
"refresh": 10,
"remediation": {
{
"checks": {
"check_something": {
"command": "ps aux | grep cron",
"interval": 60,
"subscribers": ["application_server"],
"handlers": ["debug", "irc", "remediator"],
"remediation": {
"light_remediation": {
"occurrences": [1, 2],

Keybase proof

I hereby claim:

  • I am seth-paxton on github.
  • I am sethpaxton (https://keybase.io/sethpaxton) on keybase.
  • I have a public key whose fingerprint is BE07 7666 05EC 5988 C25D 0A06 B785 A214 7CFC 2BE1

To claim this, I am signing this object: