0

By default, Sensu does not output on a status of 0 or OK.

Does anyone know how to change this to allow for output on an OK?

http://sensuapp.org/docs/0.16/checks

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
Kevin Moore
  • 197
  • 3
  • 16

1 Answers1

0

Setup your check as a metric check and the output will be preserved.

https://sensuapp.org/docs/0.16/checks#metrics-checks

As the Sensu check specification allows for structured data to be outputted to STDOUT, Sensu can be used as a metric collection agent. To allow check results with a exit status of 0 to produce an event, add "type": "metric" to the check definition.

Joe
  • 2,496
  • 1
  • 22
  • 30