# handlers working for one type of check but not for the other

**URL:** <https://discourse.sensu.io/t/handlers-working-for-one-type-of-check-but-not-for-the-other/692>\
**Category:** Sensu Classic (EOL)\
**Created:** [October 10, 2016, 11:01am UTC](https://discourse.sensu.io/t/handlers-working-for-one-type-of-check-but-not-for-the-other/692 "2016-10-10T11:01:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaron\_Yogev](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/yaron_yogev/32/401_2.png) [@Yaron\_Yogev](https://discourse.sensu.io/u/Yaron_Yogev)\
**Post date:** [October 10, 2016, 11:01am UTC](https://discourse.sensu.io/t/handlers-working-for-one-type-of-check-but-not-for-the-other/692/1 "2016-10-10T11:01:11Z")

</div>

Hi,

I’m using handlers with stand-alone checks. The checks are run on a remote host, configured to send check results to the server.

I first tested with the “file” handler using event-file.rb plugin, and it worked fine - the check results appeared as files in /tmp/.

I then added my own handler script, which gets called as well.

Now I added another check on the host side.

I see the check results appear on the server in the log and in Uchiwa, but the handlers do not seem to run for that new check.

How can I debug this?

Thanks,

Yaron

---

<div class="post-metadata">

**Author:** ![Yaron\_Yogev](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/yaron_yogev/32/401_2.png) [@Yaron\_Yogev](https://discourse.sensu.io/u/Yaron_Yogev)\
**Post date:** [October 18, 2016, 7:58am UTC](https://discourse.sensu.io/t/handlers-working-for-one-type-of-check-but-not-for-the-other/692/2 "2016-10-18T07:58:50Z")

</div>

After digging in the process.rb code I understood that the event was filtered.  
I would suggest adding the following debug message in process.rb:

update\_event\_registry(event) do |process|

@logger.debug(“processing skipped for check result”, :check =\> result[:check][:name]) if !process

process\_event(event) if process

@in\_progress[:check\_results] -= 1

end

``

> **···**
>
> On Monday, October 10, 2016 at 2:01:11 PM UTC+3, Yaron Yogev wrote:
> 
> > Hi,
> 
> > I’m using handlers with stand-alone checks. The checks are run on a remote host, configured to send check results to the server.
> 
> > I first tested with the “file” handler using event-file.rb plugin, and it worked fine - the check results appeared as files in /tmp/.
> 
> > I then added my own handler script, which gets called as well.
> 
> > 
> 
> > Now I added another check on the host side.
> 
> > I see the check results appear on the server in the log and in Uchiwa, but the handlers do not seem to run for that new check.
> 
> > 
> 
> > How can I debug this?
> 
> > 
> 
> > Thanks,
> 
> > Yaron
