From collectd Wiki
Revision as of 16:15, 13 January 2010 by Octo (talk | contribs) (Created initial page.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
cURL-XML plugin
Type: read
Callbacks: config, read
Status: in development
First version: 4.10
Copyright: 2009,2010 Amit Gupta
License: GPLv2
Manpage: collectd.conf(5)
List of Plugins

The cURL-XML plugin reads files using libcurl and parses it as Extensible Markup Language (XML). The parsed tree is then traversed according to the user's configuration, using the XML Path Language (XPath).

This plugin is a generic plugin, i.e. it cannot work without configuration, because there is no reasonable default behavior. Please read the Plugin curl_xml section of the collectd.conf(5) manual page for an in-depth description of the plugin's configuration.


<Plugin "curl_xml">
  <URL "http://localhost/stats.xml">
    Host "my_host"
    Instance "some_instance"
    User "collectd"
    Password "thaiNg0I"
    VerifyPeer true
    VerifyHost true
    CACert "/path/to/ca.crt"
    <XPath "table[@id=\"magic_level\"]/tr">
      Type "magic_level"
      #InstancePrefix "prefix-"
      InstanceFrom "td[1]"
      ValuesFrom "td[2]/span[@class=\"level\"]"

Example graphs

None yet. Add one now!


See also