# testing handlers

**URL:** <https://discourse.sensu.io/t/testing-handlers/31>\
**Category:** Sensu Classic (EOL)\
**Created:** [May 28, 2013, 7:46pm UTC](https://discourse.sensu.io/t/testing-handlers/31 "2013-05-28T19:46:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Miller](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/joe_miller/32/160_2.png) [@Joe\_Miller](https://discourse.sensu.io/u/Joe_Miller)\
**Post date:** [May 28, 2013, 7:46pm UTC](https://discourse.sensu.io/t/testing-handlers/31/1 "2013-05-28T19:46:36Z")

</div>

What type of handler is it? If it’s a ‘pipe’ handler (an executable) then it’s easy to test by feeding the handler an event JSON via STDIN.

An example event json is here: [http://docs.sensuapp.org/0.9/events.html](http://docs.sensuapp.org/0.9/events.html)

> **···**
>
> On Tue, May 28, 2013 at 6:15 AM, [rhanna@informatiq.org](mailto:rhanna@informatiq.org) wrote:
> 
> > Hi,
> 
> > I have a written a simple handler that does a post to a http api
> 
> > I am getting exception in the server log when using it
> 
> > I need to be able to test it without waiting for checks to trigger the handler
> 
> > any help?

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:04am UTC](https://discourse.sensu.io/t/testing-handlers/31/2 "2018-11-22T02:04:53Z")

</div>


