How to Install and Configure ‘Collectd’ and ‘Collectd-Web’ to Monitor Server Resources in Linux

Page 1 of 212

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

12 Responses

  1. kumar says:

    This post is bit out dated for CentOS 7.2 yum install collectd does not seem to create folder /etc/collectd/collectd.conf.d or /etc/collectd. collectd.conf file is installed in /etc/collectd.conf. How do i get collectd-web to work with collectd. the version it is installing is collectd.x86_64 0:5.5.2-1.el7

    • Ravi Saive says:

      @Kumar

      Thanks for pointing out those configuration files of Collectd, let me check the instructions on latest CentOS 7.2 and will update the article with new supported instructions..

  2. Gabonvikar says:

    I want to point out that this is by no means a complete instructional when dealing with Centos 6.7

    There were several steps required in order to make this work, such as:

    Un-commenting out the rrdtool plugin line in collectd.conf.
    Adding the rrdtool plugin definition in collectd.conf https://collectd.org/wiki/index.php/Plugin:RRDtool
    Creating a configuration file: collection.conf in /etc/collectd for collectd-web to get rrdfile location details from. https://www.sub-design.co.uk/wordpress/?p=755
    Installing the collectd-rrdtool package https://www.sub-design.co.uk/wordpress/?p=769

    After I had gone though and did all of these things, collectd started loading information in to my collectd-web interface, but not before. I hope this helps someone who is stuck.

  3. Jagpac says:

    Thank you. This is a great article and I now have everything set up. However, does anybody know how to protect the web interface with a password ? I just don’t like the idea that anybody can connect on the interface and see the data.

    • Matei Cezar says:

      htpasswd –c /path/to/collectd_directory/.htpasswd your_user

      Open Apache config file and add the following statements:

      AuthType basic
      AuthName “What ever message you want”
      AuthBasicProvider file
      AuthUserFile /path/to/collectd_directory/.htpasswd
      Require user your_user

      Then a2enmod auth_basic and restart apache daemon.

      • Jagpac says:

        Thank you for your answer. However, I don’t think this solution is appropriate here because we’re not using Apache for the web interface (we are using a python module).
        I found a solution by modifying the runserver.py file using the information on this page : https://gist.github.com/fxsjy/5465353

        I simply put the content of the class AuthHandler in the class Handler of the runserver.py file and added a few more lines here and there (to use the key and import the stuff needed) and it works !

  4. Cooky says:

    Thank you so much! You saved my day, ur post is great for beginners like me! Could follow every step :)

  5. G says:

    Wow this is a great article. I didn’t have to go off your steps once which is rare in my experience.

  6. omipenguin says:

    Great post as usual. But i prefer Munin Server-Client. Can anyone is tecmint please make a tutorial on SAN. I know no one own SAN at home. But it will be helpful if someone make a demo on

    1: Discovering HBA and what is WWN and how to know
    2: Discovering LUN
    3: And multipathing

    Because this is one critical thing and Information on this subject is just scattered and there is no sequence like what thing should be done first and then and then and then ……

    Please please make a tut on it or if not possible then please give us theoretical tutorial with commands ……. Thanks and Bless you

  7. konrad says:

    Hi,
    Great article. Could You write manual ex: svn+trac oraz gitolite with migrate actual svn/trac/git arch ?

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?