From 7489cc8d0ad84e9621ab6d7fe005313ddb2a92e3 Mon Sep 17 00:00:00 2001 From: Benjamin Dos Santos Date: Tue, 4 Nov 2014 20:57:51 +0100 Subject: [PATCH 1/2] curl : 'MeasureResponseTime' needs exactly one boolean argument Removing double quotes avoid this error. --- templates/plugin/curl-page.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/plugin/curl-page.conf.erb b/templates/plugin/curl-page.conf.erb index 1ece4825c..150d644c9 100644 --- a/templates/plugin/curl-page.conf.erb +++ b/templates/plugin/curl-page.conf.erb @@ -23,7 +23,7 @@ Post "<%= @post %>" <% end -%> <% if @measureresponsetime -%> - MeasureResponseTime "<%= @measureresponsetime %>" + MeasureResponseTime <%= @measureresponsetime %> <% end -%> <%= scope.function_template(["collectd/plugin/match.tpl.erb"]) %> From 9a092b47dd8f8bf932445f77ede283256c965ab9 Mon Sep 17 00:00:00 2001 From: Benjamin Dos Santos Date: Wed, 5 Nov 2014 13:41:39 +0100 Subject: [PATCH 2/2] Use '@plugininstance' to avoid warning message about deprecation --- templates/plugin/curl-page.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/plugin/curl-page.conf.erb b/templates/plugin/curl-page.conf.erb index 150d644c9..8ecccef34 100644 --- a/templates/plugin/curl-page.conf.erb +++ b/templates/plugin/curl-page.conf.erb @@ -1,5 +1,5 @@ - "> + "> URL "<%= @url %>" <% if @user -%> User "<%= @user %>"