diff --git a/lib/puppet/type/sensu_check_config.rb b/lib/puppet/type/sensu_check_config.rb index 566199f7e7..e6e8da7190 100644 --- a/lib/puppet/type/sensu_check_config.rb +++ b/lib/puppet/type/sensu_check_config.rb @@ -23,6 +23,10 @@ def initialize(*args) end newparam(:name) do + desc "Some unique name, not the name of the check." + end + + newparam(:realname) do desc "The name of the check" end diff --git a/manifests/check.pp b/manifests/check.pp index 53f1793377..a85cb96a67 100644 --- a/manifests/check.pp +++ b/manifests/check.pp @@ -5,7 +5,16 @@ $subscribers = [] ) { + @@sensu_check_config { "${::fqdn}_${name}": + realname => $name, + command => $command, + handlers => $handlers, + interval => $interval, + subscribers => $subscribers, + } + sensu_check_config { $name: + realname => $name, command => $command, handlers => $handlers, interval => $interval,