From: Florian Forster Date: Mon, 11 Feb 2008 11:21:24 +0000 (+0100) Subject: collectd.conf(5), ChangeLog: Documented the new `Include' features. X-Git-Tag: collectd-4.3.0beta1~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bea27e81ec6fee7eb075e95752e930dd959ec00f;p=collectd.git collectd.conf(5), ChangeLog: Documented the new `Include' features. --- diff --git a/ChangeLog b/ChangeLog index f8c40e20..9b3374c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ yyyy-mm-dd, Version 4.3.0 * collectd: Support for more than one `TypesDB' file has been added. This is useful when one such file is included in a package but one wants to add custom type definitions. + * collectd: The `Include' config option has been expanded to handle + entire directories and shell wildcards. * collectdmon: The new `collectdmon' binary detects when collectd terminates and automatically restarts it again. * csv plugin: The CSV plugin is now able to store counter values as a diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 92a5e254..09661eb6 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -53,11 +53,21 @@ directory for the daemon. Loads the plugin I. There must be at least one such line or B will be mostly useless. -=item B I +=item B I -Includes the file I as if it was copy and pasted here. To prevent loops -and shooting yourself in the foot in interesting ways the nesting is limited to -a depth of 8Elevels, which should be sufficient for most uses. +If I points to a file, includes that file. If I points to a +directory, recursively includes all files within that directory and its +subdirectories. If the C function is available on your system, +shell-like wildcards are expanded before files are included. This means you can +use statements like the following: + + Include "/etc/collectd.d/*.conf" + +To prevent loops and shooting yourself in the foot in interesting ways the +nesting is limited to a depth of 8Elevels, which should be sufficient for +most uses. Since symlinks are followed it is still possible to crash the daemon +by looping symlinks. In our opinion significant stupidity should result in an +appropriate amount of pain. It is no problem to have a block like CPlugin fooE> in more than one file, but you cannot include files from within blocks.