adding graphitewrite object and template

Signed-off-by: Nick Chappell <nick@intronic.org>
This commit is contained in:
Steven Bambling 2014-09-30 18:23:01 -04:00 committed by Nick Chappell
parent 66d9d95ee2
commit 7db98fd8f5
2 changed files with 24 additions and 2 deletions

View file

@ -13,11 +13,11 @@ define icinga2::object::graphitewriter (
validate_string($host)
file {"${target_dir}/${target_file_name}":
ensure => file,
ensure => file
owner => $target_file_owner,
group => $target_file_group,
mode => $target_file_mode,
content => template('icinga2/object_graphitewriter.conf.erb'),
content => template('icinga2/object_graphitewrite.conf.erb'),
notify => Service['icinga2'],
}
}

View file

@ -0,0 +1,22 @@
/**
* WARNING: This IdoPgsqlConnection definition is automatically generated by Puppet.
* ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
*/
/**
* The GraphiteWriter type writes check result metrics and
* performance data to a graphite tcp socket.
*/
library "perfdata"
object GraphiteWriter "graphite" {
<%#- If any of the @ parameters are undefined, don't print anything for them: -%>
<%- if @host -%>
<%#- Otherwise, include the parameter: -%>
host = "<%= @host -%>"
<%- end -%>
<%- if @port -%>
port = <%= @port %>
<%- end -%>
}