Comment 3 for bug 615509

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote : Re: curl_json plugin is unable to check local files

TEST CASE:
Modify /etc/collectd/collectd.conf and add for instance:
<Plugin curl_json>
  <URL "file:///var/lib/transmission-daemon/info/stats.json">
    Instance "bittorrent"

    <Key "downloaded-bytes">
      Type "bt_bytes"
    </Key>

    <Key "uploaded-bytes">
      Type "bt_bytes"
    </Key>
  </URL>
</Plugin>

restart collectd

You'll see the error "curl_json plugin: curl_easy_perform failed with response code 0 (file:///var/lib/transmission-daemon/info/stats.json)" in the log file daemon.log
========================================