Closed solarkennedy closed 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
of course edit the json to tweak if necissary
Fixed in e106709.
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.