Plugin:Write HTTP
From collectd Wiki
Write HTTP plugin | |
---|---|
Type: | write |
Status: | in development |
First version: | 1.3 |
Copyright: | 2009 Paul Sadauskas 2009 Doug MacEachern 2007–2009 Florian octo Forster |
License: | GPLv2 |
Manpage: | n/a |
List of Plugins |
The Write HTTP plugin sends the values collected by collectd to a web-server using HTTP POST requests. The data is formatted as PUTVAL
commands, see plain text protocol.
In order to improve performance the plugin fills a 4 kByte buffer as full as possible end sends multiple lines at once.
Contents
Synopsis
<Plugin "write_http"> <URL "http://example.com/post-collectd"> User "collectd" Password "weCh3ik0" </URL> </Plugin>
Example data
The data transmitted to the web-server has the following form:
PUTVAL leeloo.lan.home.verplant.org/disk-sda/disk_octets interval=10 1251533299:197141504:175136768 PUTVAL leeloo.lan.home.verplant.org/disk-sda/disk_ops interval=10 1251533299:10765:12858 PUTVAL leeloo.lan.home.verplant.org/disk-sda/disk_time interval=10 1251533299:5:140 PUTVAL leeloo.lan.home.verplant.org/disk-sda/disk_merged interval=10 1251533299:4658:29899 ⋮