From acb5074ff56315aa126a058341945c3918c5b9ba Mon Sep 17 00:00:00 2001 From: Andreas Jaggi Date: Tue, 20 Jan 2015 22:01:25 +0100 Subject: [PATCH] plugin/ntpd: IncludeUnitID option only available in collectd > 5.2 --- templates/plugin/ntpd.conf.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/plugin/ntpd.conf.erb b/templates/plugin/ntpd.conf.erb index e7798ef3b..881534671 100644 --- a/templates/plugin/ntpd.conf.erb +++ b/templates/plugin/ntpd.conf.erb @@ -2,5 +2,7 @@ Host "<%= @host %>" Port "<%= @port %>" ReverseLookups <%= @reverselookups %> +<% if @collectd_version and scope.function_versioncmp([@collectd_version, '5.2']) > 0 -%> IncludeUnitID <%= @includeunitid %> +<% end -%>