Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@seth-paxton
Created October 6, 2014 22:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save seth-paxton/a653dbe1a1c77160df34 to your computer and use it in GitHub Desktop.
Save seth-paxton/a653dbe1a1c77160df34 to your computer and use it in GitHub Desktop.
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": {
"light_remediation": {
"occurrences": [1, 2],
"severities": [1]
},
"medium_remediation": {
"occurrences": ["3-10"],
"severities": [1]
},
"heavy_remediation": {
"occurrences": ["1+"],
"severities": [2]
}
}
},
"light_remediation": {
"command": "/bin/process",
"subscribers": [],
"handlers": ["pagerduty"],
"pager_team": "testing",
"interval": 10,
"publish": false
},
"medium_remediation": {
"command": "/bin/process",
"subscribers": [],
"handlers": ["pagerduty"],
"pager_team": "testing",
"interval": 10,
"publish": false
},
"heavy_remediation": {
"command": "/bin/process",
"subscribers": [],
"handlers": ["pagerduty"],
"pager_team": "testing",
"interval": 10,
"publish": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment