There are RPM packages for collectd in CentOS 6.x, you will need the EPEL repository.

If you want an easy web interface to the graphs, there is a collectd-web package available, but that package actually refers to the collection3 frontend. If you prefer the original collectd-web, then you will need to install it from its GitHub site.

The most important thing is to create the /etc/collectd/collection.conf file. Be careful; if you want to change the path, you will need to modify the sources.

Here’s an example of the collection file content for CentOS:

datadir: "/var/lib/collectd/"

And a minimal configuration for Apache would be like: