Skip to content

Instantly share code, notes, and snippets.

@ffr4nz
Forked from tnolet/gist:7361441
Created July 10, 2015 08:03
Show Gist options
  • Select an option

  • Save ffr4nz/fa413f4bca00bfdfae17 to your computer and use it in GitHub Desktop.

Select an option

Save ffr4nz/fa413f4bca00bfdfae17 to your computer and use it in GitHub Desktop.

Revisions

  1. ffr4nz revised this gist Jul 10, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # Perform installation as root
    # Install prereqs

    yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++
    yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-perl libgcrypt-devel gcc make gcc-c++

    # Get Collectd, untar it, make it and install

  2. @tnolet tnolet revised this gist Dec 3, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # Perform installation as root
    # Install prereqs

    yum -y install rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++
    yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++

    # Get Collectd, untar it, make it and install

  3. @tnolet tnolet revised this gist Nov 7, 2013. 1 changed file with 18 additions and 0 deletions.
    18 changes: 18 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -14,3 +14,21 @@ make
    make install


    # Copy the default init.d script

    cp /root/collectd-5.4.0/contrib/redhat/init.d-collectd /etc/init.d/collectd

    # Set the correct permissions

    chmod +x /etc/init.d/collectd

    # Start the deamon

    service collectd start


    # NOTE! FQDN lookup is enabled by default. This might give you troubles if you'r running on Vagrant or some cloud server
    # Check /var/log/messages for something like "Looking up "<yourhost>" failed. You have set the "FQDNLookup" option, but I cannot resolve my hostname...
    # The fix is easy, just set "FQDNLookup false" in /etc/collectd.conf


  4. @tnolet tnolet created this gist Nov 7, 2013.
    16 changes: 16 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #!/bin/bash
    # Perform installation as root
    # Install prereqs

    yum -y install rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++

    # Get Collectd, untar it, make it and install

    wget http://collectd.org/files/collectd-5.4.0.tar.gz
    tar zxvf collectd-5.4.0.tar.gz
    cd collectd-5.4.0
    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --mandir=/usr/share/man --enable-all-plugins
    make
    make install