2015年1月16日 星期五

Collectd Installation

Install : 
# apt-get install collectd

Configuration :
# vi /etc/collectd/collectd.conf
Hostname "XXX"
BaseDir "/var/lib/collectd"
PIDFile "/var/run/collectd.pid"
PluginDir "/usr/local/lib/collectd"
TypesDB "/usr/local/share/collectd/types.db"
Interval 10
# 停用 rrdtool
# LoadPlugin rrdtool

# 啓用輸出到 graphite

LoadPlugin write_graphite





Host "localhost"
Port "2003"
Protocol "tcp"
LogSendErrors true
Prefix "collectd."
StoreRates true
AlwaysAppendDS false
EscapeCharacter "_"
# /etc/init.d/collectd restart



References :
How To Configure Collectd to Gather System Metrics for Graphite on Ubuntu 14.04 | DigitalOcean

沒有留言:

張貼留言