How to Install CollectD on CentOS / Fedora

April 9, 2015 No Comments collectd

install collectd on centos and fedora
CollectD is one of the best daemons for regularly collecting system metrics. Today we will focus on installing and running CollectD the easy way on Linux Redhat’s CentOS and Fedora.

Install CollectD

Since we will compile CollectD from source, we need a compiler:

Next we download CollectD 5.5.0:

The Fedora compiler might yield warnings as errors like these:
error: #warning “_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE” [-Werror=cpp]
If so you will need to disable warnings as errors first before you run ./configure

Now compile and install:

Start CollectD on Startup

The easy way to manage CollectD on CentOS and Fedora is by using systemd.

CollectD will now run at startup, but you can still manage it manually:

By default you will find:

  • The configuration file at /opt/collectd/etc/collectd.conf
  • The collectd binary at /opt/collectd/sbin/collectd

Send Metrics to Database

To use CollectD You need to send its metrics frequently to a database for monitoring:

System and App Monitoring with CollectD

By default CollectD only monitors CPU, memory, interface and load.
You can configure CollectD to monitor much more:

Monitor & detect anomalies with

help with term papers