在Centos7安裝Collectd並與graphite集成

下載RPM相關

sudo yum install -y make automake gcc gcc-c++ kernel-devel perl-devel

安裝Collectd5.10.0

wget https://storage.googleapis.com/collectd-tarballs/collectd-5.10.0.tar.bz2

./configure

make all install

配置文件:

/opt/collectd/etc/collectd.conf

找到以下這部分:

#<Plugin write_graphite>
#  <Node "example">
#    Host "localhost"
#    Port "2003"
#    Protocol "tcp"
#    ReconnectInterval 0
#    LogSendErrors true
#    Prefix "collectd"
#    Postfix "collectd"
#    StoreRates true
#    AlwaysAppendDS false
#    EscapeCharacter "_"
#    SeparateInstances false
#    PreserveSeparator false
#    DropDuplicateFields false
#    ReverseHost false
#  </Node>
#</Plugin>

啓動collectd

方法1:systemctl start collectd.service

方法2:/opt/collectd/sbin/collectd

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章