Code

collectd.git
16 years agomatch_regex plugin: Fix a typo.
Florian Forster [Sat, 22 Nov 2008 00:00:41 +0000 (01:00 +0100)]
match_regex plugin: Fix a typo.

16 years agosrc/configfile.c: Dispatch the `Chain' blocks to fc_configure.
Florian Forster [Fri, 21 Nov 2008 23:58:36 +0000 (00:58 +0100)]
src/configfile.c: Dispatch the `Chain' blocks to fc_configure.

16 years agosrc/plugin.c: Use the write-list in plugin_write.
Florian Forster [Fri, 21 Nov 2008 23:57:53 +0000 (00:57 +0100)]
src/plugin.c: Use the write-list in plugin_write.

Not the flush-list, doh!

16 years agomatch_regex plugin: Renamed `filter_pcre' to `match_regex'.
Florian Forster [Fri, 21 Nov 2008 22:14:42 +0000 (23:14 +0100)]
match_regex plugin: Renamed `filter_pcre' to `match_regex'.

In order to fit into the new match/target schema, the substitute part of the
plugin has been removed for now and will be put in a target plugin in the
future.

The match_regex now registeres a match with the new infrastructure and uses
regular expressions to match certain values based on their identifier.

16 years agosrc/filter_chain.[ch]: Implement an advanced filtering framework.
Florian Forster [Fri, 21 Nov 2008 21:09:53 +0000 (22:09 +0100)]
src/filter_chain.[ch]: Implement an advanced filtering framework.

The concept separates `filter' plugins into `match' and `target' plugins. Those
two parts can be combined in wild variation, allowing *very* flexible
mechanisms.

The concept is explained in more detail in the `FILTER CONFIGURATION' section
of collectd.conf(5), also added with this commit.

16 years agosrc/plugin.[ch]: Implement `plugin_write', a function to pass values to specific...
Florian Forster [Fri, 21 Nov 2008 21:06:23 +0000 (22:06 +0100)]
src/plugin.[ch]: Implement `plugin_write', a function to pass values to specific write plugins.

This function does none of the magic `plugin_dispatch_value' does. It simiply
takes a value and passes it to the requested plugin.

This function is intended to be used with the upcoming `filter chain' code,
which will allow to pass values to specific plugins only.

16 years agodbi plugin: Replace `dbi_conn_error_flag' with `dbi_conn_error'
Florian Forster [Sun, 9 Nov 2008 10:21:25 +0000 (11:21 +0100)]
dbi plugin: Replace `dbi_conn_error_flag' with `dbi_conn_error'

Version 0.8 of the libdbi deprecates `dbi_conn_error_flag', so use the other
function.

16 years agomysql plugin: Fix a typo: `$endptr' -> `&endptr'.
Florian Forster [Sun, 9 Nov 2008 10:20:07 +0000 (11:20 +0100)]
mysql plugin: Fix a typo: `$endptr' -> `&endptr'.

Yes, I've done a little Perl lately ;)

Also fix a non-void function without return value..

16 years agoMerge branch 'master' of octo@verplant.org:/var/lib/git/collectd
Florian Forster [Sat, 8 Nov 2008 15:03:04 +0000 (16:03 +0100)]
Merge branch 'master' of octo@verplant.org:/var/lib/git/collectd

16 years agomysql plugin: Be more careful when parsing the `Port' argument.
Florian Forster [Sat, 8 Nov 2008 15:02:30 +0000 (16:02 +0100)]
mysql plugin: Be more careful when parsing the `Port' argument.

16 years agocollectd.conf(5): Document the new options of the mysql plugin.
Florian Forster [Sat, 8 Nov 2008 14:54:03 +0000 (15:54 +0100)]
collectd.conf(5): Document the new options of the mysql plugin.

16 years agomysql plugin: Allow configuration of `Port' and `Socket'.
Mirko Buffoni [Wed, 29 Oct 2008 11:24:04 +0000 (12:24 +0100)]
mysql plugin: Allow configuration of `Port' and `Socket'.

Hi,

I have a patch for mysql collectd library.
The patch allow to specify also Port and Socket
parameters for those who have a non-standard configuration
of mysql.

It's very straightforward.  If accepted, there is only to
change documentation and config file to reflect the new
parameters.

Enjoy

Mirko

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agofilter_pcre: Handle out of memory situations more gracefully.
Florian Forster [Sat, 8 Nov 2008 08:46:29 +0000 (09:46 +0100)]
filter_pcre: Handle out of memory situations more gracefully.

16 years agoMerge branch 'sh/next'
Florian Forster [Sat, 8 Nov 2008 08:01:12 +0000 (09:01 +0100)]
Merge branch 'sh/next'

16 years agoMerge branch 'collectd-4.5'
Florian Forster [Sat, 8 Nov 2008 08:00:00 +0000 (09:00 +0100)]
Merge branch 'collectd-4.5'

16 years agoMerge branch 'collectd-4.4' into collectd-4.5
Florian Forster [Sat, 8 Nov 2008 07:59:17 +0000 (08:59 +0100)]
Merge branch 'collectd-4.4' into collectd-4.5

16 years agosrc/utils_rrdcreate.c: srrd_create: Copy the `filename' argument.
Florian Forster [Fri, 7 Nov 2008 18:49:52 +0000 (19:49 +0100)]
src/utils_rrdcreate.c: srrd_create: Copy the `filename' argument.

Some versions of librrd, for example the one in Debian Etch, don't have the
`const' qualifier for the first (filename) argument for `rrd_create_r'. So
we'll copy the argument first. This sucks big time, but is the only reasonable
way to get around this.

16 years agoInstall types.db into PKGDATADIR instead of PKGLIBDIR.
Sebastian Harl [Fri, 10 Oct 2008 13:07:05 +0000 (15:07 +0200)]
Install types.db into PKGDATADIR instead of PKGLIBDIR.

The FHS specifies that /usr/share should be used to store architecture
independent data while /usr/lib includes object files, libraries and
architecture dependent data.

16 years agocontrib/oracle: Fixed some typos.
Sebastian Harl [Fri, 31 Oct 2008 19:03:12 +0000 (20:03 +0100)]
contrib/oracle: Fixed some typos.

16 years agofilter_pcre plugin: Added support to rewrite value lists.
Sebastian Harl [Fri, 31 Oct 2008 18:49:08 +0000 (19:49 +0100)]
filter_pcre plugin: Added support to rewrite value lists.

For this purpose "Substitute*" options have been introduced for each regex
option. Upon a successful match, the matching substring will be replaced by
the specified replacement text.

Configuration example:

  <Plugin filter_pcre>
    <RegEx>
      Plugin "^sensors$"
      PluginInstance "^Some Weird Sensor Chip Name Prefix"

      SubstitutePluginInstance "foo"
    </RegEx>
  </Plugin>

16 years agoutils_subst: Added a module providing functions for string substitution.
Sebastian Harl [Wed, 29 Oct 2008 20:24:00 +0000 (21:24 +0100)]
utils_subst: Added a module providing functions for string substitution.

Currently, the functions subst() and asubst() are available which may be used
to replace parts of a string with a specified replacement text. The latter
automatically allocates the memory required for the return value while the
former writes to a user specified buffer.

16 years agoutils_*.h: Made header files self-hosting.
Sebastian Harl [Wed, 29 Oct 2008 17:56:21 +0000 (18:56 +0100)]
utils_*.h: Made header files self-hosting.

Added (hopefully) all missing includes.

16 years agofilecount plugin: Added the "Recursive" config option.
Sebastian Harl [Thu, 30 Oct 2008 18:15:41 +0000 (19:15 +0100)]
filecount plugin: Added the "Recursive" config option.

This option controls whether or not to recurse into subdirectories. It's
enabled by default, so backward-compatibility is retained.

16 years agocollectd.conf(5): Added a missing </RegEx> to the configuration example.
Sebastian Harl [Thu, 30 Oct 2008 09:24:53 +0000 (10:24 +0100)]
collectd.conf(5): Added a missing </RegEx> to the configuration example.

16 years agolibiptc/Makefile.am: Added xtables.h, libxtc.h to libiptc_la_SOURCES.
Sebastian Harl [Wed, 29 Oct 2008 16:15:13 +0000 (17:15 +0100)]
libiptc/Makefile.am: Added xtables.h, libxtc.h to libiptc_la_SOURCES.

Else, those files would not be included in the tarball.

16 years agosrc/Makefile: Build ipvs and uuid plugins using $AM_CFLAGS.
Sebastian Harl [Sat, 1 Nov 2008 11:19:29 +0000 (12:19 +0100)]
src/Makefile: Build ipvs and uuid plugins using $AM_CFLAGS.

16 years agoconfigure, mysql plugin: Check for mysql.h as well.
Sebastian Harl [Sat, 1 Nov 2008 10:28:30 +0000 (11:28 +0100)]
configure, mysql plugin: Check for mysql.h as well.

Up to now, only mysql/mysql.h has been checked for. However, mysql_config
--cflags usually adds the complete path to mysql.h to the include flags. In
most setups, mysql/mysql.h can be found in the search path as well (usually
the header is available in something like /usr/include/mysql/mysql.h) so this
issue has not been found so far. However, if that's not the case, the build
will fail.

Thanks to Dusty Doris <collectd@dusty.name> for reporting this.

16 years agocontrib/collection3: Add the `format' parameter to the graph.cgi.
Florian Forster [Fri, 31 Oct 2008 17:05:39 +0000 (18:05 +0100)]
contrib/collection3: Add the `format' parameter to the graph.cgi.

With this parameter one can specify the file format the graph is returned in,
for example `format=SVG' for an SVG image.

16 years agosrc/utils_complain.c: Include "collectd.h" as first header file.
Florian Forster [Fri, 31 Oct 2008 14:55:19 +0000 (15:55 +0100)]
src/utils_complain.c: Include "collectd.h" as first header file.

This is needed to get the _FILE_OFFSET_BITS define right.

16 years agoapcups plugin: Include "collectd.h" *before" <stdlib.h>.
Florian Forster [Fri, 31 Oct 2008 14:44:53 +0000 (15:44 +0100)]
apcups plugin: Include "collectd.h" *before" <stdlib.h>.

If not defined, <stdlib.h> sets/defines _FILE_OFFSET_BITS. Since (in 32bit
mode) "collectd.h" defines that, too, you'll run into compilation problems.

16 years agoMerge branch 'ff/oracle'
Florian Forster [Fri, 31 Oct 2008 10:31:43 +0000 (11:31 +0100)]
Merge branch 'ff/oracle'

Conflicts:

configure.in

16 years agocontrib/oracle: Add an example schema and SQL statements for the oracle plugin.
Roman Klesel [Fri, 31 Oct 2008 10:09:50 +0000 (11:09 +0100)]
contrib/oracle: Add an example schema and SQL statements for the oracle plugin.

create_schema.ddl: Script to create a schema that can be queried by
    collectd.
db_systat.sql: Sample SQL statements to be used in the collectd
    configuration.

16 years agofilecount plugin: Fixed an off-by-one error in the configuration code.
Sebastian Harl [Thu, 30 Oct 2008 15:27:37 +0000 (16:27 +0100)]
filecount plugin: Fixed an off-by-one error in the configuration code.

The memory allocated to store the information about configured directories did
not take into account the newly added directory. This would cause a segfault
at some point of time (when specifying more than four directories in my case).

Thanks to Martin Janota <janota.m@cce.cz> for finding and reporting this bug.

16 years agoperl plugin: Fix an uninitialized variable warning.
Ulrich Habel [Wed, 29 Oct 2008 06:01:12 +0000 (07:01 +0100)]
perl plugin: Fix an uninitialized variable warning.

Resolves: #33

16 years agosrc/utils_dns.c: Cast a `char' to `int' when using `tolower'.
Ulrich Habel [Wed, 29 Oct 2008 05:54:26 +0000 (06:54 +0100)]
src/utils_dns.c: Cast a `char' to `int' when using `tolower'.

This is needed at least on NetBSD, but probably on other non-GNU libcs as well.

Resolves: #32

16 years agofilter_pcre: Added a plugin to filter value lists based on PCRE.
Sebastian Harl [Tue, 28 Oct 2008 21:02:38 +0000 (22:02 +0100)]
filter_pcre: Added a plugin to filter value lists based on PCRE.

The user may specify a set of Perl-compatible regular expressions to match any
component of the (host, plugin, plugin instance, type, type instance) tuple.
Any of the filter flags may be used to handle a successful match.

Sample plugin configuration:

  <Plugin filter_pcre>
    <RegEx>
      Host "^mail\d+$"
      Plugin "^tcpconns$"
      TypeInstance "^SYN_"

      Action NoWrite
  </Plugin>

16 years agolibiptc/libip6tc.c: Fix a glibc 2.8 compatibility problem.
Devid Antonio Filoni [Sat, 18 Oct 2008 20:01:53 +0000 (22:01 +0200)]
libiptc/libip6tc.c: Fix a glibc 2.8 compatibility problem.

Hi,
the attached patch fix the build with glibc 2.8. Please include it in
the next version.

Thanks,
Devid Antonio Filoni

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agosrc/configfile.c: Fix a closing-brace comment.
Florian Forster [Mon, 20 Oct 2008 06:42:11 +0000 (08:42 +0200)]
src/configfile.c: Fix a closing-brace comment.

16 years agofilter_ignore plugin: Add a simple plugin to ignore specific identifiers.
Florian Forster [Mon, 20 Oct 2008 06:40:58 +0000 (08:40 +0200)]
filter_ignore plugin: Add a simple plugin to ignore specific identifiers.

Still needs documentation and testing.

16 years agoChangeLog: Fix a typo.
Florian Forster [Thu, 16 Oct 2008 21:17:15 +0000 (23:17 +0200)]
ChangeLog: Fix a typo.

16 years agoChangeLog: Fix a typo.
Florian Forster [Thu, 16 Oct 2008 21:16:38 +0000 (23:16 +0200)]
ChangeLog: Fix a typo.

16 years agoMerge branch 'collectd-4.5'
Florian Forster [Thu, 16 Oct 2008 20:50:15 +0000 (22:50 +0200)]
Merge branch 'collectd-4.5'

16 years agoBumped version to 4.5.1; Updated ChangeLog. collectd-4.5.1
Florian Forster [Thu, 16 Oct 2008 20:42:44 +0000 (22:42 +0200)]
Bumped version to 4.5.1; Updated ChangeLog.

16 years agoMerge branch 'collectd-4.5'
Florian Forster [Thu, 16 Oct 2008 20:14:28 +0000 (22:14 +0200)]
Merge branch 'collectd-4.5'

16 years agoMerge branch 'collectd-4.4' into collectd-4.5
Florian Forster [Thu, 16 Oct 2008 20:13:33 +0000 (22:13 +0200)]
Merge branch 'collectd-4.4' into collectd-4.5

Conflicts:

ChangeLog
version-gen.sh

16 years agoChangeLog: Added the changed poisoning behavior. collectd-4.4.4
Florian Forster [Thu, 16 Oct 2008 20:07:59 +0000 (22:07 +0200)]
ChangeLog: Added the changed poisoning behavior.

16 years agosrc/collectd.h: Poison various insecure string functions only when debugging is enabled.
Florian Forster [Thu, 16 Oct 2008 20:04:46 +0000 (22:04 +0200)]
src/collectd.h: Poison various insecure string functions only when debugging is enabled.

Because the `poison' pragma complains about macros (which are then never
used), this feature does more harm than good in everyday use. So we'll
only activate it when building in debug mode, so hopefully authors of
new plugins will use this.

16 years agoBumped version to 4.4.4; Updated ChangeLog.
Florian Forster [Thu, 16 Oct 2008 19:41:47 +0000 (21:41 +0200)]
Bumped version to 4.4.4; Updated ChangeLog.

16 years agoUpdated the TODO file.
Florian Forster [Thu, 16 Oct 2008 19:22:20 +0000 (21:22 +0200)]
Updated the TODO file.

16 years agopostgresql plugin: Added another missing call to PQclear().
Sebastian Harl [Tue, 14 Oct 2008 10:57:21 +0000 (12:57 +0200)]
postgresql plugin: Added another missing call to PQclear().

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agopostgresql plugin: Do not open new connections during reinitialization.
Sebastian Harl [Tue, 14 Oct 2008 11:41:18 +0000 (13:41 +0200)]
postgresql plugin: Do not open new connections during reinitialization.

When reinitializing the plugin a new connection to all databases has been
opened. Now, we check if the connection already exists. In that case no new
connection will be opened but the existing connection will be pinged instead.

Thanks to Admin <collectd-info@internode.com.au> for finding and reporting
this.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agopostgresql plugin: Add a couple of PQclear() calls.
Florian Forster [Thu, 16 Oct 2008 08:05:31 +0000 (10:05 +0200)]
postgresql plugin: Add a couple of PQclear() calls.

The postgresql plugin is missing a couple of PQclear() calls

Thanks to Admin <collectd-info@internode.com.au> for pointing this out.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agosrc/plugin.[ch]: Added support for "filter" callbacks.
Sebastian Harl [Wed, 15 Oct 2008 07:28:15 +0000 (09:28 +0200)]
src/plugin.[ch]: Added support for "filter" callbacks.

This type of callback is very similar to write callbacks:

  int (*) (const data_set_t *, value_list_t *)

The return value of that callback indicates what further actions are to be
taken. It may be a bitwise OR of any of the following new flags:
FILTER_NOWRITE or FILTER_NOTHRESHOLD_CHECK. If both flags are used (which
equals the flag FILTER_IGNORE), the value list is ignored completely.

If more than one such callback is available, the respective return values are
bitwise OR'ed. If they "sum" up to FILTER_IGNORE, no further callbacks are
executed (lazy evaluation).

This type of callback may be used for the following purposes:

 * rewrite information included in the value list (e.g. the instance
   name)

 * discard certain information on a fine-grained level based on the
   information provided by the data set and value list

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocontrib/exec-munin.px: Fix the folding markers..
Florian Forster [Thu, 16 Oct 2008 07:51:33 +0000 (09:51 +0200)]
contrib/exec-munin.px: Fix the folding markers..

16 years agosrc/Makefile.am: Use $mkinstalldirs instead of $(INSTALL) -D.
Sebastian Harl [Fri, 10 Oct 2008 10:28:04 +0000 (12:28 +0200)]
src/Makefile.am: Use $mkinstalldirs instead of $(INSTALL) -D.

Some systems (e.g. Solaris 8) do not support the -D option.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agosrc/utils_tail.c: Call `clearerr' before `fgets'.
Florian Forster [Fri, 10 Oct 2008 10:40:38 +0000 (12:40 +0200)]
src/utils_tail.c: Call `clearerr' before `fgets'.

Hopefully this will resolve problems under the dietlibc.

16 years agosrc/Makefile.am: Fix a copy'n'paste typo.
Florian Forster [Fri, 10 Oct 2008 07:29:10 +0000 (09:29 +0200)]
src/Makefile.am: Fix a copy'n'paste typo.

16 years agocollectd.conf: Added a sample <Plugin> section in the perl config.
Sebastian Harl [Fri, 10 Oct 2008 07:08:07 +0000 (09:08 +0200)]
collectd.conf: Added a sample <Plugin> section in the perl config.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agotypes.db: Reintroduced the "spam_check" type.
Sebastian Harl [Wed, 8 Oct 2008 13:46:39 +0000 (15:46 +0200)]
types.db: Reintroduced the "spam_check" type.

This is used by the "email" plugin. Apparently, it got lost when converting
the plugin to the v4 interface: Instead of "spam_check", "email_check" had
been added to types.db. I did not remove "email_check" though as this would
introduce a regression - though very unlikely, somebody out there might be
using that type.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocollection.cgi: Added support for the "connection" type.
Sebastian Harl [Wed, 8 Oct 2008 10:23:08 +0000 (12:23 +0200)]
collection.cgi: Added support for the "connection" type.

This is used e.g. by the "ipvs" plugin.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoMerge branch 'collectd-4.5'
Florian Forster [Fri, 10 Oct 2008 07:02:33 +0000 (09:02 +0200)]
Merge branch 'collectd-4.5'

Conflicts:

configure.in

16 years agoMerge branch 'collectd-4.4' into collectd-4.5
Florian Forster [Fri, 10 Oct 2008 07:01:54 +0000 (09:01 +0200)]
Merge branch 'collectd-4.4' into collectd-4.5

16 years agosrc/utils_cache.c: Fix a serious memory leak.
Florian Forster [Fri, 10 Oct 2008 06:17:22 +0000 (08:17 +0200)]
src/utils_cache.c: Fix a serious memory leak.

Whenever a data set went missing, the its name (the `key'; up to (5*64)+4
bytes) was not free'd.

Thanks to Niraj Tolia for reporting this :)

16 years agooracle plugin: Correct the inline documentation.
Florian Forster [Thu, 9 Oct 2008 07:53:47 +0000 (09:53 +0200)]
oracle plugin: Correct the inline documentation.

16 years agocollectd.conf(5): Added documentation for the "oracle" plugin.
Florian Forster [Thu, 9 Oct 2008 07:53:13 +0000 (09:53 +0200)]
collectd.conf(5): Added documentation for the "oracle" plugin.

16 years agosrc/configfile.c: Fix a minor memory leak.
Florian Forster [Thu, 9 Oct 2008 06:43:48 +0000 (08:43 +0200)]
src/configfile.c: Fix a minor memory leak.

Thanks to Niraj Tolia for reporting this :)

16 years agonetwork plugin: Fix a minor memory leak.
Florian Forster [Thu, 9 Oct 2008 06:43:20 +0000 (08:43 +0200)]
network plugin: Fix a minor memory leak.

Thanks to Niraj Tolia for reporting this :)

16 years agooracle plugin: Added an exception to the GPL to allow linking with the OCI.
Florian Forster [Tue, 7 Oct 2008 14:46:11 +0000 (16:46 +0200)]
oracle plugin: Added an exception to the GPL to allow linking with the OCI.

16 years agosrc/collectd.conf.in: Add a configuration stump for the dbi plugin.
Florian Forster [Tue, 7 Oct 2008 14:41:07 +0000 (16:41 +0200)]
src/collectd.conf.in: Add a configuration stump for the dbi plugin.

16 years agoBuild system: Add a check for the OCI interface and add the oracle plugin.
Florian Forster [Tue, 7 Oct 2008 13:38:24 +0000 (15:38 +0200)]
Build system: Add a check for the OCI interface and add the oracle plugin.

16 years agooracle plugin: Add a plugin to query Oracle databases.
Florian Forster [Tue, 7 Oct 2008 13:37:24 +0000 (15:37 +0200)]
oracle plugin: Add a plugin to query Oracle databases.

16 years agoperl plugin: Fix a compiler warning.
Florian Forster [Tue, 7 Oct 2008 07:42:27 +0000 (09:42 +0200)]
perl plugin: Fix a compiler warning.

With unknown config options the `current_status' variable would have
been accessed uninitialized.

16 years agoMerge branch 'master' of git://git.verplant.org/collectd
Florian Forster [Tue, 7 Oct 2008 07:29:04 +0000 (09:29 +0200)]
Merge branch 'master' of git://git.verplant.org/collectd

16 years agoAdded .mailmap.
Sebastian Harl [Fri, 22 Aug 2008 12:31:51 +0000 (14:31 +0200)]
Added .mailmap.

This file is used by e.g. git-shortlog to map author E-mail addresses to real
author names. The file currently includes mappings for the old SVN logins as
well as a few cases where people where using different E-mail addresses.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoREADME: Added cURL website to the prerequisites section.
Sebastian Harl [Mon, 6 Oct 2008 16:33:59 +0000 (18:33 +0200)]
README: Added cURL website to the prerequisites section.

The site is working now and I could verify that it's correct ;-)

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agosnmp plugin: Added folding marker for the configuration handling.
Florian Forster [Tue, 7 Oct 2008 07:23:07 +0000 (09:23 +0200)]
snmp plugin: Added folding marker for the configuration handling.

16 years agocollectd-nagios(1): Make the documentation easier to read, more correct and fix errors.
Florian Forster [Mon, 6 Oct 2008 21:53:37 +0000 (23:53 +0200)]
collectd-nagios(1): Make the documentation easier to read, more correct and fix errors.

16 years agoREADME: Added websites for all prerequisites.
Sebastian Harl [Sun, 5 Oct 2008 13:07:40 +0000 (15:07 +0200)]
README: Added websites for all prerequisites.

I did not include the curl website (http://curl.haxx.se/) so far - the site
was not available when testing it.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoconfigure.in: Correct the `--enable-<plugin>' code.
Florian Forster [Mon, 6 Oct 2008 13:35:42 +0000 (15:35 +0200)]
configure.in: Correct the `--enable-<plugin>' code.

The new behavior is documented in the `README' file, too.

16 years agoconfigure.in: Let configure bail out on missing dependencies
Bruno Prémont [Sun, 5 Oct 2008 12:09:08 +0000 (14:09 +0200)]
configure.in: Let configure bail out on missing dependencies

The patch below adds check in AC_PLUGIN() that verifies if the
dependencies are met for any enabled plugin.

In case some dependency is missing (default is disabled and enabled
is selected) configure will fail after dumping summary so all
dependency issues are visible in a single configure pass.

A later addition would be to list requirements (dependencies, OS/Kernel
restrictions) for all plugins in an easily accessible location (e.g.
INSTALL file)

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agosrc/collectd-nagios.c: Improve handling of lines returned from `GETVAL'.
Florian Forster [Mon, 6 Oct 2008 09:46:59 +0000 (11:46 +0200)]
src/collectd-nagios.c: Improve handling of lines returned from `GETVAL'.

Then selecting only certain data sources with the `-d' option, the program
would try to read more lines from the server than the server reports, resulting
in the communication never finishing.

This patch resolves that problem and introduces a couple other error handling
blocks.

Thanks to Fabian Linzberger for pointing this out.

16 years agonetlink plugin: Fix an incorrect format string.
Florian Forster [Sun, 5 Oct 2008 10:12:52 +0000 (12:12 +0200)]
netlink plugin: Fix an incorrect format string.

16 years agocollectd.conf(5): Add documentation about the dbi plugin.
Florian Forster [Sat, 4 Oct 2008 20:13:35 +0000 (22:13 +0200)]
collectd.conf(5): Add documentation about the dbi plugin.

16 years agoREADME: Add the dbi plugin and the libdbi dependency.
Florian Forster [Sat, 4 Oct 2008 20:13:22 +0000 (22:13 +0200)]
README: Add the dbi plugin and the libdbi dependency.

16 years agodbi plugin: Add a plugin to query databases.
Florian Forster [Sat, 4 Oct 2008 15:11:02 +0000 (17:11 +0200)]
dbi plugin: Add a plugin to query databases.

The plugin uses the `dbi' library which provides a database independent
interface. It has only been tested with MySQL so far, so ymmv.

The configuration is similar to the PostgreSQL plugin: You define
queries and databases which execute those queries every $interval
seconds.

16 years agoconfigure.in: Ordered the `--with-*' arguments.
Florian Forster [Sat, 4 Oct 2008 09:21:07 +0000 (11:21 +0200)]
configure.in: Ordered the `--with-*' arguments.

16 years agoconfigure.in: Unify the --with-* arguments.
Florian Forster [Sat, 4 Oct 2008 09:13:31 +0000 (11:13 +0200)]
configure.in: Unify the --with-* arguments.

Renamed `--with-rrdtool' to `--with-librrd' and `--with-lm-sensors' to
`--with-libsensors'.

16 years agoconfigure.in: Insert folding markers.
Florian Forster [Sat, 4 Oct 2008 08:59:30 +0000 (10:59 +0200)]
configure.in: Insert folding markers.

This hopefully makes the file a little easier to read..

16 years agoMerge branch 'collectd-4.5'
Florian Forster [Fri, 3 Oct 2008 21:18:28 +0000 (23:18 +0200)]
Merge branch 'collectd-4.5'

16 years agoMerge branch 'collectd-4.4' into collectd-4.5
Florian Forster [Fri, 3 Oct 2008 21:14:44 +0000 (23:14 +0200)]
Merge branch 'collectd-4.4' into collectd-4.5

Conflicts:

src/utils_ignorelist.c

16 years agosrc/utils_ignorelist.c: Fix an off-by-one errror when adding regular expressions.
Florian Forster [Fri, 3 Oct 2008 21:11:47 +0000 (23:11 +0200)]
src/utils_ignorelist.c: Fix an off-by-one errror when adding regular expressions.

Resolves: #20

16 years agocollectdmon: Do not block SIGCHLD.
Sebastian Harl [Thu, 2 Oct 2008 13:25:10 +0000 (15:25 +0200)]
collectdmon: Do not block SIGCHLD.

There is no reason to do so as we do not need to synchronize any waitpid()
calls. In fact, doing so was wrong because waitpid() should then return with
an error according to POSIX. This was still working so far since waitpid()
would not return until all children terminated and this is all we really care
about.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocollectd.conf(5): Briefly document "OKAY"-notifications.
Sebastian Harl [Thu, 2 Oct 2008 13:05:51 +0000 (15:05 +0200)]
collectd.conf(5): Briefly document "OKAY"-notifications.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoREADME: Added missing plugins.
Sebastian Harl [Thu, 2 Oct 2008 13:08:09 +0000 (15:08 +0200)]
README: Added missing plugins.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoREADME: Updated information about librrd and libstatgrab.
Sebastian Harl [Thu, 2 Oct 2008 13:07:20 +0000 (15:07 +0200)]
README: Updated information about librrd and libstatgrab.

The info about librrd still talked about "client mode" while libstatgrab still
mentioned that CPU and disk statistics would not be supported.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoREADME: Mention the shipped copy of libiptc.
Sebastian Harl [Thu, 2 Oct 2008 13:04:44 +0000 (15:04 +0200)]
README: Mention the shipped copy of libiptc.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agolibiptc: Included a copy of xtables.h and libxtc.h.
Sebastian Harl [Thu, 2 Oct 2008 13:02:18 +0000 (15:02 +0200)]
libiptc: Included a copy of xtables.h and libxtc.h.

The shipped copy of "xtables.h" is now used instead of the one possibly
available on the system. This avoids possible inconsistencies between the
shipped version of libiptc and the one available on the system. Also, it
removes the dependency on the iptables development files.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoAdded src/libiptc/README.collectd.
Sebastian Harl [Thu, 2 Oct 2008 12:58:45 +0000 (14:58 +0200)]
Added src/libiptc/README.collectd.

This file is used to explain why libiptc is included in collectd, which
iptables version it's taken from and what changes have been applied.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agolibiptc: Updated from version 1.4.0 to 1.4.1.1.
Sebastian Harl [Thu, 2 Oct 2008 12:56:12 +0000 (14:56 +0200)]
libiptc: Updated from version 1.4.0 to 1.4.1.1.

This brings the library in sync with the latest stable upstream release. Now,
libiptc.c:standard_target_map() is declared static in the upstream sources, so
we no longer need to modify that ourselves.

The update includes, amongst others, fixes for a build failure with glibc 2.8,
some compiler warnings, an incorrect ruleset dump (netfilter issue #104) and a
scalability issue for chain list "name" searching.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoipvs plugin: Use sizeof() instead of a constant.
Sebastian Harl [Thu, 2 Oct 2008 12:54:06 +0000 (14:54 +0200)]
ipvs plugin: Use sizeof() instead of a constant.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>