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
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