# Dependencies

**URL:** <https://discourse.sensu.io/t/dependencies/417>\
**Category:** Sensu Classic (EOL)\
**Created:** [April 21, 2015, 9:01pm UTC](https://discourse.sensu.io/t/dependencies/417 "2015-04-21T21:01:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nobuolayer3](https://avatars.discourse-cdn.com/v4/letter/n/958977/32.png) [@Nobuolayer3](https://discourse.sensu.io/u/Nobuolayer3)\
**Post date:** [April 21, 2015, 9:01pm UTC](https://discourse.sensu.io/t/dependencies/417/1 "2015-04-21T21:01:59Z")

</div>

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](https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fsensu%2Fsensu-plugin%2Fblob%2Fmaster%2Flib%2Fsensu-handler.rb%23L109&sa=D&sntz=1&usg=AFQjCNHx_RnsuVBhzmLUOzjQMGsdbhy8uA)

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

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [April 22, 2015, 4:06am UTC](https://discourse.sensu.io/t/dependencies/417/2 "2015-04-22T04:06:25Z")

</div>

Most of the handlers available for sensu inherit that class:  
[https://github.com/sensu/sensu-community-plugins/blob/master/handlers/notification/mailer.rb#L34](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](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>
>
> Fixing anchor link & header

> **···**
>
> 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](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

---

<div class="post-metadata">

**Author:** ![Nobuolayer3](https://avatars.discourse-cdn.com/v4/letter/n/958977/32.png) [@Nobuolayer3](https://discourse.sensu.io/u/Nobuolayer3)\
**Post date:** [April 22, 2015, 3:13pm UTC](https://discourse.sensu.io/t/dependencies/417/3 "2015-04-22T15:13:46Z")

</div>

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](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](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](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](https://github.com/sensu/sensu-docs/pull/210)
> > 
> > On Tue, Apr 21, 2015 at 2:01 PM, [nobuo...@gmail.com](mailto: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](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
