1 collectd - System information collection daemon
2 =================================================
8 collectd is a small daemon which collects system information periodically
9 and provides mechanisms to store and monitor the values in a variety of
16 * collectd is able to collect the following data:
19 Apache server utilization: Number of bytes transferred, number of
20 requests handled and detailed scoreboard statistics
23 APC UPS Daemon: UPS charge, load, input/output/battery voltage, etc.
26 Sensors in Macs running Mac OS X / Darwin: Temperature, fan speed and
30 Various sensors in the Aquaero 5 water cooling board made by Aquacomputer.
33 Statistics about Ascent, a free server for the game `World of Warcraft'.
36 Reads absolute barometric pressure, air pressure reduced to sea level and
37 temperature. Supported sensors are MPL115A2 and MPL3115 from Freescale
38 and BMP085 from Bosch.
41 Batterycharge, -current and voltage of ACPI and PMU based laptop
45 Name server and resolver statistics from the `statistics-channel'
46 interface of BIND 9.5, 9,6 and later.
49 Statistics from the Ceph distributed storage system.
52 CPU accounting information for process groups under Linux.
55 Chrony daemon statistics: Local clock drift, offset to peers, etc.
58 Number of nf_conntrack entries.
61 Number of context switches done by the operating system.
64 CPU utilization: Time spent in the system, user, nice, idle, and related
68 CPU frequency (For laptops with speed step or a similar technology)
71 CPU sleep: Time spent in suspend (For mobile devices which enter suspend automatically)
74 Parse statistics from websites using regular expressions.
77 Retrieves JSON data via cURL and parses it according to user
81 Retrieves XML data via cURL and parses it according to user
85 Executes SQL statements on various databases and interprets the returned
89 Mountpoint usage (Basically the values `df(1)' delivers)
92 Disk utilization: Sectors read/written, number of read/write actions,
93 average time an IO-operation took to complete.
96 DNS traffic: Query types, response codes, opcodes and traffic/octets
100 Collect DPDK interface statistics.
101 See docs/BUILD.dpdkstat.md for detailed build instructions.
104 Collect individual drbd resource statistics.
107 Email statistics: Count, traffic, spam scores and checks.
108 See collectd-email(5).
111 Amount of entropy available to the system.
114 Network interface card statistics.
117 Values gathered by a custom program or script.
118 See collectd-exec(5).
121 File handles statistics.
124 Count the number of files in directories.
127 Linux file-system based caching framework statistics.
130 Receive multicast traffic from Ganglia instances.
133 Monitor gps related data through gpsd.
136 Send and receive values over the network using the gRPC framework.
139 Hard disk temperatures using hddtempd.
142 Report the number of used and free hugepages. More info on
143 hugepages can be found here:
144 https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt.
147 Interface traffic: Number of octets, packets and errors for each
151 IPC counters: semaphores used, number of allocated segments in shared
155 IPMI (Intelligent Platform Management Interface) sensors information.
158 Iptables' counters: Number of bytes that were matched by a certain
162 IPVS connection statistics (number of connections, octets and packets
163 for each service and destination).
164 See http://www.linuxvirtualserver.org/software/index.html.
167 IRQ counters: Frequency in which certain interrupts occur.
170 Integrates a `Java Virtual Machine' (JVM) to execute plugins in Java
172 See docs/BUILD.java.md for detailed build instructions.
175 System load average over the last 1, 5 and 15 minutes.
178 Detailed CPU statistics of the “Logical Partitions” virtualization
179 technique built into IBM's POWER processors.
182 The Lua plugin implements a Lua interpreter into collectd. This
183 makes it possible to write plugins in Lua which are executed by
184 collectd without the need to start a heavy interpreter every interval.
185 See collectd-lua(5) for details.
188 Size of “Logical Volumes” (LV) and “Volume Groups” (VG) of Linux'
189 “Logical Volume Manager” (LVM).
192 Queries very detailed usage statistics from wireless LAN adapters and
193 interfaces that use the Atheros chipset and the MadWifi driver.
196 Motherboard sensors: temperature, fan speed and voltage information,
200 Linux software-RAID device information (number of active, failed, spare
204 Query and parse data from a memcache daemon (memcached).
207 Statistics of the memcached distributed caching system.
208 <http://www.danga.com/memcached/>
211 Memory utilization: Memory occupied by running processes, page cache,
212 buffer cache and free.
215 Collects CPU usage, memory usage, temperatures and power consumption from
216 Intel Many Integrated Core (MIC) CPUs.
219 Reads values from Modbus/TCP enabled devices. Supports reading values
220 from multiple "slaves" so gateway devices can be used.
223 Publishes and subscribes to MQTT topics.
226 Information provided by serial multimeters, such as the `Metex
230 MySQL server statistics: Commands issued, handlers triggered, thread
231 usage, query cache utilization and traffic/octets sent and received.
234 Plugin to query performance values from a NetApp storage system using the
235 “Manage ONTAP” SDK provided by NetApp.
238 Very detailed Linux network interface and routing statistics. You can get
239 (detailed) information on interfaces, qdiscs, classes, and, if you can
240 make use of it, filters.
243 Receive values that were collected by other hosts. Large setups will
244 want to collect the data on one dedicated machine, and this is the
245 plugin of choice for that.
248 NFS Procedures: Which NFS command were called how often. Only NFSv2 and
252 Collects statistics from `nginx' (speak: engine X), a HTTP and mail
256 NTP daemon statistics: Local clock drift, offset to peers, etc.
259 Information about Non-Uniform Memory Access (NUMA).
262 Network UPS tools: UPS current, voltage, power, charge, utilisation,
263 temperature, etc. See upsd(8).
266 Queries routing information from the “Optimized Link State Routing”
269 - onewire (EXPERIMENTAL!)
270 Read onewire sensors using the owcapu library of the owfs project.
271 Please read in collectd.conf(5) why this plugin is experimental.
274 Read monitoring information from OpenLDAP's cn=Monitor subtree.
277 RX and TX of each client in openvpn-status.log (status-version 2).
278 <http://openvpn.net/index.php/documentation/howto.html>
281 Query data from an Oracle database.
284 The perl plugin implements a Perl-interpreter into collectd. You can
285 write your own plugins in Perl and return arbitrary values using this
286 API. See collectd-perl(5).
289 Query statistics from BSD's packet filter "pf".
292 Receive and dispatch timing values from Pinba, a profiling extension for
296 Network latency: Time to reach the default gateway or another given
300 PostgreSQL database statistics: active server connections, transaction
301 numbers, block IO, table row manipulations.
304 PowerDNS name server statistics.
307 Process counts: Number of running, sleeping, zombie, ... processes.
310 Counts various aspects of network protocols such as IP, TCP, UDP, etc.
313 The python plugin implements a Python interpreter into collectd. This
314 makes it possible to write plugins in Python which are executed by
315 collectd without the need to start a heavy interpreter every interval.
316 See collectd-python(5) for details.
319 The redis plugin gathers information from a Redis server, including:
320 uptime, used memory, total connections etc.
323 Query interface and wireless registration statistics from RouterOS.
326 RRDtool caching daemon (RRDcacheD) statistics.
329 System sensors, accessed using lm_sensors: Voltages, temperatures and
333 RX and TX of serial interfaces. Linux only; needs root privileges.
336 Uses libsigrok as a backend, allowing any sigrok-supported device
337 to have its measurements fed to collectd. This includes multimeters,
338 sound level meters, thermometers, and much more.
341 Collect SMART statistics, notably load cycle count, temperature
345 Read values from SNMP (Simple Network Management Protocol) enabled
346 network devices such as switches, routers, thermometers, rack monitoring
347 servers, etc. See collectd-snmp(5).
350 Acts as a StatsD server, reading values sent over the network from StatsD
351 clients and calculating rates and other aggregates out of these values.
354 Pages swapped out onto hard disk or whatever is called `swap' by the OS..
357 Parse table-like structured files.
360 Follows (tails) log files, parses them by lines and submits matched
364 Follows (tails) files in CSV format, parses each line and submits
368 Bytes and operations read and written on tape devices. Solaris only.
371 Number of TCP connections to specific local and remote ports.
374 TeamSpeak2 server statistics.
377 Plugin to read values from `The Energy Detective' (TED).
380 Linux ACPI thermal zone information.
383 Reads the number of records and file size from a running Tokyo Tyrant
387 Reads CPU frequency and C-state residency on modern Intel
388 turbo-capable processors.
391 System uptime statistics.
394 Users currently logged in.
397 Various statistics from Varnish, an HTTP accelerator.
400 CPU, memory, disk and network I/O statistics from virtual machines.
403 Virtual memory statistics, e. g. the number of page-ins/-outs or the
404 number of pagefaults.
407 System resources used by Linux VServers.
408 See <http://linux-vserver.org/>.
411 Link quality of wireless cards. Linux only.
414 XEN Hypervisor CPU stats.
417 Bitrate and frequency of music played with XMMS.
420 Statistics for ZFS' “Adaptive Replacement Cache” (ARC).
423 Measures the percentage of cpu load per container (zone) under Solaris 10
427 Read data from Zookeeper's MNTR command.
429 * Output can be written or sent to various destinations by the following
433 Sends JSON-encoded data to an Advanced Message Queuing Protocol (AMQP)
434 server, such as RabbitMQ.
437 Write to comma separated values (CSV) files. This needs lots of
438 diskspace but is extremely portable and can be analysed with almost
439 every program that can analyse anything. Even Microsoft's Excel..
442 It's possible to implement write plugins in Lua using the Lua
443 plugin. See collectd-lua(5) for details.
446 Send the data to a remote host to save the data somehow. This is useful
447 for large setups where the data should be saved by a dedicated machine.
450 Of course the values are propagated to plugins written in Perl, too, so
451 you can easily do weird stuff with the plugins we didn't dare think of
452 ;) See collectd-perl(5).
455 It's possible to implement write plugins in Python using the python
456 plugin. See collectd-python(5) for details.
459 Output to round-robin-database (RRD) files using the RRDtool caching
460 daemon (RRDcacheD) - see rrdcached(1). That daemon provides a general
461 implementation of the caching done by the `rrdtool' plugin.
464 Output to round-robin-database (RRD) files using librrd. See rrdtool(1).
465 This is likely the most popular destination for such values. Since
466 updates to RRD-files are somewhat expensive this plugin can cache
467 updates to the files and write a bunch of updates at once, which lessens
471 One can query the values from the unixsock plugin whenever they're
472 needed. Please read collectd-unixsock(5) for a description on how that's
476 Sends data to Carbon, the storage layer of Graphite using TCP or UDP. It
477 can be configured to avoid logging send errors (especially useful when
481 Sends the values collected by collectd to a web-server using HTTP POST
482 requests. The transmitted data is either in a form understood by the
483 Exec plugin or formatted in JSON.
486 Sends data to Apache Kafka, a distributed queue.
489 Writes data to the log
492 Sends data to MongoDB, a NoSQL database.
495 Sends the values to a Redis key-value database server.
498 Sends data to Riemann, a stream processing and monitoring system.
501 Sends data to Sensu, a stream processing and monitoring system, via the
502 Sensu client local TCP socket.
505 Sends data OpenTSDB, a scalable no master, no shared state time series
508 * Logging is, as everything in collectd, provided by plugins. The following
509 plugins keep us informed about what's going on:
512 Writes log messages to a file or STDOUT/STDERR.
515 Log messages are propagated to plugins written in Perl as well.
516 See collectd-perl(5).
519 It's possible to implement log plugins in Python using the python plugin.
520 See collectd-python(5) for details.
523 Logs to the standard UNIX logging mechanism, syslog.
526 Writes log messages formatted as logstash JSON events.
528 * Notifications can be handled by the following plugins:
531 Send a desktop notification to a notification daemon, as defined in
532 the Desktop Notification Specification. To actually display the
533 notifications, notification-daemon is required.
534 See http://www.galago-project.org/specs/notification/.
537 Send an E-mail with the notification message to the configured
541 Submit notifications as passive check results to a local nagios instance.
544 Execute a program or script to handle the notification.
545 See collectd-exec(5).
548 Writes the notification message to a file or STDOUT/STDERR.
551 Send the notification to a remote host to handle it somehow.
554 Notifications are propagated to plugins written in Perl as well.
555 See collectd-perl(5).
558 It's possible to implement notification plugins in Python using the
559 python plugin. See collectd-python(5) for details.
561 * Value processing can be controlled using the "filter chain" infrastructure
562 and "matches" and "targets". The following plugins are available:
564 - match_empty_counter
565 Match counter values which are currently zero.
568 Match values using a hash function of the hostname.
571 Match values by their identifier based on regular expressions.
574 Match values with an invalid timestamp.
577 Select values by their data sources' values.
579 - target_notification
580 Create and dispatch a notification.
583 Replace parts of an identifier using regular expressions.
586 Scale (multiply) values by an arbitrary value.
589 Set (overwrite) entire parts of an identifier.
591 * Miscellaneous plugins:
594 Selects multiple value lists based on patterns or regular expressions
595 and creates new aggregated values lists from those.
598 Checks values against configured thresholds and creates notifications if
599 values are out of bounds. See collectd-threshold(5) for details.
602 Sets the hostname to a unique identifier. This is meant for setups
603 where each client may migrate to another physical host, possibly going
604 through one or more name changes in the process.
606 * Performance: Since collectd is running as a daemon it doesn't spend much
607 time starting up again and again. With the exception of the exec plugin no
608 processes are forked. Caching in output plugins, such as the rrdtool and
609 network plugins, makes sure your resources are used efficiently. Also,
610 since collectd is programmed multithreaded it benefits from hyper-threading
611 and multicore processors and makes sure that the daemon isn't idle if only
612 one plugin waits for an IO-operation to complete.
614 * Once set up, hardly any maintenance is necessary. Setup is kept as easy
615 as possible and the default values should be okay for most users.
621 * collectd's configuration file can be found at `sysconfdir'/collectd.conf.
622 Run `collectd -h' for a list of built-in defaults. See `collectd.conf(5)'
623 for a list of options and a syntax description.
625 * When the `csv' or `rrdtool' plugins are loaded they'll write the values to
626 files. The usual place for these files is beneath `/var/lib/collectd'.
628 * When using some of the plugins, collectd needs to run as user root, since
629 only root can do certain things, such as craft ICMP packages needed to ping
630 other hosts. collectd should NOT be installed setuid root since it can be
631 used to overwrite valuable files!
633 * Sample scripts to generate graphs reside in `contrib/' in the source
634 package or somewhere near `/usr/share/doc/collectd' in most distributions.
635 Please be aware that those script are meant as a starting point for your
636 own experiments.. Some of them require the `RRDs' Perl module.
637 (`librrds-perl' on Debian) If you have written a more sophisticated
638 solution please share it with us.
640 * The RRAs of the automatically created RRD files depend on the `step'
641 and `heartbeat' settings given. If change these settings you may need to
642 re-create the files, losing all data. Please be aware of that when changing
643 the values and read the rrdtool(1) manpage thoroughly.
646 collectd and chkrootkit
647 -----------------------
649 If you are using the `dns' plugin chkrootkit(1) will report collectd as a
650 packet sniffer ("<iface>: PACKET SNIFFER(/usr/sbin/collectd[<pid>])"). The
651 plugin captures all UDP packets on port 53 to analyze the DNS traffic. In
652 this case, collectd is a legitimate sniffer and the report should be
653 considered to be a false positive. However, you might want to check that
654 this really is collectd and not some other, illegitimate sniffer.
660 To compile collectd from source you will need:
662 * Usual suspects: C compiler, linker, preprocessor, make, ...
664 collectd makes use of some common C99 features, e.g. compound literals and
665 mixed declarations, and therefore requires a C99 compatible compiler.
667 On Debian and Ubuntu, the "build-essential" package should pull in
668 everything that's necessary.
670 * A POSIX-threads (pthread) implementation.
671 Since gathering some statistics is slow (network connections, slow devices,
672 etc) collectd is parallelized. The POSIX threads interface is being
673 used and should be found in various implementations for hopefully all
676 * When building from the Git repository, flex (tokenizer) and bison (parser
677 generator) are required. Release tarballs include the generated files – you
678 don't need these packages in that case.
680 * aerotools-ng (optional)
681 Used by the `aquaero' plugin. Currently, the `libaquaero5' library, which
682 is used by the `aerotools-ng' toolkit, is not compiled as a shared object
683 nor does it feature an installation routine. Therefore, you need to point
684 collectd's configure script at the source directory of the `aerotools-ng'
686 <https://github.com/lynix/aerotools-ng>
688 * CoreFoundation.framework and IOKit.framework (optional)
689 For compiling on Darwin in general and the `apple_sensors' plugin in
691 <http://developer.apple.com/corefoundation/>
693 * libatasmart (optional)
694 Used by the `smart' plugin.
695 <http://git.0pointer.de/?p=libatasmart.git>
698 The `turbostat' plugin can optionally build Linux Capabilities support,
699 which avoids full privileges requirement (aka. running as root) to read
701 <http://sites.google.com/site/fullycapable/>
703 * libclntsh (optional)
704 Used by the `oracle' plugin.
706 * libhiredis (optional)
707 Used by the redis plugin. Please note that you require a 0.10.0 version
708 or higher. <https://github.com/redis/hiredis>
711 If you want to use the `apache', `ascent', `bind', `curl', `curl_json',
712 `curl_xml', `nginx', or `write_http' plugin.
713 <http://curl.haxx.se/>
716 Used by the `dbi' plugin to connect to various databases.
717 <http://libdbi.sourceforge.net/>
719 * libesmtp (optional)
720 For the `notify_email' plugin.
721 <http://www.stafford.uklinux.net/libesmtp/>
723 * libganglia (optional)
724 Used by the `gmond' plugin to process data received from Ganglia.
725 <http://ganglia.info/>
728 Used by the `grpc' plugin. gRPC requires a C++ compiler supporting the
732 * libgcrypt (optional)
733 Used by the `network' plugin for encryption and authentication.
734 <http://www.gnupg.org/>
737 Used by the `gps' plugin.
738 <http://developer.berlios.de/projects/gpsd/>
741 If present, the `uuid' plugin will check for UUID from HAL.
742 <http://hal.freedesktop.org/>
744 * libi2c-dev (optional)
745 Used for the plugin `barometer', provides just the i2c-dev.h header file
746 for user space i2c development.
749 For querying iptables counters.
750 <http://netfilter.org/>
753 Library that encapsulates the `Java Virtual Machine' (JVM). This library is
754 used by the `java' plugin to execute Java bytecode.
755 See docs/BUILD.java.md for detailed build instructions.
756 <http://openjdk.java.net/> (and others)
759 Used by the `openldap' plugin.
760 <http://www.openldap.org/>
763 Used by the `lua' plugin. Currently, Lua 5.1 and later are supported.
764 <https://www.lua.org/>
767 Used by the `lvm' plugin.
768 <ftp://sources.redhat.com/pub/lvm2/>
770 * libmemcached (optional)
771 Used by the `memcachec' plugin to connect to a memcache daemon.
772 <http://tangent.org/552/libmemcached.html>
775 Used by the `netlink' plugin.
776 <http://www.netfilter.org/projects/libmnl/>
778 * libmodbus (optional)
779 Used by the `modbus' plugin to communicate with Modbus/TCP devices. The
780 `modbus' plugin works with version 2.0.3 of the library – due to frequent
781 API changes other versions may or may not compile cleanly.
782 <http://www.libmodbus.org/>
784 * libmysqlclient (optional)
785 Unsurprisingly used by the `mysql' plugin.
786 <http://dev.mysql.com/>
788 * libnetapp (optional)
789 Required for the `netapp' plugin.
790 This library is part of the “Manage ONTAP SDK” published by NetApp.
792 * libnetsnmp (optional)
793 For the `snmp' plugin.
794 <http://www.net-snmp.org/>
796 * libnotify (optional)
797 For the `notify_desktop' plugin.
798 <http://www.galago-project.org/>
800 * libopenipmi (optional)
801 Used by the `ipmi' plugin to prove IPMI devices.
802 <http://openipmi.sourceforge.net/>
804 * liboping (optional)
805 Used by the `ping' plugin to send and receive ICMP packets.
806 <http://octo.it/liboping/>
808 * libowcapi (optional)
809 Used by the `onewire' plugin to read values from onewire sensors (or the
811 <http://www.owfs.org/>
814 Used to capture packets by the `dns' plugin.
815 <http://www.tcpdump.org/>
817 * libperfstat (optional)
818 Used by various plugins to gather statistics under AIX.
821 Obviously used by the `perl' plugin. The library has to be compiled with
822 ithread support (introduced in Perl 5.6.0).
823 <http://www.perl.org/>
826 The PostgreSQL C client library used by the `postgresql' plugin.
827 <http://www.postgresql.org/>
829 * libprotobuf, protoc 3.0+ (optional)
830 Used by the `grpc' plugin to generate service stubs and code to handle
831 network packets of collectd's protobuf-based network protocol.
832 <https://developers.google.com/protocol-buffers/>
834 * libprotobuf-c, protoc-c (optional)
835 Used by the `pinba' plugin to generate a parser for the network packets
836 sent by the Pinba PHP extension.
837 <http://code.google.com/p/protobuf-c/>
839 * libpython (optional)
840 Used by the `python' plugin. Currently, Python 2.6 and later and Python 3
842 <http://www.python.org/>
844 * librabbitmq (optional; also called “rabbitmq-c”)
845 Used by the `amqp' plugin for AMQP connections, for example to RabbitMQ.
846 <http://hg.rabbitmq.com/rabbitmq-c/>
848 * librdkafka (optional; also called “rdkafka”)
849 Used by the `write_kafka' plugin for producing messages and sending them
851 <https://github.com/edenhill/librdkafka>
853 * librouteros (optional)
854 Used by the `routeros' plugin to connect to a device running `RouterOS'.
855 <http://octo.it/librouteros/>
858 Used by the `rrdtool' and `rrdcached' plugins. The latter requires RRDtool
859 client support which was added after version 1.3 of RRDtool. Versions 1.0,
860 1.2 and 1.3 are known to work with the `rrdtool' plugin.
861 <http://oss.oetiker.ch/rrdtool/>
863 * librt, libsocket, libkstat, libdevinfo (optional)
864 Various standard Solaris libraries which provide system functions.
865 <http://developers.sun.com/solaris/>
867 * libsensors (optional)
868 To read from `lm_sensors', see the `sensors' plugin.
869 <http://www.lm-sensors.org/>
871 * libsigrok (optional)
872 Used by the `sigrok' plugin. In addition, libsigrok depends on glib,
873 libzip, and optionally (depending on which drivers are enabled) on
874 libusb, libftdi and libudev.
876 * libstatgrab (optional)
877 Used by various plugins to collect statistics on systems other than Linux
879 <http://www.i-scream.org/libstatgrab/>
881 * libtokyotyrant (optional)
882 Used by the `tokyotyrant' plugin.
883 <http://1978th.net/tokyotyrant/>
885 * libupsclient/nut (optional)
886 For the `nut' plugin which queries nut's `upsd'.
887 <http://networkupstools.org/>
890 Collect statistics from virtual machines.
891 <http://libvirt.org/>
894 Parse XML data. This is needed for the `ascent', `bind', `curl_xml' and
896 <http://xmlsoft.org/>
899 Used by the `xencpu' plugin.
900 <http://xenbits.xensource.com/>
903 <http://www.xmms.org/>
906 Parse JSON data. This is needed for the `ceph', `curl_json' and
907 `log_logstash' plugins.
908 <http://github.com/lloyd/yajl>
910 * libvarnish (optional)
911 Fetches statistics from a Varnish instance. This is needed for the
913 <http://varnish-cache.org>
915 * riemann-c-client (optional)
916 For the `write_riemann' plugin.
917 <https://github.com/algernon/riemann-c-client>
919 Configuring / Compiling / Installing
920 ------------------------------------
922 To configure, build and install collectd with the default settings, run
923 `./configure && make && make install'. For detailed, generic instructions
924 see INSTALL. For a complete list of configure options and their description,
925 run `./configure --help'.
927 By default, the configure script will check for all build dependencies and
928 disable all plugins whose requirements cannot be fulfilled (any other plugin
929 will be enabled). To enable a plugin, install missing dependencies (see
930 section `Prerequisites' above) and rerun `configure'. If you specify the
931 `--enable-<plugin>' configure option, the script will fail if the depen-
932 dencies for the specified plugin are not met. In that case you can force the
933 plugin to be built using the `--enable-<plugin>=force' configure option.
934 This will most likely fail though unless you're working in a very unusual
935 setup and you really know what you're doing. If you specify the
936 `--disable-<plugin>' configure option, the plugin will not be built. If you
937 specify the `--enable-all-plugins' or `--disable-all-plugins' configure
938 options, all plugins will be enabled or disabled respectively by default.
939 Explicitly enabling or disabling a plugin overwrites the default for the
940 specified plugin. These options are meant for package maintainers and should
941 not be used in everyday situations.
943 By default, collectd will be installed into `/opt/collectd'. You can adjust
944 this setting by specifying the `--prefix' configure option - see INSTALL for
945 details. If you pass DESTDIR=<path> to `make install', <path> will be
946 prefixed to all installation directories. This might be useful when creating
947 packages for collectd.
949 Generating the configure script
950 -------------------------------
952 Collectd ships with a `build.sh' script to generate the `configure'
953 script shipped with releases.
955 To generate the `configure` script, you'll need the following dependencies:
965 The `build.sh' script takes no arguments.
970 To compile correctly collectd needs to be able to initialize static
971 variables to NAN (Not A Number). Some C libraries, especially the GNU
972 libc, have a problem with that.
974 Luckily, with GCC it's possible to work around that problem: One can define
975 NAN as being (0.0 / 0.0) and `isnan' as `f != f'. However, to test this
976 ``implementation'' the configure script needs to compile and run a short
977 test program. Obviously running a test program when doing a cross-
978 compilation is, well, challenging.
980 If you run into this problem, you can use the `--with-nan-emulation'
981 configure option to force the use of this implementation. We can't promise
982 that the compiled binary actually behaves as it should, but since NANs
983 are likely never passed to the libm you have a good chance to be lucky.
985 Likewise, collectd needs to know the layout of doubles in memory, in order
986 to craft uniform network packets over different architectures. For this, it
987 needs to know how to convert doubles into the memory layout used by x86. The
988 configure script tries to figure this out by compiling and running a few
989 small test programs. This is of course not possible when cross-compiling.
990 You can use the `--with-fp-layout' option to tell the configure script which
991 conversion method to assume. Valid arguments are:
993 * `nothing' (12345678 -> 12345678)
994 * `endianflip' (12345678 -> 87654321)
995 * `intswap' (12345678 -> 56781234)
1000 For questions, bug reports, development information and basically all other
1001 concerns please send an email to collectd's mailing list at
1002 <list at collectd.org>.
1004 For live discussion and more personal contact visit us in IRC, we're in
1005 channel #collectd on freenode.
1011 Florian octo Forster <octo at collectd.org>,
1012 Sebastian tokkee Harl <sh at tokkee.org>,
1013 and many contributors (see `AUTHORS').
1015 Please use GitHub reporting bugs and submitting pull requests.
1016 See CONTRIBUTING.md for details.