Splunk® App for Infrastructure (Legacy)

Administer Splunk App for Infrastructure

Acrobat logo Download manual as PDF

This documentation does not apply to the most recent version of Splunk® App for Infrastructure (Legacy). Click here for the latest version.
Acrobat logo 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

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, 10 https://packages.debian.org/stretch/collectd apt-get install collectd
  • .conf file: /etc/collectd/collectd.conf
  • plug-in directory: /usr/lib/collectd
Ubuntu 18, 19 https://packages.ubuntu.com/bionic/collectd apt-get install collectd
  • .conf file: /etc/collectd/collectd.conf
  • plug-in directory: /usr/lib/collectd
  • openSUSE 42.3
  • SUSE Enterprise 12.3, 12.4
  1. zypper -n addrepo 'https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_42.3/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

openSUSE 15.0, 15.1 https://software.opensuse.org/package/collectd 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
  1. collectd_formula_5_8_1='https://raw.githubusercontent.com/Homebrew/homebrew-core/3d1768d3ddb219254e2db6d255c11647498b47e7/Formula/collectd.rb'
  2. brew install "$collectd_formula_5_8_1"
  • .conf file: /usr/local/Cellar/collectd/<version>/etc/collectd.conf
  • plug-in directory: /usr/local/Cellar/collectd/<version>/lib/collectd
Last modified on 04 February, 2020
About using collectd
Update SELinux to allow for data collection in Splunk App for Infrastructure

This documentation applies to the following versions of Splunk® App for Infrastructure (Legacy): 1.3.0, 1.3.1, 1.4.0, 1.4.1, 2.0.0, 2.0.1

Was this documentation topic helpful?

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