====== Collectd met ELK als metric server op CentOS 7 ======
===== Installatie =====
Installeer Elasticsearch volgens [[installatie_handleidingen:elasticsearch|deze handleiding]].
Installeer Logstash volgens [[installatie_handleidingen:logstash|deze handleiding]].
En installeer Kibana volgens [[installatie_handleidingen:kibana|deze handleiding]].
Installer collectd op de te monitoren clients:
voor CentOS:\\
''yum install epel-release\\
yum install collectd''
voor Debian/Ubuntu:\\
''apt-get install collectd collectd-utils''
===== Collectd configuratie op clients=====
FIXME
===== Logstash server configuratie =====
Maak een input configuratie voor collectd data:\\
''vi /etc/logstash/conf.d/collectd-input.conf''
en zet hier in:
input {
udp {
port => 25826 # 25826 matches port specified in collectd.conf
buffer_size => 1452 # 1452 is the default buffer size for Collectd
codec => collectd { } # specific Collectd codec to invoke
type => collectd
}
}
pas de ouput configuratie aan:\\
''vi /etc/logstash/conf.d/output.conf''
en voeg toe:
# output van collectd data
output {
if [type] == "collectd" {
elasticsearch {
cluster => cluster-voorbeeld # de naam van ons elasticsearch cluster.name
protocol => http
}
}
}
===== Bronnen =====
[[https://mtalavera.wordpress.com/2015/02/16/monitoring-with-collectd-and-kibana/]]
[[https://www.elastic.co/blog/logstash-collectd-input-plugin]]