Dependencies


#1

Hi,

I am new to Sense.

When I was checking old posts, I found this script: https://github.com/sensu/sensu-plugin/blob/master/lib/sensu-handler.rb#L109

If the dependencies has several hosts and some services, is it possible to use this script? If so, how can I use it?

Thanks in advance

Nobuo


#2

Most of the handlers available for sensu inherit that class:
https://github.com/sensu/sensu-community-plugins/blob/master/handlers/notification/mailer.rb#L34

Here are the docs on how to configure checks:
http://sensuapp.org/docs/0.17/checks

Although they do not reference dependencies...

But per the code, the dependencies is an array of check_host/check_name values.

I've added a PR to document this.

···

On Tue, Apr 21, 2015 at 2:01 PM, <nobuolayer3@gmail.com> wrote:

Hi,

I am new to Sense.

When I was checking old posts, I found this script:
https://github.com/sensu/sensu-plugin/blob/master/lib/sensu-handler.rb#L109

If the dependencies has several hosts and some services, is it possible to
use this script? If so, how can I use it?

Thanks in advance

Nobuo


#3

Kyle,

Thank you for your post!

Nobuo

···

On Tuesday, April 21, 2015 at 10:06:27 PM UTC-6, Kyle Anderson wrote:

Most of the handlers available for sensu inherit that class:

https://github.com/sensu/sensu-community-plugins/blob/master/handlers/notification/mailer.rb#L34

Here are the docs on how to configure checks:

http://sensuapp.org/docs/0.17/checks

Although they do not reference dependencies…

But per the code, the dependencies is an array of check_host/check_name values.

https://github.com/sensu-plugins/sensu-plugin/blob/master/lib/sensu-handler.rb#L148

I’ve added a PR to document this.

https://github.com/sensu/sensu-docs/pull/210

On Tue, Apr 21, 2015 at 2:01 PM, nobuo...@gmail.com wrote:

Hi,

I am new to Sense.

When I was checking old posts, I found this script:

https://github.com/sensu/sensu-plugin/blob/master/lib/sensu-handler.rb#L109

If the dependencies has several hosts and some services, is it possible to

use this script? If so, how can I use it?

Thanks in advance

Nobuo