From 3f60606f8053f01f607f56905aff7ea45e5fa0a5 Mon Sep 17 00:00:00 2001 From: Daniel Spang Date: Thu, 12 Mar 2015 11:14:51 +0100 Subject: [PATCH] Only set LogSendErrors option if collectd version >= 5.4. LogSendErrors was introduced in 5.4 and earlier versions complain about 'Invalid configration option: LogSendErrors'. --- templates/plugin/write_graphite.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/plugin/write_graphite.conf.erb b/templates/plugin/write_graphite.conf.erb index 6b92f9654..4ab3906ae 100644 --- a/templates/plugin/write_graphite.conf.erb +++ b/templates/plugin/write_graphite.conf.erb @@ -10,8 +10,8 @@ StoreRates <%= @storerates %> AlwaysAppendDS <%= @alwaysappendds %> SeparateInstances <%= @separateinstances %> - LogSendErrors <%= @logsenderrors %> <% if @collectd_version and (scope.function_versioncmp([@collectd_version, '5.4']) >= 0) -%> + LogSendErrors <%= @logsenderrors %> Protocol "<%= @protocol %>" <% end -%>