Splunk® App for Infrastructure

Administer Splunk App for Infrastructure

Download manual as PDF

Download topic as PDF

collectd package sources, install commands, and locations

To run some of the following commands, you must log in to an account with permissions to use sudo for root access.

When you run the data collection script for a *nix system, the script installs a compatible version of collectd if it is not found on the system. The following table shares the package source, install commands, and install locations for collectd and the collectd plug-in according to the supported operating system.

Operating system Package source Install command Install locations
  • Centos 6
  • RHEL 6
https://pkg.ci.collectd.org/rpm/collectd-5.7/epel-6-x86_64/ yum install https://pkg.ci.collectd.org/rpm/collectd-5.7/epel-6-x86_64/<collectd.rpm>
  • .conf file: /etc/collectd.conf
  • plug-in directory: /usr/lib64/collectd
  • Centos 7
  • RHEL 7
Enable Extra Packages for Enterprise Linux (EPEL) repository
  1. Install epel-release.
    1. Centos 7: yum install epel-release
    2. RHEL 7: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  2. yum --enablerepo=epel install collectd
  • .conf file: /etc/collectd.conf
  • plug-in directory: /usr/lib64/collectd
Fedora (25+) Fedora collectd packages yum install collectd
  • .conf file: /etc/collectd.conf
  • plug-in directory: /usr/lib64/collectd
  • Debian 7, 8
  • Ubuntu 14, 16
http://pkg.ci.collectd.org/deb/dists/

Option 1 (recommended): add gpg key, repository source, and install

  1. wget -qO - http://pkg.ci.collectd.org/pubkey.asc | $_sudo apt-key add -
  2. echo "deb http://pkg.ci.collectd.org/deb ${debian_distribution} collectd-5.8" | $_sudo tee -a /etc/apt/sources.list.d/collectd-ci.list
  3. apt-get update
  4. apt-get --yes install collectd

Option 2: Add repository source and install with --allow-unauthenticated tag

  1. echo "deb http://pkg.ci.collectd.org/deb ${debian_distribution} collectd-5.8" | $_sudo tee -a /etc/apt/sources.list.d/collectd-ci.list
  2. apt-get update
  3. apt-get --yes --allow-unauthenticated install collectd

{debian_distribution} will be wheezy (Debian 7), jessie (Debian 8), trusty (Ubuntu 14), or xenial (Ubuntu 16).

  • .conf file: /etc/collectd/collectd.conf
  • plug-in directory: /usr/lib/collectd
Debian 9 https://packages.debian.org/stretch/collectd apt-get install collectd
  • .conf file: /etc/collectd/collectd.conf
  • plug-in directory: /usr/lib/collectd
Ubuntu 18.04 https://packages.ubuntu.com/bionic/collectd apt-get install collectd
  • .conf file: /etc/collectd/collectd.conf
  • plug-in directory: /usr/lib/collectd
  • openSUSE 42, 15, Tumbleweed
  • SUSE Enterprise 12
https://download.opensuse.org/repositories/server:/monitoring/
  1. zypper -n addrepo 'https://download.opensuse.org/repositories/server:monitoring/<suse version>/server:monitoring.repo'
  2. zypper -n --gpg-auto-import-keys refresh 'server_monitoring'
  3. zypper install collectd
  • .conf file: /etc/collectd.conf

plug-in directory: /usr/lib64/collectd

SUSE Enterprise 15
  1. zypper -n addrepo 'https://download.opensuse.org/repositories/server:monitoring/SLE_15/server:monitoring.repo'
  2. zypper -n --gpg-auto-import-keys refresh 'server_monitoring'
  3. zypper -n addrepo 'https://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-15/standard/openSUSE:Backports:SLE-15.repo'
  4. zypper -n --gpg-auto-import-keys refresh 'openSUSE_Backports_SLE-15'
  5. zypper install collectd
  • .conf file: /etc/collectd.conf
  • plug-in directory: /usr/lib64/collectd
Solaris x86 10, 11 https://www.opencsw.org/packages/CSWcollectd/
  1. pkgadd -d http://get.opencsw.org/now all
  2. /opt/csw/bin/pkgutil -U
  3. /opt/csw/bin/pkgutil -i collectd
  • .conf file: /etc/opt/csw/collectd.conf
  • plug-in directory: /opt/csw/lib/collectd
Mac OS X https://formulae.brew.sh/formula/collectd brew install collectd
  • .conf file: /usr/local/Cellar/collectd/<version>/etc/collectd.conf
  • plug-in directory: /usr/local/Cellar/collectd/<version>/lib/collectd
PREVIOUS
Configure the HTTP Event Collector to collect metrics data
  NEXT
About using collectd

This documentation applies to the following versions of Splunk® App for Infrastructure: 1.3.0, 1.3.1, 1.4.0, 1.4.1


Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters