Skip to content

Instantly share code, notes, and snippets.

@nstielau
Created March 6, 2013 11:47
Show Gist options
  • Save nstielau/5098783 to your computer and use it in GitHub Desktop.
Save nstielau/5098783 to your computer and use it in GitHub Desktop.
Example Sensu check, which only alerts after 10 failures on a 60 second interval, and won't alert on nights or weekends.
{
"checks": {
"noisy_queue_check": {
"handler": "default",
"command": "/etc/sensu/plugins/check-queue-length.rb",
"interval": 60,
"refresh": 60,
"occurrences": 10,
"subscribers": [ "workers" ],
"subdue" : {
"start": "10pm PST",
"end": "6am PST",
"days": ["saturday", "sunday"]
}
}
}
}
@jswank
Copy link

jswank commented Apr 1, 2013

"start" changed to "begin": sensu/sensu@a39b4b8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment