Run check commands as though they're being run through Sensu
Latest commit 76573c7 Nov 6, 2014 @jgoldschrafe Add check output
Failed to load latest commit information.
Gemfile Initial commit Nov 6, 2014
LICENSE Initial commit Nov 6, 2014 Update README Nov 6, 2014
sensu-run Add check output Nov 6, 2014


One of my pain points with Sensu is the inability to see if I've configured a check properly before I toss it out to the whole environment. sensu-run is a lightweight utility for testing Sensu commands, with real Sensu interpolation, before you hastily shove them into production.

sensu-run hooks internal APIs of the actual Sensu client classes, so it should be considered fragile. It's been tested with Sensu 0.16 and will probably break in a future release.


Run a predefined standalone check:

./sensu-run -d /etc/sensu/conf.d my-standalone-check-name

Or take a pass at an arbitrary command (please quote):

./sensu-run -d /etc/sensu/conf.d '/etc/sensu/checks/check_disk.rb -w :::check_disk.warn::: -c :::check_disk.crit:::'