Sensu Monitoring - 如何输出 OK

Sensu Monitoring - how to output on an OK

默认情况下,Sensu 不输出状态 0 或 OK。

有谁知道如何更改它以允许在 OK 上输出?

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

将您的检查设置为度量检查,输出将被保留。

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.