summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d939297)
raw | patch | inline | side by side (parent: d939297)
author | Pavel Rochnyack <pavel2000@ngs.ru> | |
Mon, 19 Sep 2016 09:22:36 +0000 (15:22 +0600) | ||
committer | Pavel Rochnyack <pavel2000@ngs.ru> | |
Sat, 30 Sep 2017 11:31:34 +0000 (18:31 +0700) |
src/collectd.conf.pod | patch | blob | history | |
src/curl_xml.c | patch | blob | history |
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 05e205f093200727467310966512f10c29918a50..ee7902c08a4abd01ab0e23dca419678906f19916 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
@@ -1888,6 +1888,7 @@ The B<curl_xml plugin> uses B<libcurl> (L<http://curl.haxx.se/>) and B<libxml2>
<Plugin "curl_xml">
<URL "http://localhost/stats.xml">
Host "my_host"
+ #Plugin "curl_xml"
Instance "some_instance"
User "collectd"
Password "thaiNg0I"
=item B<Instance> I<Instance>
-Use I<Instance> as the plugin instance when submitting values. Defaults to an
-empty string (no plugin instance).
+Use I<Instance> as the plugin instance when submitting values.
+May be overridden by B<PluginInstanceFrom> option inside B<XPath> blocks.
+Defaults to an empty string (no plugin instance).
-=item B<PluginName> I<PluginName>
+=item B<Plugin> I<Plugin>
-Use I<PluginName> as the plugin name when submitting values.
+Use I<Plugin> as the plugin name when submitting values.
Defaults to 'curl_xml'.
=item B<Namespace> I<Prefix> I<URL>
diff --git a/src/curl_xml.c b/src/curl_xml.c
index 6479b9417610f5f25f7a02b9fbaa6cdf375fab5a..20048d0ed76c89a63cc334572718a9eb71f248ac 100644 (file)
--- a/src/curl_xml.c
+++ b/src/curl_xml.c
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);