Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Created February 22, 2016 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmsimard/2c9cbee0d803ba83220c to your computer and use it in GitHub Desktop.
Save dmsimard/2c9cbee0d803ba83220c to your computer and use it in GitHub Desktop.
{
"handlers": {
"bot": {
"command": "/etc/sensu/handlers/bot.py --endpoint http://bot",
"type": "pipe",
"filters": [
"recurrences-60"
],
"severities": [
"ok",
"warning",
"critical",
"unknown"
]
}
}
}
{
"checks": {
"check-cpu": {
"command": "/usr/local/bin/check-cpu.rb",
"handlers": [
"bot"
],
"interval": 60,
"occurrences": 5,
"subscribers": [
"default"
],
"standalone": false,
}
}
}
{
"client": {
"name": "hostname",
"address": "192.168.66.19",
"subscriptions": [
"default"
],
"redact": [
],
"socket": {
"bind": "127.0.0.1",
"port": 3030
},
"safe_mode": false,
"keepalive": {
}
}
}
{
"filters": {
"recurrences-60": {
"attributes": {
"occurrences": "eval: value == 1 || value % 60 == 0"
},
"negate": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment