external check result and handlers


#1

Hi

I just started using external check results.
I am not sure how to invoke a handler on a failing check result in this
case. What is the best way to do this?

Regards,
Oliver

···

--
Oliver Paukstadt <pstadt@sourcentral.org>


#2

Handlers are invoked on external check results just like any other check.

https://sensuapp.org/docs/0.16/external_result_input
https://sensuapp.org/docs/latest/clients#client-socket-input

Just specify handlers or handler

···

On Mon, Feb 29, 2016 at 5:26 AM, Oliver Paukstadt <pstadt@sourcentral.org> wrote:

Hi

I just started using external check results.
I am not sure how to invoke a handler on a failing check result in this
case. What is the best way to do this?

Regards,
Oliver
--
Oliver Paukstadt <pstadt@sourcentral.org>


#3

Hi

yes, this works.
Added some handlers to the result json and the handlers are executed.

Is it possible to define a filter to limit the handlers which the
external check result can request? On which configuration level could
this be done? Client and/or server?

Regards,
Oliver

···

On Mon, 2016-02-29 at 07:50 -0800, Kyle Anderson wrote:

Handlers are invoked on external check results just like any other check.

https://sensuapp.org/docs/0.16/external_result_input
https://sensuapp.org/docs/latest/clients#client-socket-input

Just specify handlers or handler

--
Oliver Paukstadt <pstadt@sourcentral.org>


#4

I'm not aware of configuration to limit handlers like that. The
external check result socket is kinda a "raw" interface.

···

On Mon, Feb 29, 2016 at 8:53 AM, Oliver Paukstadt <pstadt@sourcentral.org> wrote:

On Mon, 2016-02-29 at 07:50 -0800, Kyle Anderson wrote:

Handlers are invoked on external check results just like any other check.

https://sensuapp.org/docs/0.16/external_result_input
https://sensuapp.org/docs/latest/clients#client-socket-input

Just specify handlers or handler

Hi

yes, this works.
Added some handlers to the result json and the handlers are executed.

Is it possible to define a filter to limit the handlers which the
external check result can request? On which configuration level could
this be done? Client and/or server?

Regards,
Oliver
--
Oliver Paukstadt <pstadt@sourcentral.org>