I have a handler that works fine. I wanted to add a mutator and did the following:
Wrote an executable script in ruby that takes in a JSON from stdin like this
event = JSON.parse(STDIN.read)
The event is mutated as desired and then is output like this
- I added my mutator to the handler yaml as shown in sensu docs
- In my mutator definition set the command to: test_mutator.rb (which is the name of the executable file) and I added the runtime assets which contained the actual executable
When i trigger a check (without the mutator in the handler configuration, it works as expected. But when I add the mutator nothing happens. I know something is either wrong with the executable itself or how i have configured it, but I do not know what. Any help would be greatle appreciated!!