This documentation does not apply to the most recent version of Splunk
® App for Infrastructure (Legacy).
For documentation on the most recent version, go to
the latest release.
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
|
|
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
|
|
Enable Extra Packages for Enterprise Linux (EPEL) repository
|
- Install epel-release.
- CentOS 7: yum install epel-release
- RHEL 7: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- yum --enablerepo=epel install collectd
|
- .conf file: /etc/collectd.conf
- plug-in directory: /usr/lib64/collectd
|
|
Enable Extra Packages for Enterprise Linux (EPEL) repository
|
- Install epel-release.
- CentOS 8: yum install epel-release
- RHEL 8: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
- 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
- wget -qO - http://pkg.ci.collectd.org/pubkey.asc | $_sudo apt-key add -
- echo "deb http://pkg.ci.collectd.org/deb ${debian_distribution} collectd-5.8" | $_sudo tee -a /etc/apt/sources.list.d/collectd-ci.list
- apt-get update
- apt-get --yes install collectd
Option 2: Add repository source and install with --allow-unauthenticated tag
- echo "deb http://pkg.ci.collectd.org/deb ${debian_distribution} collectd-5.8" | $_sudo tee -a /etc/apt/sources.list.d/collectd-ci.list
- apt-get update
- 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
|
https://download.opensuse.org/repositories/server:/monitoring/
|
- zypper -n addrepo 'https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_42.3/server:monitoring.repo'
- zypper -n --gpg-auto-import-keys refresh 'server_monitoring'
- 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
|
|
- zypper -n addrepo 'https://download.opensuse.org/repositories/server:monitoring/SLE_15/server:monitoring.repo'
- zypper -n --gpg-auto-import-keys refresh 'server_monitoring'
- zypper -n addrepo 'https://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-15/standard/openSUSE:Backports:SLE-15.repo'
- zypper -n --gpg-auto-import-keys refresh 'openSUSE_Backports_SLE-15'
- zypper install collectd
|
- .conf file: /etc/collectd.conf
- plug-in directory: /usr/lib64/collectd
|
Solaris x86 10, 11
|
https://www.opencsw.org/packages/CSWcollectd/
|
- pkgadd -d http://get.opencsw.org/now all
- /opt/csw/bin/pkgutil -U
- /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
|
- collectd_formula_5_8_1='https://raw.githubusercontent.com/Homebrew/homebrew-core/3d1768d3ddb219254e2db6d255c11647498b47e7/Formula/collectd.rb'
- 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
|
Feedback submitted, thanks!