Code

collectd.git
12 years agoconfigure: Don't add -liptc to the global LIBS setting.
Sebastian Harl [Wed, 13 Jun 2012 12:31:00 +0000 (14:31 +0200)]
configure: Don't add -liptc to the global LIBS setting.

AC_SEARCH_LIBS() would do that, so save and restore LIBS when calling that
macro.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoconfigure: Use AC_INCLUDES_DEFAULT when checking any libkvm stuff.
Sebastian Harl [Fri, 18 May 2012 20:31:13 +0000 (22:31 +0200)]
configure: Use AC_INCLUDES_DEFAULT when checking any libkvm stuff.

kvm.h requires sys/types.h to be included. Using AC_INCLUDES_DEFAULT will
hopefully make sure that we're save for a bit ;-)

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agocurl_xml plugin: Mark read-only strings as const.
Florian Forster [Thu, 13 Sep 2012 08:53:19 +0000 (10:53 +0200)]
curl_xml plugin: Mark read-only strings as const.

12 years agofix Host config being ignored
Fabien Wernli [Mon, 28 Nov 2011 09:46:18 +0000 (10:46 +0100)]
fix Host config being ignored

Change-Id: I8a109818d8a821e2f3e0660fbb6ba1843279fcc2
Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoapcups plugin: Retry sending the "status" command.
Florian Forster [Thu, 13 Sep 2012 08:18:14 +0000 (10:18 +0200)]
apcups plugin: Retry sending the "status" command.

If that fails more than twice in the first 10 iterations, gracefully shut
down the socket in all future iterations.

This should fix Github issue #15.

12 years agoapcups plugin: Add function net_shutdown().
Florian Forster [Thu, 13 Sep 2012 08:05:35 +0000 (10:05 +0200)]
apcups plugin: Add function net_shutdown().

12 years agoapcups plugin: Make sure the socket is closed on errors.
Florian Forster [Thu, 13 Sep 2012 08:04:26 +0000 (10:04 +0200)]
apcups plugin: Make sure the socket is closed on errors.

12 years agosrc/utils_db_query.c: Use the right field when checking for size.
Florian Forster [Wed, 12 Sep 2012 20:51:58 +0000 (22:51 +0200)]
src/utils_db_query.c: Use the right field when checking for size.

12 years agoswap plugin: Add the "ReportBytes" option.
Florian Forster [Wed, 12 Sep 2012 16:55:08 +0000 (18:55 +0200)]
swap plugin: Add the "ReportBytes" option.

When enabled, swap I/O is reported in bytes, not pages. Only valid for Linux.

This should fix Github issue #10.

12 years agoRevert "swap plugin: Add the "ReportBytes" option."
Florian Forster [Wed, 12 Sep 2012 19:31:41 +0000 (21:31 +0200)]
Revert "swap plugin: Add the "ReportBytes" option."

This reverts commit 25fd1667c186eb871a4b66f9866d6446e41f1bc2.

12 years agoswap plugin: Add the "ReportBytes" option.
Florian Forster [Wed, 12 Sep 2012 16:55:08 +0000 (18:55 +0200)]
swap plugin: Add the "ReportBytes" option.

When enabled, swap I/O is reported in bytes, not pages. Only valid for Linux.

This should fix Github issue #10.

12 years agoexec plugin: Really remove STDERR from the select() set.
Florian Forster [Wed, 12 Sep 2012 16:25:20 +0000 (18:25 +0200)]
exec plugin: Really remove STDERR from the select() set.

select(2) is actually using a variable called "copy", which we didn't set in
this case.

Fixes Github issue #12. Thanks to Tetsuya Kawaguchi for reporting this problem.

12 years agoconfigure.in: Make sure sa_familiy_t is defined when checking rtnl_dump_filter().
Florian Forster [Tue, 11 Sep 2012 07:54:32 +0000 (09:54 +0200)]
configure.in: Make sure sa_familiy_t is defined when checking rtnl_dump_filter().

12 years agonetlink plugin: Check for the number of arguments to 'rtnl_dump_filter'.
Sebastian Harl [Sat, 19 May 2012 10:31:52 +0000 (12:31 +0200)]
netlink plugin: Check for the number of arguments to 'rtnl_dump_filter'.

In recent versions of iproute2, 'rtnl_dump_filter' expects three rather than
five arguments.

This should fix Github issue #7.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoFixed collectd's unixsock read interrupted by SIGCHLD's.
Gerrie Roos [Tue, 17 Apr 2012 13:22:36 +0000 (15:22 +0200)]
Fixed collectd's unixsock read interrupted by SIGCHLD's.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoFixed various collectd memory leaks.
Gerrie Roos [Fri, 25 May 2012 03:38:47 +0000 (05:38 +0200)]
Fixed various collectd memory leaks.

Once I understood what's going on I tried to keep the changes to a minimum.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoMerge branch 'ff/kstat' into collectd-4.10
Florian Forster [Mon, 10 Sep 2012 19:10:45 +0000 (21:10 +0200)]
Merge branch 'ff/kstat' into collectd-4.10

12 years agoSet license info line to ”GPLv2 or newer”
Adrian Perez [Fri, 7 Sep 2012 13:59:32 +0000 (16:59 +0300)]
Set license info line to ”GPLv2 or newer”

Recently I had a request to change the licensing of this file to
use it in a GPLv3 application. This change would make it easier,
while retaining GPLv2 to make the license still match the one in
collectd.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoMerge branch 'collectd-5.1'
Florian Forster [Fri, 7 Sep 2012 09:19:52 +0000 (11:19 +0200)]
Merge branch 'collectd-5.1'

12 years agoMerge branch 'collectd-5.0' into collectd-5.1
Florian Forster [Fri, 7 Sep 2012 09:15:24 +0000 (11:15 +0200)]
Merge branch 'collectd-5.0' into collectd-5.1

Conflicts:
src/swap.c

12 years agoMerge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Fri, 7 Sep 2012 09:05:48 +0000 (11:05 +0200)]
Merge branch 'collectd-4.10' into collectd-5.0

12 years agocorrected high-resolution time conversions after code review
m4rienf [Thu, 6 Sep 2012 19:25:22 +0000 (21:25 +0200)]
corrected high-resolution time conversions after code review

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoUpdated Adrian Perez' 2009 Python network proto classes
m4rienf [Tue, 4 Sep 2012 18:23:43 +0000 (20:23 +0200)]
Updated Adrian Perez' 2009 Python network proto classes

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agosnmp plugin: Fix error message printed by the "Shift" option.
Dan Thomson [Fri, 7 Sep 2012 02:00:11 +0000 (19:00 -0700)]
snmp plugin: Fix error message printed by the "Shift" option.

I noticed a small error in snmp.c in collectd-5.1.0 (might be
elsewhere). The warning message in csnmp_config_add_data_shift says
"Scale config option" instead of "Shift" config option:
[…]

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agodf plugin: when checking / do it just once
Bruno Prémont [Wed, 21 Mar 2012 20:34:00 +0000 (21:34 +0100)]
df plugin: when checking / do it just once

Newer system symlink /etc/mtab to /proc/mounts which makes root
filesystem seem mounted twice, once as type rootfs and once for the
real device.

When / is selected for df plugin, skip the rootfs mount-point as
real root is usually mounted right on top of it.

Not skipping it causes rrdtool to complain about two updates for the
same timestamp, the first entry for rootfs passes but rrdtool complains
when stats for the second occurrence for real filesystem is being
considered.

Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Florian Forster <octo@collectd.org>
12 years agosnmp plugin: Check for SNMP_ENDOFMIBVIEW.
Florian Forster [Fri, 7 Sep 2012 08:11:42 +0000 (10:11 +0200)]
snmp plugin: Check for SNMP_ENDOFMIBVIEW.

Some implementations of SNMP will send a special "variable" when you're
leaving the requested subtree with type "endOfMibView" aka.
"SNMP_ENDOFMIBVIEW". Examples of such implementations are Citrix
Netscalers and IBM's General Parallel File System (GPFS). Reading past
this special variable will result in weird values being returned.

This adds an appropriate check to csnmp_check_res_left_subtree().

Thanks to "Mark" for reporting this issue and clarifying.

12 years agosrc/common.c: Add missing semicolon.
Florian Forster [Thu, 6 Sep 2012 15:29:59 +0000 (17:29 +0200)]
src/common.c: Add missing semicolon.

12 years agosrc/common.c: get_kstat_value: Check the arguments and return error codes.
Florian Forster [Thu, 6 Sep 2012 14:12:53 +0000 (16:12 +0200)]
src/common.c: get_kstat_value: Check the arguments and return error codes.

Rather than asserting that an argument is not NULL, check this condition
and return an error code.

This should fix Github issue #71.

12 years agosrc/Makefile.am: Unconditionally link collectd with libm.
Florian Forster [Wed, 5 Sep 2012 06:43:18 +0000 (08:43 +0200)]
src/Makefile.am: Unconditionally link collectd with libm.

Under FreeBSD, running src/utils_format_json.c fails because isfinite()
cannot be resolved. The GNU manpages for isnan() and isfinite() also
advise users to link with libm and AIX has had the library being linked
in for a while. Since it's such a basic library it seems easier to just
link with it unconditionally.

Fixes Github issue #122.

12 years agoMerge pull request #124 from tokkee/bj/build
Florian Forster [Tue, 4 Sep 2012 10:45:44 +0000 (03:45 -0700)]
Merge pull request #124 from tokkee/bj/build

Fix some build issues on AIX using automake <= 1.9 and gcc 4.7.1.

12 years agoAdd missing return statements
Benjamin Jacobs [Sun, 2 Sep 2012 21:54:35 +0000 (23:54 +0200)]
Add missing return statements

Fix gcc warn/error: no return statement in function returning non-void [-Werror=return-type]

Signed-off-by: Sebastian Harl <sh@tokkee.org>
12 years agoAutomake 1.9 compatibility: don't use $(builddir)
Benjamin Jacobs [Sun, 2 Sep 2012 21:53:24 +0000 (23:53 +0200)]
Automake 1.9 compatibility: don't use $(builddir)

Automake <= 1.9 don't define $(builddir) which is always defined to
'.' anyway.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
12 years agosrc/collectd.conf.in: Update memcached config block.
Florian Forster [Mon, 3 Sep 2012 12:51:04 +0000 (14:51 +0200)]
src/collectd.conf.in: Update memcached config block.

12 years agomemcached plugin: Fix some error messages.
Florian Forster [Mon, 3 Sep 2012 06:53:45 +0000 (08:53 +0200)]
memcached plugin: Fix some error messages.

12 years agomemcached plugin: Fix backwards compatibility.
Florian Forster [Mon, 3 Sep 2012 06:52:32 +0000 (08:52 +0200)]
memcached plugin: Fix backwards compatibility.

Don't use the instance name in the identifier when we're using the legacy
configuration mode.

12 years agomemcached plugin: Reorder functions to avoid prototype.
Florian Forster [Mon, 3 Sep 2012 06:25:46 +0000 (08:25 +0200)]
memcached plugin: Reorder functions to avoid prototype.

12 years agomemcached plugin: Refactor the memcached_query_daemon() function.
Florian Forster [Mon, 3 Sep 2012 06:22:16 +0000 (08:22 +0200)]
memcached plugin: Refactor the memcached_query_daemon() function.

The connecting code has been broken out in separate functions and the
writing and reading from the socket no longer uses poll(2),
non-blocking I/O and a custom built retry logic. Instead block on I/O and
let the read-thread-pool do its thing.

12 years agomemcached plugin: Fix backwards compatibility.
Florian Forster [Sun, 2 Sep 2012 11:25:16 +0000 (13:25 +0200)]
memcached plugin: Fix backwards compatibility.

Register a default callback in the init() phase if no configuration is
provided for the plugin. This way doing just "LoadPlugin memcached" will
result in the old behavior i.e. localhost being queried.

12 years agomemcached plugin: Fix the default behavior, i.e. use the documented host and port.
Florian Forster [Sun, 2 Sep 2012 11:03:07 +0000 (13:03 +0200)]
memcached plugin: Fix the default behavior, i.e. use the documented host and port.

12 years agocollectd.conf(5): Document the memcached plugin.
Florian Forster [Sun, 2 Sep 2012 10:58:30 +0000 (12:58 +0200)]
collectd.conf(5): Document the memcached plugin.

The Instance blocks and Socket option were missing.

12 years agomemcached plugin: Specify read-group name when registering callbacks.
Florian Forster [Sun, 2 Sep 2012 10:42:21 +0000 (12:42 +0200)]
memcached plugin: Specify read-group name when registering callbacks.

12 years agomemcached plugin: Rename config callback (add prefix).
Florian Forster [Sun, 2 Sep 2012 10:41:48 +0000 (12:41 +0200)]
memcached plugin: Rename config callback (add prefix).

12 years agomemcached plugin: Replace config_set_string() with cf_util_get_string().
Florian Forster [Sun, 2 Sep 2012 10:41:22 +0000 (12:41 +0200)]
memcached plugin: Replace config_set_string() with cf_util_get_string().

12 years agomultiple memcached instances, v2
Nicolas Szalay [Tue, 13 Mar 2012 08:37:57 +0000 (09:37 +0100)]
multiple memcached instances, v2

12 years agomemcached plugin : added support for multiple instances
Nicolas [Fri, 23 Dec 2011 22:15:22 +0000 (23:15 +0100)]
memcached plugin : added support for multiple instances

12 years agoadd a missing colon and fix indentation
Davide Guerri [Fri, 31 Aug 2012 10:04:34 +0000 (12:04 +0200)]
add a missing colon and fix indentation

12 years agouse the stack to allocate number_string and free path_copy on error
Davide Guerri [Wed, 29 Aug 2012 12:49:53 +0000 (14:49 +0200)]
use the stack to allocate number_string and free path_copy on error

12 years agoAdds "number" to interface formats.
Davide Guerri [Wed, 29 Aug 2012 10:42:19 +0000 (12:42 +0200)]
Adds "number" to interface formats.
This allows to keep track of interfaces using their sequential number.

12 years agoMerge branch 'sh/collectd-5.1' into collectd-5.1
Florian Forster [Mon, 27 Aug 2012 08:12:11 +0000 (10:12 +0200)]
Merge branch 'sh/collectd-5.1' into collectd-5.1

12 years agoMerge branch 'ms/tcpconns'
Florian Forster [Mon, 27 Aug 2012 06:39:17 +0000 (08:39 +0200)]
Merge branch 'ms/tcpconns'

12 years agotcpconns plugin: Only chose between netlink / proc on the first iteration.
Florian Forster [Mon, 27 Aug 2012 06:35:29 +0000 (08:35 +0200)]
tcpconns plugin: Only chose between netlink / proc on the first iteration.

Rather than going for netlink each iteration and fall back to /proc, try
this on the first iteration only and stick with the result afterwards.
Also contains some improvements to the error handling / reporting.

12 years agoAdded the instance name to varnish API
Jonathan Huot [Thu, 2 Aug 2012 15:56:05 +0000 (18:56 +0300)]
Added the instance name to varnish API

Fixed issue collectd#110

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agolittle style changes (code review)
Michael Stapelberg [Fri, 24 Aug 2012 21:02:26 +0000 (23:02 +0200)]
little style changes (code review)

12 years agosrc/utils_format_json.c: Remove unused arguments.
Florian Forster [Thu, 23 Aug 2012 07:45:57 +0000 (09:45 +0200)]
src/utils_format_json.c: Remove unused arguments.

12 years agowrite_graphite: Use the broken out "format_graphite" module.
Florian Forster [Thu, 23 Aug 2012 07:44:02 +0000 (09:44 +0200)]
write_graphite: Use the broken out "format_graphite" module.

This was broken out for use in the AMQP plugin. De-duplicate the code by
using it from write_graphite as well.

12 years agoAUTHORS: Add Thomas Meson.
Florian Forster [Thu, 23 Aug 2012 07:03:35 +0000 (09:03 +0200)]
AUTHORS: Add Thomas Meson.

Add Florian Forster to the list of copyright holders and authors of
utils_format_graphite.c, since its based on his code.

12 years agoamqp plugin: add support for Graphite output
Thomas Meson [Fri, 10 Aug 2012 22:11:54 +0000 (00:11 +0200)]
amqp plugin: add support for Graphite output

This commit implements "Graphite format" for AMQP Plugin.
The AMQP plugin will be able to directly output a valid
Graphite metric format (<metric name> <value> <timestamp>\n).
This is very useful when the Graphite server is directly reading
from an AMQP broker. You can then avoid having a proxy somewhere
doing the conversion between PUTVAL or JSON metrics into Graphite
format.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agopostgresql plugin: Updated copyright information.
Sebastian Harl [Sun, 19 Aug 2012 19:48:21 +0000 (21:48 +0200)]
postgresql plugin: Updated copyright information.

12 years agocontrib/postgresql/collectd_insert.sql: Added values_update_childs().
Sebastian Harl [Sun, 19 Aug 2012 19:44:35 +0000 (21:44 +0200)]
contrib/postgresql/collectd_insert.sql: Added values_update_childs().

This function may be used to create the child tables (for the "values" table)
for the next couple of days (if they don't exist already).

12 years agopostgresql plugin: Fixed a possibly uninitialized variable warning.
Sebastian Harl [Sun, 19 Aug 2012 19:43:42 +0000 (21:43 +0200)]
postgresql plugin: Fixed a possibly uninitialized variable warning.

This was identified by 'gcc -O2'.

12 years agocontrib/postgresql/collectd_insert.sql: Added sample writer setup.
Sebastian Harl [Sun, 19 Aug 2012 12:25:41 +0000 (14:25 +0200)]
contrib/postgresql/collectd_insert.sql: Added sample writer setup.

12 years agopostgresql plugin: Pass an array of data-source types to writers.
Sebastian Harl [Sun, 19 Aug 2012 12:14:03 +0000 (14:14 +0200)]
postgresql plugin: Pass an array of data-source types to writers.

The array includes the stringified version of the data-source type, i.e.,
'gauge', 'counter', etc. This will enable the writer to treat different types
differently. However, when having 'StoreRates' enabled (the default) all types
will be 'gauge'. So, in most cases, this won't be used but it has been added
for completeness and to be safe for the future.

12 years agopostgresql plugin: Added 'StoreRates' feature to writers.
Sebastian Harl [Sun, 19 Aug 2012 10:38:21 +0000 (12:38 +0200)]
postgresql plugin: Added 'StoreRates' feature to writers.

Similar to other write plugins, this option causes counter values to be
converted to rates before submitting them to the database. The option defaults
to true.

12 years agopostgresql plugin: Format time in ISO 8601 format when writing data.
Sebastian Harl [Sat, 18 Aug 2012 16:12:43 +0000 (18:12 +0200)]
postgresql plugin: Format time in ISO 8601 format when writing data.

This way, the value may directly be used as a timestamp value in PostgreSQL.

12 years agoutils_time: Added cdtime_to_iso8601() function.
Sebastian Harl [Sat, 18 Aug 2012 16:11:39 +0000 (18:11 +0200)]
utils_time: Added cdtime_to_iso8601() function.

This function formats a cdtime_t value in ISO 8601 format (and ensures that
the string is null terminated).

12 years agopostgresql plugin: Added generic support for writing values to a database.
Sebastian Harl [Sat, 18 Aug 2012 15:23:42 +0000 (17:23 +0200)]
postgresql plugin: Added generic support for writing values to a database.

This has been implemented by requiring the user to specify an SQL statement to
be used for storing a value-list in PostgreSQL. Usually, this should be done
by creating custom functions to take care of that.

The user specified statement will then be called by collectd with eight
arguments: time, host, plugin, plugin instance (or NULL), type, type instance
(or NULL), array of value names (data source names) and an array of the
values.

Two elements have been added to the config parser: A <Writer> block may be
used to name an SQL statement (specified using the 'Statement' option) to be
used for writing data. In a <Database> block, the new option 'Writer' may be
used to apply a writer to a database connection.

The current approach has two benefits: for one, a user may chose whatever
database layout best suits her needs. Also, it is very easy to experiment with
different approaches on how to structure the data in a database without the
need to modify the plugin. This can be done in SQL, which (hopefully) is the
language that people working with PostgreSQL databases like most ;-)
If it happens to turn out that some approach is rather superior, it may still
be re-implemented in a specific plugin in later versions.

12 years agoMerge pull request #109 from tokkee/sh/collectd-5.0
Florian Forster [Fri, 10 Aug 2012 07:16:37 +0000 (00:16 -0700)]
Merge pull request #109 from tokkee/sh/collectd-5.0

configure: Define _REENTRANT when compiling on Solaris.

LGTM

12 years agoFix to make write_mongodb work with any version of mongo-c-driver
Chris Lundquist [Fri, 13 Jul 2012 01:06:15 +0000 (01:06 +0000)]
Fix to make write_mongodb work with any version of mongo-c-driver

12 years agotcpconns/linux: Use netlink instead of parsing /proc/net/tcp{,6}
Michael Stapelberg [Tue, 7 Aug 2012 10:41:38 +0000 (12:41 +0200)]
tcpconns/linux: Use netlink instead of parsing /proc/net/tcp{,6}

12 years agoconfigure: Define _REENTRANT when compiling on Solaris.
Mathijs Möhlmann [Tue, 22 Mar 2011 13:26:47 +0000 (14:26 +0100)]
configure: Define _REENTRANT when compiling on Solaris.

On Wed, Mar 16, 2011 at 10:35:07AM +0100, Mathijs Möhlmann wrote:
> I'm using collectd 4.10.2 on Solaris 10 (gcc 3.4.6). Sometimes when I
> start with a clean rrd directory or add a host the .rrd file (rrdtools
> plugin) don't get created and I get the following message:
>
> collectd[2996]: [ID 702911 daemon.error] stat(/usr/local/var/lib/collectd/rrd/asterix/load/load.rrd) failed: Bad file number

This patch fixes this.

Signed-off-by: Sebastian Harl <sh@teamix.net>
12 years agoconfigure, utils_dns: Check for and use netinet/ip_compat.h.
Sebastian Harl [Thu, 2 Aug 2012 10:16:38 +0000 (12:16 +0200)]
configure, utils_dns: Check for and use netinet/ip_compat.h.

This is required on Solaris in order to get the ip6_ext struct.

12 years agomysql plugin: Use the database instance name for identifying read callbacks.
Sebastian Harl [Wed, 1 Aug 2012 07:16:34 +0000 (09:16 +0200)]
mysql plugin: Use the database instance name for identifying read callbacks.

The database instance is specified as argument to the <Database> block.
Without this fix, we cannot specify two database blocks without the
(optional!) 'Database' option as this would result in registering two read
callbacks with the name 'mysql'.

Thanks to Johan Bergström for reporting this on IRC!

12 years agocontrib/migrate-4-5.px: Added missing end quotes in a call to rrd_filter.px.
Sebastian Harl [Sun, 15 Jul 2012 11:04:09 +0000 (13:04 +0200)]
contrib/migrate-4-5.px: Added missing end quotes in a call to rrd_filter.px.

12 years agoFix bad definition of UDP src port in DNS plugin.
Daniel Sutto [Wed, 11 Jul 2012 17:32:16 +0000 (19:32 +0200)]
Fix bad definition of UDP src port in DNS plugin.

12 years agoFix bad definition of UDP src port in DNS plugin.
Daniel Sutto [Wed, 11 Jul 2012 17:32:16 +0000 (19:32 +0200)]
Fix bad definition of UDP src port in DNS plugin.

12 years agocollectd.conf(5): Document the "Password" option.
Florian Forster [Mon, 9 Jul 2012 05:49:00 +0000 (07:49 +0200)]
collectd.conf(5): Document the "Password" option.

12 years agoredis plugin: Coding style fixes.
Florian Forster [Mon, 9 Jul 2012 05:48:40 +0000 (07:48 +0200)]
redis plugin: Coding style fixes.

12 years agoredis plugin: Add authentication support.
biancalana [Fri, 6 Jul 2012 02:10:24 +0000 (23:10 -0300)]
redis plugin: Add authentication support.

12 years agoCorrect compilation on FreeBSD, set HOST_NAME_MAX to _POSIX_HOST_NAME_MAX if isn...
biancalana [Fri, 6 Jul 2012 01:07:15 +0000 (22:07 -0300)]
Correct compilation on FreeBSD, set HOST_NAME_MAX to _POSIX_HOST_NAME_MAX if isn't defined

12 years agosrc/utils_format_json.c: Various fixes for the meta data code.
Florian Forster [Fri, 6 Jul 2012 13:39:18 +0000 (15:39 +0200)]
src/utils_format_json.c: Various fixes for the meta data code.

* Moved to a separate function.
* Escape string values.
* Fix format string for [u]int64_t.
* Emit the JSON literals «true» and «false» rather than «0» and «1».
* Make certain keys are always freed.
* Move the meta data information into a separate map.

12 years agoannotate meta data to json objects
Mark Wong [Thu, 20 Jan 2011 23:18:14 +0000 (15:18 -0800)]
annotate meta data to json objects

Run through any metadata and annotate them to json objects when they are
created.

12 years agocontrib/migrate-4-5.px: Break up "df" RRD files into multiple files.
Florian Forster [Thu, 5 Jul 2012 13:48:29 +0000 (15:48 +0200)]
contrib/migrate-4-5.px: Break up "df" RRD files into multiple files.

12 years agocollectd.conf(5): Improve description of the configuration syntax.
Florian Forster [Thu, 5 Jul 2012 06:32:28 +0000 (08:32 +0200)]
collectd.conf(5): Improve description of the configuration syntax.

12 years agoAggregation plugin: Add sanity checking for <Aggregation /> blocks.
Florian Forster [Thu, 5 Jul 2012 06:03:09 +0000 (02:03 -0400)]
Aggregation plugin: Add sanity checking for <Aggregation /> blocks.

12 years agoMerge pull request #97 from tokkee/sh/swap
Florian Forster [Mon, 2 Jul 2012 20:00:34 +0000 (13:00 -0700)]
Merge pull request #97 from tokkee/sh/swap

swap plugin: Don't report an error if there is no swap space on Linux.

12 years agocollectd.conf(5): Add documentation for the "aggregation" plugin.
Florian Forster [Mon, 2 Jul 2012 15:56:19 +0000 (11:56 -0400)]
collectd.conf(5): Add documentation for the "aggregation" plugin.

12 years agoaggregation plugin: Change the reported plugin name to "aggregation".
Florian Forster [Mon, 2 Jul 2012 15:55:49 +0000 (11:55 -0400)]
aggregation plugin: Change the reported plugin name to "aggregation".

From "aggregate".

12 years agosrc/common.c: rate_to_value: Update last_time and fix type of delta_gauge.
Florian Forster [Mon, 2 Jul 2012 15:55:24 +0000 (11:55 -0400)]
src/common.c: rate_to_value: Update last_time and fix type of delta_gauge.

12 years agoswap plugin: Don't report an error if there is no swap space on Linux.
Sebastian Harl [Sat, 30 Jun 2012 14:33:09 +0000 (16:33 +0200)]
swap plugin: Don't report an error if there is no swap space on Linux.

… rather, simply record zeros in that case. Swap may be switched on and off at
arbitrary times and/or might be added at "later" times. Thus, storing zero in
case the swap plugin is enabled sounds like the best approach to me.

12 years agoMerge pull request #96 from mstap/master
Florian Forster [Sat, 30 Jun 2012 01:09:57 +0000 (18:09 -0700)]
Merge pull request #96 from mstap/master

add collectd systemd service file

12 years agodescribe collectd.service in contrib/README
Michael Stapelberg [Fri, 29 Jun 2012 23:23:55 +0000 (01:23 +0200)]
describe collectd.service in contrib/README

12 years agoAdd collectd systemd unit file
Michael Stapelberg [Fri, 29 Jun 2012 16:45:49 +0000 (18:45 +0200)]
Add collectd systemd unit file

12 years agoFix for config file parsing ("memcachec plugin: Option `Server' not allowed here.")
Pascal Hofmann [Thu, 14 Jun 2012 19:54:47 +0000 (21:54 +0200)]
Fix for config file parsing ("memcachec plugin: Option `Server' not allowed here.")

12 years agoFix out-of-bound index in rrdtool.c
Will Hawkins [Fri, 22 Jun 2012 18:45:45 +0000 (14:45 -0400)]
Fix out-of-bound index in rrdtool.c

Fix a reference to argv[1] that is (always?)
outside the bounds of the argv array. It happens
during a log statement that seems to want
to actually refer to the rrd filename.

12 years agoaggregation plugin: Actually dispatch values.
Florian Forster [Mon, 25 Jun 2012 11:29:07 +0000 (13:29 +0200)]
aggregation plugin: Actually dispatch values.

12 years agoaggregation plugin: First working prototype.
Florian Forster [Sat, 23 Jun 2012 18:50:27 +0000 (20:50 +0200)]
aggregation plugin: First working prototype.

12 years agosrc/utils_vl_lookup.[ch]: Move the any/all/wildcard macros to the header file.
Florian Forster [Sat, 23 Jun 2012 18:50:01 +0000 (20:50 +0200)]
src/utils_vl_lookup.[ch]: Move the any/all/wildcard macros to the header file.

12 years agosrc/utils_vl_lookup.c: Fix a wrong pointer being passed to the callback.
Florian Forster [Sat, 23 Jun 2012 18:49:32 +0000 (20:49 +0200)]
src/utils_vl_lookup.c: Fix a wrong pointer being passed to the callback.

12 years agosrc/utils_vl_lookup.[ch]: Add module for efficient lookup of VL matches with wildcards.
Florian Forster [Wed, 20 Jun 2012 13:51:34 +0000 (15:51 +0200)]
src/utils_vl_lookup.[ch]: Add module for efficient lookup of VL matches with wildcards.

For a planned aggregation plugin it is important to find "aggregations"
quickly. In order to aggregate anything, they need to include wildcards.
This module provides this basic lookup service, on top of which an
aggregation plugin can easily be built.

This is kept very modular so the code can (hopefully) be used by other
projects as well, in particular c4 could benefit from this lookup structure
as well.

12 years agosrc/common.[ch]: Add rate_to_value().
Florian Forster [Fri, 1 Jun 2012 12:23:58 +0000 (14:23 +0200)]
src/common.[ch]: Add rate_to_value().