From a1679b7aac30698dbe758c466018b593469608cb Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Mon, 19 Sep 2016 15:22:36 +0600 Subject: [PATCH] curl_xml: Renamed 'PluginName' option to unified 'Plugin'. --- src/collectd.conf.pod | 10 ++++++---- src/curl_xml.c | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 05e205f0..ee7902c0 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -1888,6 +1888,7 @@ The B uses B (L) and B Host "my_host" + #Plugin "curl_xml" Instance "some_instance" User "collectd" Password "thaiNg0I" @@ -1928,12 +1929,13 @@ host name setting. =item B I -Use I as the plugin instance when submitting values. Defaults to an -empty string (no plugin instance). +Use I as the plugin instance when submitting values. +May be overridden by B option inside B blocks. +Defaults to an empty string (no plugin instance). -=item B I +=item B I -Use I as the plugin name when submitting values. +Use I as the plugin name when submitting values. Defaults to 'curl_xml'. =item B I I diff --git a/src/curl_xml.c b/src/curl_xml.c index 6479b941..20048d0e 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -959,7 +959,7 @@ static int cx_config_add_url(oconfig_item_t *ci) /* {{{ */ if (strcasecmp("Instance", child->key) == 0) status = cf_util_get_string(child, &db->instance); - else if (strcasecmp("PluginName", child->key) == 0) + else if (strcasecmp("Plugin", child->key) == 0) status = cf_util_get_string(child, &db->plugin_name); else if (strcasecmp("Host", child->key) == 0) status = cf_util_get_string(child, &db->host); -- 2.11.0