"OK" events are not processed by handlers?. Any idea.

I am trying to use sensu for live monitoring. I have few issues, those are

  1. Not all events are handled by sensu handlers. “OK” events are not processed by handlers?. Any idea. I have pipe handler to print check_results, but pipe handlers are getting executed only for warning and critical events not for “OK” events.

  2. How to verify handlers are executed properly or not. I have “email” handler. How do I verify that handler is processed successfully or not. Any logs for that?.

  1. Also, I am trying sensu dashboard (trial), couldn’t see live graph in sensu dashboard?. (See the attachment). Any help is appreciated.

···

On Thursday, June 8, 2017 at 9:14:48 PM UTC+5:30, Santhosh Srinivasan wrote:

I am trying to use sensu for live monitoring. I have few issues, those are

  1. Not all events are handled by sensu handlers. “OK” events are not processed by handlers?. Any idea. I have pipe handler to print check_results, but pipe handlers are getting executed only for warning and critical events not for “OK” events.
  1. How to verify handlers are executed properly or not. I have “email” handler. How do I verify that handler is processed successfully or not. Any logs for that?.
  1. This is correct. Most people don’t want OK emails constantly.
    If you need a handler to get every event, set metric: true

https://sensuapp.org/docs/0.23/guides/getting-started/intro-to-checks.html#create-a-metric-collection-check

(but do this carefully because it can get expensive for a server to run a command on every event)

  1. Handler processing is done by the sensu server, logs end up in /var/log/sensu/sensu-server.log
···

On Thu, Jun 8, 2017 at 8:44 AM, Santhosh Srinivasan santhosh.srinivasan@keastone.com wrote:

I am trying to use sensu for live monitoring. I have few issues, those are

  1. Not all events are handled by sensu handlers. “OK” events are not processed by handlers?. Any idea. I have pipe handler to print check_results, but pipe handlers are getting executed only for warning and critical events not for “OK” events.
  1. How to verify handlers are executed properly or not. I have “email” handler. How do I verify that handler is processed successfully or not. Any logs for that?.

Thank you, Kyle Anderson. Will try this way.

···

On Friday, June 9, 2017 at 8:18:53 PM UTC+5:30, Kyle Anderson wrote:

  1. This is correct. Most people don’t want OK emails constantly.
    If you need a handler to get every event, set metric: true

https://sensuapp.org/docs/0.23/guides/getting-started/intro-to-checks.html#create-a-metric-collection-check

(but do this carefully because it can get expensive for a server to run a command on every event)

  1. Handler processing is done by the sensu server, logs end up in /var/log/sensu/sensu-server.log

On Thu, Jun 8, 2017 at 8:44 AM, Santhosh Srinivasan santhosh....@keastone.com wrote:

I am trying to use sensu for live monitoring. I have few issues, those are

  1. Not all events are handled by sensu handlers. “OK” events are not processed by handlers?. Any idea. I have pipe handler to print check_results, but pipe handlers are getting executed only for warning and critical events not for “OK” events.
  1. How to verify handlers are executed properly or not. I have “email” handler. How do I verify that handler is processed successfully or not. Any logs for that?.