Yelp / sensu_handlers

Custom Sensu Handlers to support a multi-tenant environment, allowing checks themselves to emit the type of handler behavior they need in the event json
Apache License 2.0
75 stars 31 forks source link

Document how to invoke these handlers directly for troubleshooting purposes #39

Closed solarkennedy closed 9 years ago

solarkennedy commented 9 years ago

This is "just" cat'ing event json and piping it, but it isn't obvious.

Just an example taking some event data from the log and "replaying" it, pipe to a handler would be helpful for troubleshooting purposes.

solarkennedy commented 9 years ago
grep 'failed' /var/log/sensu/sensu-server.log  | tail -n 1 | jq .event > last_failed_event.json
cat last_failed_event.json | ./pagerduty.rb
solarkennedy commented 9 years ago

of course edit the json to tweak if necissary

vulpine commented 9 years ago

Fixed in e106709.