curl http://pkg.ci.collectd.org/pubkey.asc | sudo apt-key add -
sudo bash -c 'echo "deb http://pkg.ci.collectd.org/deb/ trusty collectd-5.5" > /etc/apt/sources.list.d/collectd-ci.list'
sudo apt-get update
sudo apt-get install collectd # This should install collectd version 5.5.x
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - source /etc/lsb-release echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list sudo apt-get update && sudo apt-get install influxdb sudo service influxdb start curl -G localhost:8086/query --data-urlencode "q=CREATE DATABASE collectd_db"
Edit /etc/influxdb/influxdb.conf collectd section part with the following:
[collectd]
enabled = true
bind-address = "localhost:25826"
database = "collectd_db"
typesdb = "/usr/share/collectd/types.db"
Edit /etc/collectd/collectd.conf to enable the Network plugin uncommenting the line
LoadPlugin network
and add the following network plugin config
<Plugin network>
<Server "127.0.0.1" "25826">
</Server>
</Plugin>
Restart influxdb and collectd:
sudo service influxdb restart
sudo service collectd restart
You should be able to find new series in collectd_db in influxdb admin page
cat /etc/influxdb/influxdb.conf