Created
February 22, 2016 22:24
-
-
Save dmsimard/2c9cbee0d803ba83220c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"handlers": { | |
"bot": { | |
"command": "/etc/sensu/handlers/bot.py --endpoint http://bot", | |
"type": "pipe", | |
"filters": [ | |
"recurrences-60" | |
], | |
"severities": [ | |
"ok", | |
"warning", | |
"critical", | |
"unknown" | |
] | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"checks": { | |
"check-cpu": { | |
"command": "/usr/local/bin/check-cpu.rb", | |
"handlers": [ | |
"bot" | |
], | |
"interval": 60, | |
"occurrences": 5, | |
"subscribers": [ | |
"default" | |
], | |
"standalone": false, | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"client": { | |
"name": "hostname", | |
"address": "192.168.66.19", | |
"subscriptions": [ | |
"default" | |
], | |
"redact": [ | |
], | |
"socket": { | |
"bind": "127.0.0.1", | |
"port": 3030 | |
}, | |
"safe_mode": false, | |
"keepalive": { | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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