# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 collectd

查看 collectd 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:collectd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install collectd
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install collectd
```

  证据: MacPorts ports tree: sysutils/collectd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add collectd
```

  证据: Alpine Linux edge package indexes: collectd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install collectd
```

  证据: Debian stable package indexes: collectd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install collectd
```

  证据: Fedora Rawhide package metadata: collectd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#collectd
```

  证据: nixpkgs package indexes: pkgs/by-name/co/collectd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install collectd
```

  证据: openSUSE Tumbleweed package metadata: collectd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:collectd
- **软件包管理器:** Homebrew
- **版本:** 5.12.0
- **来源摘要:** Statistics collection and monitoring daemon
- **主页:** <https://collectd.org/>
- **仓库:** <https://github.com/collectd/collectd>
- **最后更新:** 2026-07-10T13:05:06-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- collectd (别名)
- collectd-nagios (别名)
- collectd-tg (别名)
- collectdctl (别名)
- collectdmon (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.12.0
## 项目历史与用法

collectd is a small daemon that periodically collects system information and provides mechanisms to store and monitor the collected values.

### 项目历史

The official README presents collectd as a system information collection daemon with a plugin-centered architecture for collecting metrics from operating systems, services, hardware, and applications.

The project has a long 3.x, 4.x, and 5.x release history in its official tag namespace, with later 6.0 release candidates visible in the official repository.

### 采用历史

collectd was widely adopted by Unix and Linux distributions as a lightweight host metrics collector before newer cloud-native agents became common. The input package facts show it packaged across apk, Homebrew, Debian, Fedora, MacPorts, Nix, Ubuntu, and zypper ecosystems.

Its plugin set helped it fit many monitoring stacks: local collection, network forwarding, RRD-style storage, and integrations with systems such as Apache, BIND, Ceph, cgroups, DPDK, OpenLDAP, and many hardware or kernel interfaces.

### 使用方式

Users run collectd as a daemon, configure global settings and LoadPlugin blocks in collectd.conf, and use companion commands such as collectdctl, collectdmon, collectd-nagios, and collectd-tg for control or integration.

### 为什么软件包爱好者会关心

collectd is package-manager significant because it is a classic plugin-heavy daemon: downstream packages often split or toggle plugin dependencies, ship init/service integration, and place collectd.conf under the package sysconfdir.

### 时间线

- 2000s: collectd 3.x and 4.x release tags appear in the official repository history.
- 2010s: collectd 5.x becomes the long-running packaged release series.
- 2020s: Official repository contains 6.0 release-candidate tags.

### Related projects

- collectd sits in the same operational space as host monitoring agents, metrics forwarders, RRD-based collection setups, and Nagios-compatible monitoring integrations.

### 来源

- <https://collectd.org/>
- <https://collectd.org/documentation>
- <https://github.com/collectd/collectd>
- <https://github.com/collectd/collectd/blob/main/src/collectd.conf.in>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: sysconfdir/collectd.conf
## 其他软件包管理器记录

- Debian apt - collectd - 5.12.0-26: normalized package name match | Debian stable package indexes: collectd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | statistics collection and monitoring daemon | https://collectd.org/
- Debian apt - collectd-core - 5.12.0-26: normalized package name match | Debian stable package indexes: collectd-core from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | statistics collection and monitoring daemon (core system) | https://collectd.org/
- Debian apt - collectd-dev - 5.12.0-26: normalized package name match | Debian stable package indexes: collectd-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | statistics collection and monitoring daemon (development files) | https://collectd.org/
- Debian apt - collectd-utils - 5.12.0-26: normalized package name match | Debian stable package indexes: collectd-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | statistics collection and monitoring daemon (utilities) | https://collectd.org/
- Debian apt - libcollectdclient-dev - 5.12.0-26: normalized package name match | Debian stable package indexes: libcollectdclient-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | client library for collectd's control interface (development files) | https://collectd.org/
- Debian apt - libcollectdclient1t64 - 5.12.0-26: normalized package name match | Debian stable package indexes: libcollectdclient1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | client library for collectd's control interface | https://collectd.org/
- Nix - collectd: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/collectd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - collectd - 5.12.0-17.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: collectd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | statistics collection and monitoring daemon | https://collectd.org/
- Ubuntu apt - collectd-core - 5.12.0-17.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: collectd-core from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | statistics collection and monitoring daemon (core system) | https://collectd.org/
- Ubuntu apt - collectd-dev - 5.12.0-17.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: collectd-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | statistics collection and monitoring daemon (development files) | https://collectd.org/
- Ubuntu apt - collectd-utils - 5.12.0-17.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: collectd-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | statistics collection and monitoring daemon (utilities) | https://collectd.org/
- Ubuntu apt - libcollectdclient-dev - 5.12.0-17.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libcollectdclient-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | client library for collectd's control interface (development files) | https://collectd.org/
- Ubuntu apt - libcollectdclient1t64 - 5.12.0-17.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libcollectdclient1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | client library for collectd's control interface | https://collectd.org/
- apk - collectd - 5.12.0-r25: normalized package name match | Alpine Linux edge package indexes: collectd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The system statistics collection daemon | https://collectd.org/
- apk - collectd-amqp - 5.12.0-r25: normalized package name match | Alpine Linux edge package indexes: collectd-amqp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | amqp pluin for collectd | https://collectd.org/
- apk - collectd-apache - 5.12.0-r25: normalized package name match | Alpine Linux edge package indexes: collectd-apache from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | apache pluin for collectd | https://collectd.org/


## Combined YAML source

View the package source record on GitHub. [combined/collectd.yml](https://github.com/mxcl/pkgdb/blob/main/combined/collectd.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
