From collectd Wiki
Revision as of 11:48, 6 July 2010 by Octo (talk | contribs) (See also: Add links to the other cURL plugins.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
cURL plugin
Type: read
Callbacks: config, init, read, shutdown
Status: supported
First version: 4.6
Copyright: 2006–2009 Florian octo Forster
2009 Aman Gupta
License: GPLv2
Manpage: collectd.conf(5)
List of Plugins

The cURL plugin uses libcurl to read files and then parses them according to the configuration. The cURL library is best known to read web pages via HTTP, but a lot more protocol handlers are available, so reading via SSH or from FTP is available as well as local access via file://.

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 section of the collectd.conf(5) manual page for an in-depth description of the plugin's configuration.


→ See: Example configurations
<Plugin curl>
  <Page "stock_quotes">
    URL ""
    User "foo"
    Password "bar"
      Regex "]*> *([0-9]*\\.[0-9]+) *"
      DSType "GaugeAverage"
      # Note: "stock_value" is not a standard type.
      # Read types.db(5) for details on "types".
      Type "stock_value"
      Instance "AMD"

Example graphs

Libcurl tattomedia regexp example.png

  • Example above from Scott M. Likens <>; from usage at Tatto Media.


See also