# Collectd

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Collectd
> Markdown URL: https://mediated.wiki/source/Collectd.md
> Source: https://en.wikipedia.org/wiki/Collectd
> Source revision: 1330308343
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Software for Unix computer systems

collectd Original author Florian Forster Release July 8, 2005; 20 years ago (2005-07-08) Stable release 5.12.0[1] / 3 September 2020; 5 years ago (3 September 2020) Written in C Operating system Any Unix-like Available in English Type Capacity planning License MIT License & GNU General Public License, version 2 Website collectd.org Repository github.com/collectd/collectd

- [Free and open-source software portal](https://en.wikipedia.org/wiki/Portal:Free_and_open-source_software)

**collectd** is a Unix [daemon](/source/Daemon_(computing)) that collects, transfers and stores performance data of computers and network equipment. The acquired data is meant to help [system administrators](/source/System_administrators) maintain an overview over available resources to detect existing or looming bottlenecks.

The first version of the daemon was written in 2005 by Florian Forster and has been further developed as [free open-source project](/source/Free_software). Other developers have written improvements and extensions to the software that have been incorporated into the project.[2] Most files of the [source code](/source/Source_code) are licensed under the terms of the [GNU General Public License](/source/GNU_General_Public_License), version 2 (GPLv2), the remaining files are licensed under other [open source licenses](/source/Open_source_license).[3]

## Operation

*collectd* uses a [modular design](/source/Modular_design): The daemon itself only implements infrastructure for filtering and relaying data as well as auxiliary functions and requires very few resources, it even runs on [OpenWrt](/source/OpenWrt)-powered [embedded devices](/source/Embedded_system). Data acquisition and storage is handled by [plug-ins](/source/Plug-in_(computing)) in the form of [shared objects](/source/Shared_object).[4] This way code specific to one [operating system](/source/Operating_system) is mostly kept out of the actual daemon. Plug-ins may have their own dependencies, for example a specific operating system or [software libraries](/source/Library_(computing)). Other tasks performed by the plug-ins include processing of “notifications” and [log messages](/source/Data_logging).

Data acquisition plug-ins, called "read plug-ins" in collectd's documentation, can be roughly put into three categories:

- Operating system plug-ins collect information such as CPU utilization, memory usage, or number of users logged into a system. These plug-ins usually need to be [ported](/source/Porting) to each operating system. Not all such plug-ins are available for all operating systems.

- Application plug-ins collect performance data from or about an application running on the same or a remote computer, for example the [Apache HTTP Server](/source/Apache_HTTP_Server). These plug-ins often use software libraries but are usually otherwise operating system independent.

- Generic plug-ins offer basic functions that the user can employ to perform specific tasks. Examples are querying of network equipment using [SNMP](/source/Simple_Network_Management_Protocol) or execution of custom programs or scripts.

So called "write plug-ins" offer the possibility to store the collected data on disk using [RRD](/source/RRDtool)- or [CSV](/source/Comma-separated_values)-files, or to send data over the network to a remote instance of the daemon.

## Networking

Included in the source code distribution of collectd is the so-called "network" plug-in, which can be used to send and receive data to/from other instances of the daemon. In a typical networked setup the daemon would run on each monitored host (called "clients") with the network plug-in configured to send collected data to one or more network addresses. On one or more so called "servers" the same daemon would run but with a different configuration, so that the network plug-in receives data instead of sending it. Often the *[RRDtool](/source/RRDtool)*-plug-in is used on servers to store the performance data.[5]

The plug-in uses a binary network protocol over [UDP](/source/User_Datagram_Protocol). Both, [IPv4](/source/IPv4) and [IPv6](/source/IPv6) are supported as [network layer](/source/Network_layer). It is possible to use [unicast](/source/Unicast) (point-to-point) and [multicast](/source/Multicast) (point-to-group) addressing. Authentication and encryption has been added to the protocol with version 4.7.0, released in May 2009.

## See also

- [Cacti](/source/Cacti_(software))

- [Comparison of network monitoring systems](/source/Comparison_of_network_monitoring_systems)

- [Multi Router Traffic Grapher](/source/Multi_Router_Traffic_Grapher) (MRTG)

- [Munin](/source/Munin_(network_monitoring_application))

- [Shinken (software)](/source/Shinken_(software))

- [System monitor](/source/System_monitor)

- [Zabbix](/source/Zabbix)

## References

1. **[^](#cite_ref-wikidata-bffe36eb761b483d375b1ea4d3206f18765a8e7a-v20_1-0)** ["Release 5.12.0"](https://github.com/collectd/collectd/releases/tag/collectd-5.12.0). 3 September 2020. Retrieved 6 September 2020.

1. **[^](#cite_ref-2)** ["Git - collectd.git/blob - AUTHORS"](https://web.archive.org/web/20160410121211/http://git.verplant.org/?p=collectd.git%3Ba%3Dblob%3Bhb%3Dmaster%3Bf%3DAUTHORS). *Git.verplant.org*. Archived from [the original](http://git.verplant.org/?p=collectd.git;a=blob;hb=master;f=AUTHORS) on April 10, 2016. Retrieved April 11, 2016.

1. **[^](#cite_ref-3)** ["Copyright"](https://web.archive.org/web/20110605105512/http://packages.debian.org/changelogs/pool/main/c/collectd/current/copyright). Archived from [the original](http://packages.debian.org/changelogs/pool/main/c/collectd/current/copyright) on June 5, 2011. Retrieved April 8, 2009.

1. **[^](#cite_ref-4)** ["Features – collectd – The system statistics collection daemon"](http://collectd.org/features.shtml). *Collectd.org*. Retrieved April 11, 2016.

1. **[^](#cite_ref-5)** ["Networking introduction - collectd Wiki"](http://collectd.org/wiki/index.php/Networking_introduction). *Collectd.org*. 2015-02-19. Retrieved 2016-04-11.

## External links

- [Official website](https://collectd.org/)

- [List of available plug-ins](http://collectd.org/wiki/index.php/Table_of_Plugins)

---
Adapted from the Wikipedia article [Collectd](https://en.wikipedia.org/wiki/Collectd) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Collectd?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
