# Puppet Sensu Module

**URL:** <https://discourse.sensu.io/t/puppet-sensu-module/148>\
**Category:** Sensu Classic (EOL)\
**Created:** [February 21, 2014, 12:13am UTC](https://discourse.sensu.io/t/puppet-sensu-module/148 "2014-02-21T00:13:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnny\_Costello](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Johnny\_Costello](https://discourse.sensu.io/u/Johnny_Costello)\
**Post date:** [February 21, 2014, 12:13am UTC](https://discourse.sensu.io/t/puppet-sensu-module/148/1 "2014-02-21T00:13:37Z")

</div>

Anyone here with experience using the puppet sensu module?

I want to use the puppet sensu module to install and manage my sensu but am having problems with trying to add handlers and/or checks.

A while back I re factored my whole puppet environment to use Hiera and I am starting to believe that this may be the reason why I cannot get them to work. However I do not know a way to fix it.

I have followed the documentation online and have tried adding the handler to my node but I always fail.

node avatar-mon01 {

sensu::handler { “default”:

command =\> ‘mail -s “Test” [ops@blah.com](mailto:ops@blah.com)’,

}

}

I also tried adding it directly to my site.pp file with the same result.

Error: Failed to apply catalog: Could not find dependency File[/etc/sensu/conf.d/handlers] for Sensu\_handler[default] at /etc/puppet/environments/qa/modules/sensu/manifests/handler.pp:144

Checks are pretty much giving me the same problem just stating that they could not find the dependency for checks instead of handler.

Error: Failed to apply catalog: Could not find dependency File[/etc/sensu/conf.d/checks] for Sensu\_check[diskspace] at /etc/puppet/environments/qa/modules/sensu/manifests/check.pp:120

Anyone have any ideas how I can set these up using hiera? I do not want to have to recreate the my own hiera version of sensu.

Thanks

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:05am UTC](https://discourse.sensu.io/t/puppet-sensu-module/148/2 "2018-11-22T02:05:07Z")

</div>


