Code

collectd.git
12 years agoCollectd's scale plugin now supports scaling only on specific data sources, yay!
Gerrie Roos [Wed, 25 May 2011 16:28:55 +0000 (18:28 +0200)]
Collectd's scale plugin now supports scaling only on specific data sources, yay!

Change-Id: I91dc04fbd0a8e982ce09a766f12d024bdbef634f

12 years agoMerge branch 'collectd-5.0'
Florian Forster [Sun, 19 Feb 2012 10:21:31 +0000 (11:21 +0100)]
Merge branch 'collectd-5.0'

Conflicts:
configure.in

Change-Id: Ifffa7df6b6c758650af7d942c26c8bd89568d8ea

12 years agoBump version to 5.0.3; Update ChangeLog. collectd-5.0.3
Florian Forster [Sun, 19 Feb 2012 10:12:43 +0000 (11:12 +0100)]
Bump version to 5.0.3; Update ChangeLog.

Change-Id: I3c73ac8b3ac73227e20ea32d052f5bea1575e29a

12 years agoMerge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Sun, 19 Feb 2012 10:11:28 +0000 (11:11 +0100)]
Merge branch 'collectd-4.10' into collectd-5.0

Conflicts:
ChangeLog
version-gen.sh

Change-Id: Id72b28eb1432835ab710d1f551bb886d0638e079

12 years agoUpdate ChangeLog. collectd-4.10.6
Florian Forster [Sun, 19 Feb 2012 09:58:46 +0000 (10:58 +0100)]
Update ChangeLog.

Change-Id: I41518e6e48c089e79919d1bc65b03744872bcec0

12 years agoexec plugin: Replace tabs with spaces to fix indentation.
Florian Forster [Fri, 17 Feb 2012 14:09:26 +0000 (15:09 +0100)]
exec plugin: Replace tabs with spaces to fix indentation.

Change-Id: I6e623f237c1d79007bd471732476a4e32dafde97

12 years agonetwork plugin: Fixed incorrect collectd warning when configuring network plugin.
Gerrie Roos [Tue, 20 Dec 2011 04:30:59 +0000 (06:30 +0200)]
network plugin: Fixed incorrect collectd warning when configuring network plugin.

Cosmetic only

Change-Id: I4c4c8fe19c23e9aa31b35e61eba31aa686429c10
Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoexec plugin: incorrectly exited select loop on signal.
Gerrie Roos [Tue, 10 Jan 2012 07:00:42 +0000 (09:00 +0200)]
exec plugin: incorrectly exited select loop on signal.

Sometimes dead modules won't be started up correctly or running ones
would not generate stats anymore.  Problem manifests more often under
load and on multicore hw

Change-Id: Ifb70a74c0cd55fc421b65a1f4332147916eadb70
Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoconfigure.in: Use the `--libs_r' option of mysql-config.
Cyril Feraudet [Tue, 14 Feb 2012 09:47:27 +0000 (10:47 +0100)]
configure.in: Use the `--libs_r' option of mysql-config.

Rather than the `--libs' option.

Change-Id: Idd2a3828f4d154f353c44a4b69aa094acbadcabf
Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoMerge branch 'ss/graphite'
Florian Forster [Mon, 13 Feb 2012 21:10:52 +0000 (22:10 +0100)]
Merge branch 'ss/graphite'

12 years agocollectd.conf(5): Improve description of the write_graphite plugin.
Florian Forster [Mon, 13 Feb 2012 21:03:07 +0000 (22:03 +0100)]
collectd.conf(5): Improve description of the write_graphite plugin.

Change-Id: Ide28fe5eef021bc18cfd05202b1efefea693350c

12 years agowrite_graphite plugin: Set a (hopefully unique) callback name.
Florian Forster [Mon, 13 Feb 2012 20:27:40 +0000 (21:27 +0100)]
write_graphite plugin: Set a (hopefully unique) callback name.

Change-Id: Iab70d4f40a614bc04b70b61868d30721ee9641c1

12 years agowrite_graphite plugin: Simplify wg_write_messages().
Florian Forster [Mon, 13 Feb 2012 13:33:44 +0000 (14:33 +0100)]
write_graphite plugin: Simplify wg_write_messages().

There is no need for special handling of values with one / more data sources.

Change-Id: I849d4a881ed50ad1c7b8cf5c0abd1c5d62fe5258

12 years agowrite_graphite plugin: Report configuration errors for the EscapeCharacter option.
Florian Forster [Thu, 9 Feb 2012 09:48:50 +0000 (10:48 +0100)]
write_graphite plugin: Report configuration errors for the EscapeCharacter option.

Change-Id: Ia99e2c8d9c7ced344bb52f4d80957fa9abe3e7db

12 years agowrite_graphite plugin: Print the time as an unsigned int.
Florian Forster [Thu, 9 Feb 2012 09:46:21 +0000 (10:46 +0100)]
write_graphite plugin: Print the time as an unsigned int.

Change-Id: I61f4952c8debdf7c80c4e1e4647cf42ecf00f033

12 years agowrite_graphite plugin: Use CR-LF line endings.
Florian Forster [Wed, 8 Feb 2012 17:25:03 +0000 (18:25 +0100)]
write_graphite plugin: Use CR-LF line endings.

Using this line ending in ASCII conversations over the network has been a
convention since the 1970s, let's stick with it.

Change-Id: I5d0640e520a70483ab9256989f89e9e2dcab7643

12 years agowrite_graphite plugin: Use swrite() instead of write().
Florian Forster [Wed, 8 Feb 2012 15:38:01 +0000 (16:38 +0100)]
write_graphite plugin: Use swrite() instead of write().

swrite() ensures that the entire buffer is written before the buffer is reset.

Change-Id: I105d42d8ea5b71acd5a5e37b7cc4209045f28d47

12 years agowrite_graphite plugin: Decrese buffer size.
Florian Forster [Wed, 8 Feb 2012 09:25:59 +0000 (10:25 +0100)]
write_graphite plugin: Decrese buffer size.

The larger the buffer, the longer you need to wait for the data to be written
to Carbon. The new buffer size assumes an MTU of 1500 bytes (Ethernet payload)
and keeps margins for IPv6 and TCP (with timestamps). This should decrease the
number of packets needed (because data is now cleanly aligned to the packet
size) and decrease the overall time spent buffered.

Change-Id: I73021608f1ff0f22f9e73cd62b7fb5ea79421546

12 years agosrc/collectd.conf.in: Rename "write_mongo" to "write_mongodb".
Florian Forster [Tue, 7 Feb 2012 17:23:00 +0000 (18:23 +0100)]
src/collectd.conf.in: Rename "write_mongo" to "write_mongodb".

Change-Id: I42fdd3d4a380ab50d0c4e14bc2ed2b09f09bf716

12 years agosrc/collectd.conf.in: Add the write_graphite plugin.
Florian Forster [Tue, 7 Feb 2012 17:21:33 +0000 (18:21 +0100)]
src/collectd.conf.in: Add the write_graphite plugin.

Change-Id: I238d9bd7d2413bdc747f0603cb6e97d777252fcd

12 years agowrite_graphite plugin: Implement the "AlwaysAppendDS" option.
Florian Forster [Tue, 7 Feb 2012 17:19:20 +0000 (18:19 +0100)]
write_graphite plugin: Implement the "AlwaysAppendDS" option.

Don't append DS name by default, except when there is more than one DS.
The "AlwaysAppendDS" option can be used to force the plugin to always
append the DS.

Change-Id: I0221bef49375e3b5c5de99bb8f5a9cd641b696c3

12 years agowrite_graphite plugin: Fix trailing underscores.
Florian Forster [Tue, 7 Feb 2012 17:16:02 +0000 (18:16 +0100)]
write_graphite plugin: Fix trailing underscores.

This may also fix an off-by-one error when the name is long enough. D'oh!

Change-Id: Ibc5a68f9bc93eed6366d074b55a7aca020bcf990

12 years agowrite_graphite plugin: Implement the StoreRates option.
Florian Forster [Tue, 7 Feb 2012 16:59:00 +0000 (17:59 +0100)]
write_graphite plugin: Implement the StoreRates option.

Most of it was already present in the code anyway, so I just added the
appropriate config handling.

Change-Id: I7ce8be2f5b075da690872ec72b3610eae05b3c6c

12 years agopinba, postgres and routeros plugins: Use the cf_util_get_service() function.
Florian Forster [Mon, 6 Feb 2012 17:07:08 +0000 (18:07 +0100)]
pinba, postgres and routeros plugins: Use the cf_util_get_service() function.

PostgreSQL plugin: Also abolish the config_set_s() function in favor of
cf_util_get_string().

Change-Id: Ib3d903c48a30fd6a8417e8ee999368eda15d69d7

12 years agowrite_graphite plugin: Use cf_util_get_service() for the "Port" option.
Florian Forster [Mon, 6 Feb 2012 13:54:40 +0000 (14:54 +0100)]
write_graphite plugin: Use cf_util_get_service() for the "Port" option.

Change-Id: If3f0b32f86a40dbaa22837dc15f51429239af03a

12 years agoMerge branch 'master' into ss/graphite
Florian Forster [Mon, 6 Feb 2012 13:37:52 +0000 (14:37 +0100)]
Merge branch 'master' into ss/graphite

12 years agosrc/configfile.[ch]: Add cf_util_get_service() for getting service names.
Florian Forster [Mon, 6 Feb 2012 10:49:59 +0000 (11:49 +0100)]
src/configfile.[ch]: Add cf_util_get_service() for getting service names.

Change-Id: I310c0d076a82927958fba04dd9eedbc706742dce

12 years agocollectd.conf(5): Add stub for the write_graphite plugin.
Florian Forster [Mon, 6 Feb 2012 09:48:14 +0000 (10:48 +0100)]
collectd.conf(5): Add stub for the write_graphite plugin.

Change-Id: I129127ff7216b8a23f9cb638df49192f5b16e45f

12 years agoBump version to 4.10.6; Update ChangeLog.
Florian Forster [Sun, 5 Feb 2012 13:02:07 +0000 (14:02 +0100)]
Bump version to 4.10.6; Update ChangeLog.

Change-Id: I95bfb6e742ba7ad9e2b9c89dc990cd4bf573dbfa

12 years agoBuild system: Remove superfluous C(PP)FLAG.
Florian Forster [Sun, 5 Feb 2012 12:49:45 +0000 (13:49 +0100)]
Build system: Remove superfluous C(PP)FLAG.

Change-Id: Ic2f665869f863b1e0dca9b5ccde2803715386a3c

12 years agoBuild system: Use pkg-config to configure libiptc.
Florian Forster [Sat, 4 Feb 2012 15:28:02 +0000 (16:28 +0100)]
Build system: Use pkg-config to configure libiptc.

This hopefully fixes Goobuntu Bug #375733.

Change-Id: I0a4215351ce836fb62418cbd40bee27fd695d9da

12 years agoMerge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Fri, 3 Feb 2012 10:49:04 +0000 (11:49 +0100)]
Merge branch 'collectd-4.10' into collectd-5.0

12 years agowrite_graphite plugin: Fix locking.
Florian Forster [Fri, 3 Feb 2012 09:54:58 +0000 (10:54 +0100)]
write_graphite plugin: Fix locking.

wg_send_buffer() is called from wg_flush_nolock(). When calling
wg_flush_nolock(), the thread has to hold cb->send_lock. Locking it again
will fail, but this condition is not checked for. Then the lock is
released twice which may result in concurrency issues.

Change-Id: Ie3062d50e6545adeb95b3a1938837c1f26835a56

12 years agowrite_graphite plugin: Remove the unused "server" field.
Florian Forster [Fri, 3 Feb 2012 09:52:18 +0000 (10:52 +0100)]
write_graphite plugin: Remove the unused "server" field.

Change-Id: I6ae59f4a2f6be69f891bbfa16afddc5ec9be9bad

12 years agowrite_graphite plugin: Update the copyright header.
Florian Forster [Fri, 3 Feb 2012 09:51:50 +0000 (10:51 +0100)]
write_graphite plugin: Update the copyright header.

It's based on the write_http plugin, so these copyrights apply as well.

Change-Id: I9def5e5b7e3cf6081f820df07187f47dd9d4b92b

12 years agowrite_graphite plugin: Escape *all* the things!
Florian Forster [Fri, 3 Feb 2012 09:34:51 +0000 (10:34 +0100)]
write_graphite plugin: Escape *all* the things!

Dots and spaces can appear anywhere, e.g. spaces in hostnames and dots in type
instances. Escape them all to avoid unintended special treatment by Carbon /
Graphite.

Change-Id: Iccc330934bcd765a237a1fed42d0cdb4bf3aa2b1

12 years agoMerge pull request #20 from pyr/ss/graphite
Florian Forster [Fri, 3 Feb 2012 09:05:46 +0000 (01:05 -0800)]
Merge pull request #20 from pyr/ss/graphite

Remove spaces and dots from the identifier.

12 years agowrite_graphite plugin: Remove duplicate includes.
Florian Forster [Fri, 3 Feb 2012 09:03:58 +0000 (10:03 +0100)]
write_graphite plugin: Remove duplicate includes.

Change-Id: I8745634aee66edde18f5720a6b4882d51e19ee12

12 years agoBuild system: write_graphite doesn't depend on cURL.
Florian Forster [Fri, 3 Feb 2012 09:03:28 +0000 (10:03 +0100)]
Build system: write_graphite doesn't depend on cURL.

Change-Id: Ide4fccdef64fc37434c87e662484930ab69b9f1b

12 years agoREADME: Add the write_graphite plugin.
Florian Forster [Fri, 3 Feb 2012 09:02:23 +0000 (10:02 +0100)]
README: Add the write_graphite plugin.

Change-Id: I265711b7b76d2244264c1df4158aed43cfcbb31b

12 years agoAUTHORS: Add Scott Sanders.
Florian Forster [Fri, 3 Feb 2012 09:02:02 +0000 (10:02 +0100)]
AUTHORS: Add Scott Sanders.

Change-Id: I633b1f64a00db7192e64e88d5960683404e0602e

12 years agobring back prefix/postfix handling. simplify swap_chars.
Pierre-Yves Ritschard [Fri, 3 Feb 2012 08:57:53 +0000 (09:57 +0100)]
bring back prefix/postfix handling. simplify swap_chars.

prefix and postfix need to be set to an empty string when
they are null since they are used in format strings.

swap_chars return value is never used and could never be
negative, switch to a void prototype instead.

12 years agoirq plugin: Coding style fixes.
Florian Forster [Fri, 3 Feb 2012 08:30:43 +0000 (09:30 +0100)]
irq plugin: Coding style fixes.

Change-Id: Ibed2873a6862bf42ae701c4907805956ee4e07fa

12 years agoMerge pull request #19 from bostjan/master
Florian Forster [Fri, 3 Feb 2012 08:31:37 +0000 (00:31 -0800)]
Merge pull request #19 from bostjan/master

Pull request for fixes in irq plugin

12 years agoreimport my changes
Pierre-Yves Ritschard [Fri, 3 Feb 2012 08:30:44 +0000 (09:30 +0100)]
reimport my changes

12 years agoChanges in irq plugin:
Bostjan Skufca [Fri, 3 Feb 2012 02:10:08 +0000 (03:10 +0100)]
Changes in irq plugin:
- fixes errors described here: http://mailman.verplant.org/pipermail/collectd/2011-July/004638.html
- refactored parsing code in order to make it a bit more intuitive
- added a few additional comments

12 years agoversion-gen.sh: Switch to bash due to bashisms.
Jo-Philipp Wich [Thu, 2 Feb 2012 22:27:45 +0000 (23:27 +0100)]
version-gen.sh: Switch to bash due to bashisms.

Change-Id: I8480afad2d157382fb7e5ff35785e97066c8553c

12 years agoBuild system: Add the write_graphite plugin.
Florian Forster [Thu, 2 Feb 2012 17:05:34 +0000 (18:05 +0100)]
Build system: Add the write_graphite plugin.

Change-Id: I333cb950bb68e47366bf9dd17eca181dde25847d

12 years agoMerge branch 'import/ss/graphite' into ss/graphite
Florian Forster [Thu, 2 Feb 2012 17:19:15 +0000 (18:19 +0100)]
Merge branch 'import/ss/graphite' into ss/graphite

12 years agowrite_graphite plugin: Don't allocate {Pre,Post}fix if unspecified.
Florian Forster [Thu, 2 Feb 2012 16:43:28 +0000 (17:43 +0100)]
write_graphite plugin: Don't allocate {Pre,Post}fix if unspecified.

Just leave them at NULL and catch this condition in wg_format_name().

12 years agowrite_graphite plugin: Improve Hostname / Port handling.
Florian Forster [Thu, 2 Feb 2012 16:39:21 +0000 (17:39 +0100)]
write_graphite plugin: Improve Hostname / Port handling.

Use getaddrinfo(3) for hostname lookup -- this also adds IPv6 compatibility.
Switch the internal names to node / service, to follow the terminology used by
getaddrinfo(3). Use cf_util_get_string() rather than implementing our own.
Allow service names in addition to port numbers.

12 years agoMerge remote-tracking branch 'snickl/snickl/1-modbus-fix-pkgconfig'
Florian Forster [Tue, 31 Jan 2012 14:12:23 +0000 (15:12 +0100)]
Merge remote-tracking branch 'snickl/snickl/1-modbus-fix-pkgconfig'

12 years agoMerge pull request #18 from ChrisLundquist/cl/mongodb
Florian Forster [Mon, 30 Jan 2012 22:15:31 +0000 (14:15 -0800)]
Merge pull request #18 from ChrisLundquist/cl/mongodb

free our bson record after the write as not to leak memory

12 years agofree our bson record after the write as not to leak memory
Chris Lundquist [Mon, 30 Jan 2012 21:49:32 +0000 (13:49 -0800)]
free our bson record after the write as not to leak memory

12 years agoRevert "interface plugin: Fix for bogus interfaces under Solaris."
Florian Forster [Mon, 30 Jan 2012 15:29:13 +0000 (16:29 +0100)]
Revert "interface plugin: Fix for bogus interfaces under Solaris."

This results in problems on aggregated interfaces, amongst other things.
I guess Solaris users will need to use the "IgnoreSelected" option to
get rid of "bogus" interfaces.

This reverts commit e7a75874a24c1bf19931d5b4b423a0daa7f9be6b.

12 years agonetwork plugin: Document the standard buffer size with more detail.
Florian Forster [Mon, 30 Jan 2012 13:47:04 +0000 (14:47 +0100)]
network plugin: Document the standard buffer size with more detail.

Change-Id: I48e61fc2613ca50c477794167f180e3b4f4fc673

12 years agoChange modbus to libmodbus to fix pkgconfig
Stefan Nickl [Sat, 28 Jan 2012 16:32:38 +0000 (17:32 +0100)]
Change modbus to libmodbus to fix pkgconfig

12 years agoMerge branch 'collectd-5.0'
Florian Forster [Sat, 28 Jan 2012 11:26:51 +0000 (12:26 +0100)]
Merge branch 'collectd-5.0'

12 years agoMerge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Sat, 28 Jan 2012 11:26:41 +0000 (12:26 +0100)]
Merge branch 'collectd-4.10' into collectd-5.0

12 years agoMerge remote-tracking branch 'tokkee/sh/collectd-5.0' into collectd-5.0
Florian Forster [Sat, 28 Jan 2012 11:03:35 +0000 (12:03 +0100)]
Merge remote-tracking branch 'tokkee/sh/collectd-5.0' into collectd-5.0

12 years agoMinor doc fixes for the Python plugin.
Florian Forster [Thu, 26 Jan 2012 21:54:34 +0000 (22:54 +0100)]
Minor doc fixes for the Python plugin.

Change-Id: I233d0ae4ec035c74811ef33aa119573066c9a3f6

12 years agoMerge pull request #2 from trenkel/collectd-4.10
Florian Forster [Thu, 26 Jan 2012 13:00:33 +0000 (05:00 -0800)]
Merge pull request #2 from trenkel/collectd-4.10

Even more fun than memory leaks: Memory corruption.

12 years agopython: Fixed crash bug in case the plugin had more than one configuration block.
Sven Trenkel [Thu, 26 Jan 2012 11:20:28 +0000 (11:20 +0000)]
python: Fixed crash bug in case the plugin had more than one configuration block.

12 years agooracle plugin: Fix use of the OCIErrorGet() function.
Florian Forster [Thu, 26 Jan 2012 10:36:03 +0000 (11:36 +0100)]
oracle plugin: Fix use of the OCIErrorGet() function.

Change-Id: I9899b98517fe0c239bffcf7a75681560029aa2ba

12 years agoMerge pull request #12 from ChrisLundquist/as/mongodb
Florian Forster [Wed, 25 Jan 2012 19:55:24 +0000 (11:55 -0800)]
Merge pull request #12 from ChrisLundquist/as/mongodb

Write MongoDB plugin: New plugin to write statistics to MongoDB, a NoSQL database using JSON documents.

12 years agowrite_mongodb plugin: Fix a format-string error.
Florian Forster [Wed, 25 Jan 2012 10:51:13 +0000 (11:51 +0100)]
write_mongodb plugin: Fix a format-string error.

Change-Id: Ia18cfa8ea7ef8536957c0807112620d2e0e2a976

12 years agowrite_mongodb plugin: Fix the use of {CPP,LD}FLAGS.
Florian Forster [Wed, 25 Jan 2012 10:47:37 +0000 (11:47 +0100)]
write_mongodb plugin: Fix the use of {CPP,LD}FLAGS.

Change-Id: Ieb8467d3c1d0fac819864ff873594432170289d3

12 years agowrite_mongodb plugin: Update copyright header.
Florian Forster [Wed, 25 Jan 2012 10:24:28 +0000 (11:24 +0100)]
write_mongodb plugin: Update copyright header.

Change-Id: Ie939a7f3df1db9fc2aa3493028e3b3d74cdaeb61

12 years agoremove more commented out code
Chris Lundquist [Tue, 24 Jan 2012 19:57:06 +0000 (11:57 -0800)]
remove more commented out code

12 years agoWe have to convert CDTime to seconds since epoch
Chris Lundquist [Fri, 20 Jan 2012 22:29:31 +0000 (14:29 -0800)]
We have to convert CDTime to seconds since epoch

12 years agoremove commented out code
Chris Lundquist [Mon, 16 Jan 2012 17:44:37 +0000 (09:44 -0800)]
remove commented out code

12 years agoOk it is posting to the local server
Chris Lundquist [Tue, 17 Jan 2012 05:10:46 +0000 (21:10 -0800)]
Ok it is posting to the local server

12 years agoadded more debugging. cleaned up commented lines
Chris Lundquist [Tue, 17 Jan 2012 00:13:13 +0000 (16:13 -0800)]
added more debugging. cleaned up commented lines

12 years agocompiles cleanly. libmongoc doesn't have an install target, will try to commit one...
Chris Lundquist [Fri, 13 Jan 2012 22:33:29 +0000 (14:33 -0800)]
compiles cleanly. libmongoc doesn't have an install target, will try to commit one there instead of having to hack the directory stucture to please ./configure.

12 years agoconfigure.in: Improve check for libmongoc (aka. mongo-c-driver)
Florian Forster [Sat, 6 Nov 2010 10:53:42 +0000 (11:53 +0100)]
configure.in: Improve check for libmongoc (aka. mongo-c-driver)

12 years agowrite_mongodb plugin: Rename the "write_mongo" plugin.
Florian Forster [Wed, 3 Nov 2010 14:19:26 +0000 (15:19 +0100)]
write_mongodb plugin: Rename the "write_mongo" plugin.

12 years agowrite_mongo plugin: Build fixes.
Florian Forster [Wed, 3 Nov 2010 14:13:28 +0000 (15:13 +0100)]
write_mongo plugin: Build fixes.

Enable the "write_mongo" plugin when the library is available. Move the
"MONGO_HAVE_STDINT" define into the .c file. Avoid the poisoned "strcpy".

12 years agoFix plugin and type instance field name, also free bson object buffer
Akkarit Sangpetch [Sat, 2 Oct 2010 15:49:43 +0000 (11:49 -0400)]
Fix plugin and type instance field name, also free bson object buffer

12 years agoAdd write_mongo plugin support for mongodb output (based on write_redis)
Akkarit Sangpetch [Wed, 3 Nov 2010 13:01:11 +0000 (14:01 +0100)]
Add write_mongo plugin support for mongodb output (based on write_redis)

12 years agoconfigure.in: Check for libmongoc.
Ryan Cox [Wed, 3 Nov 2010 13:04:09 +0000 (14:04 +0100)]
configure.in: Check for libmongoc.

12 years agocommon: check_create_dir(): Support symlinks as well.
Jonathan Nieder [Mon, 9 Jan 2012 18:01:50 +0000 (19:01 +0100)]
common: check_create_dir(): Support symlinks as well.

Previously, the following situation would cause an endless look (as reported
by Michael Prokop in Debian bug #619123): the (CSV or RRD) datadir is a
symlink pointing to a non-existent target.

With this patch applied, check_create_dir() fails with "<file> exists but is
not a directory".

Signed-off-by: Sebastian Harl <sh@tokkee.org>
12 years agobuild system, ipvs plugin: Check for linux/ip_vs.h as well.
Sebastian Harl [Mon, 9 Jan 2012 10:16:19 +0000 (11:16 +0100)]
build system, ipvs plugin: Check for linux/ip_vs.h as well.

Also, try to find ip_vs.h without using KERNEL_CFLAGS at first. The Linux
kernel headers should not be used directly -- in current kernel versions this
generates warnings leading to build failures because of -Werror.

12 years agoMerge branch 'collectd-5.0'
Florian Forster [Sat, 21 Jan 2012 17:26:17 +0000 (18:26 +0100)]
Merge branch 'collectd-5.0'

12 years agoMerge branch 'collectd-4.10' into collectd-5.0 collectd-5.0.2
Florian Forster [Sat, 21 Jan 2012 17:25:37 +0000 (18:25 +0100)]
Merge branch 'collectd-4.10' into collectd-5.0

Change-Id: I8fea9338ac6490b2a76530a58c6bd36ec17d021a

12 years agoUpdate ChangeLog. collectd-4.10.5
Florian Forster [Sat, 21 Jan 2012 17:24:45 +0000 (18:24 +0100)]
Update ChangeLog.

Change-Id: I7361ea08e1695b2928463150df36d385aa51299c

12 years agooracle plugin: Fix a memory leak.
Florian Forster [Sat, 21 Jan 2012 17:21:46 +0000 (18:21 +0100)]
oracle plugin: Fix a memory leak.

Parameters must be freed using OCIDescriptorFree. D'oh!

Thanks to Rena Vetterling for helping me hunt down this problem!

Change-Id: Ic374ae13085c8d2afbdf9a3c0ceef92b485e7723

12 years agooracle plugin: Improve the error printing function.
Florian Forster [Sat, 21 Jan 2012 17:01:24 +0000 (18:01 +0100)]
oracle plugin: Improve the error printing function.

Change-Id: Ie52c80bd4a686b403037c97383176adf3e701419

12 years agoBump version to 5.0.2; Update ChangeLog.
Florian Forster [Sat, 21 Jan 2012 13:01:34 +0000 (14:01 +0100)]
Bump version to 5.0.2; Update ChangeLog.

Change-Id: I8e564e51d9e9f3dc847811fd0d51fbf0079c20ba

12 years agoMerge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Sat, 21 Jan 2012 12:07:50 +0000 (13:07 +0100)]
Merge branch 'collectd-4.10' into collectd-5.0

Conflicts:
ChangeLog
src/df.c
src/plugin.h
version-gen.sh

Change-Id: Id7a31088cdb3371534d5c1e6a690464f3343543d

12 years agoBump version to 4.10.5; Update ChangeLog.
Florian Forster [Sat, 21 Jan 2012 12:04:28 +0000 (13:04 +0100)]
Bump version to 4.10.5; Update ChangeLog.

Change-Id: I900278064970e0c2d2bf471f4f80c7672aa8211f

12 years agodf: Set negative free space values to zero.
Toni Ylenius [Fri, 6 Jan 2012 16:13:56 +0000 (18:13 +0200)]
df: Set negative free space values to zero.

Some file systems (eg. UFS) may report negative free spave values.
Previously this caused underflow, but now it is prevented by setting
negative values to zero.

Change-Id: I821adb8a6d7a40dcbd6c65ab3541fbcd714f8aba

Conflicts:

src/df.c

12 years agonetwork plugin: Use the new plugin_dispatch_values_secure().
Florian Forster [Wed, 23 Nov 2011 13:40:58 +0000 (14:40 +0100)]
network plugin: Use the new plugin_dispatch_values_secure().

Change-Id: I2cc65a36366c6c714cd79c2905879bce313efe31

12 years agosrc/plugin.[ch]: Add plugin_dispatch_values_secure().
Florian Forster [Wed, 23 Nov 2011 13:28:27 +0000 (14:28 +0100)]
src/plugin.[ch]: Add plugin_dispatch_values_secure().

Change-Id: I1f7403b2e82edd099f0168d0a0735cd18f8ce05a

12 years agosrc/meta_data.[ch]: Add meta_data_clone().
Florian Forster [Wed, 23 Nov 2011 13:28:01 +0000 (14:28 +0100)]
src/meta_data.[ch]: Add meta_data_clone().

Change-Id: I8449e27c908cbe75ea4ea3b8dd4df556f9aec9e7

12 years agoMerge "Fix case when availrmem < freemem" into collectd-4.10
Florian Forster [Sat, 21 Jan 2012 10:14:53 +0000 (11:14 +0100)]
Merge "Fix case when availrmem < freemem" into collectd-4.10

12 years agoFix case when availrmem < freemem
Fabien Wernli [Fri, 9 Dec 2011 15:30:30 +0000 (16:30 +0100)]
Fix case when availrmem < freemem

Change-Id: I03b188afeb2357e7b8c426bd0c6daff06fda2c4f

Conflicts:

src/memory.c

12 years agoMerge pull request #16 from pyr/master
Florian Forster [Wed, 18 Jan 2012 15:17:47 +0000 (07:17 -0800)]
Merge pull request #16 from pyr/master

GenericJMX plugin: Allow attribute to call operations.

12 years agorespect provided format
Pierre-Yves Ritschard [Wed, 18 Jan 2012 15:05:27 +0000 (16:05 +0100)]
respect provided format

12 years agoas per octo's request, provide details on nulls
Pierre-Yves Ritschard [Wed, 18 Jan 2012 15:02:52 +0000 (16:02 +0100)]
as per octo's request, provide details on nulls

12 years agoAllow `Attribute` to query an MBean operation
Pierre-Yves Ritschard [Wed, 18 Jan 2012 12:57:11 +0000 (13:57 +0100)]
Allow `Attribute` to query an MBean operation

MBeans provide two entities to the outside world:

* Attributes
* Operations

The former is a simple key/value lookup, while the latter
triggers a method call and yields the result.

Operations have signatures, they can be fed an array of
parameters. For now, calls are triggered assuming
there are no parameters. Later a separate keyword
`Operation` can be introduced, taking a list of
`Parameter` directives specifying type and values
to feed to the MBean operation.