From: Pavel Rochnyack Date: Mon, 19 Sep 2016 09:22:36 +0000 (+0600) Subject: curl_xml: Renamed 'PluginName' option to unified 'Plugin'. X-Git-Tag: collectd-5.8.0~59^2~7 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a1679b7aac30698dbe758c466018b593469608cb;p=collectd.git curl_xml: Renamed 'PluginName' option to unified 'Plugin'. --- 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);