Collectd Installation
From r00tedvw.com wiki
(Difference between revisions)
| Line 3: | Line 3: | ||
==Configuration== | ==Configuration== | ||
Backup the conf | Backup the conf | ||
| − | <nowiki>~$ sudo cp /etc/collectd.conf /etc/collectd.conf_backup</nowiki> | + | <nowiki>~$ sudo cp /etc/collectd/collectd.conf /etc/collectd/collectd.conf_backup</nowiki> |
| + | Edit the conf | ||
| + | <nowiki>~$ sudo vi /etc/collectd/collectd.conf</nowiki> | ||
| + | Uncomment the network plugin to feed influxdb | ||
| + | <nowiki>LoadPlugin network</nowiki> | ||
| + | Configure the network plugin | ||
| + | <nowiki><Plugin network> | ||
| + | <Server "localhost" "25826"> | ||
| + | SecurityLevel Encrypt | ||
| + | Username "influx" | ||
| + | Password "influxdb" | ||
| + | Interface "eth0" | ||
| + | </Server> | ||
| + | </Plugin></nowiki> | ||
Revision as of 01:08, 1 July 2016
Ubuntu 14.04 Installation
~$ sudo apt-get update && sudo apt-get install collectd collectd-utils -y
Configuration
Backup the conf
~$ sudo cp /etc/collectd/collectd.conf /etc/collectd/collectd.conf_backup
Edit the conf
~$ sudo vi /etc/collectd/collectd.conf
Uncomment the network plugin to feed influxdb
LoadPlugin network
Configure the network plugin
<Plugin network>
<Server "localhost" "25826">
SecurityLevel Encrypt
Username "influx"
Password "influxdb"
Interface "eth0"
</Server>
</Plugin>