Code

collectd.git
14 years agopython: Fix a metadata memleak and a missing include (for some versions of python)
Sven Trenkel [Wed, 21 Apr 2010 16:12:19 +0000 (18:12 +0200)]
python: Fix a metadata memleak and a missing include (for some versions of python)

14 years agopython: Documented meta data.
Sven Trenkel [Fri, 29 Jan 2010 14:56:38 +0000 (15:56 +0100)]
python: Documented meta data.

14 years agopython: Full meta data support.
Sven Trenkel [Fri, 29 Jan 2010 13:12:41 +0000 (14:12 +0100)]
python: Full meta data support.

14 years agoAdded support for receiving meta data in write callbacks.
Sven Trenkel [Wed, 27 Jan 2010 10:27:54 +0000 (11:27 +0100)]
Added support for receiving meta data in write callbacks.
Probably, it's not like there is a test case.

14 years agopython: Fixed configure script for python3.
Sven Trenkel [Tue, 5 Jan 2010 18:02:07 +0000 (19:02 +0100)]
python: Fixed configure script for python3.

14 years agoMerge commit 'trenkel/st/python'
Florian Forster [Tue, 5 Jan 2010 10:55:28 +0000 (11:55 +0100)]
Merge commit 'trenkel/st/python'

Conflicts:

src/python.c

14 years agoMerge branch 'collectd-4.9'
Florian Forster [Tue, 5 Jan 2010 10:54:52 +0000 (11:54 +0100)]
Merge branch 'collectd-4.9'

14 years agoMerge commit 'tokkee/sh/collectd-4.9' into collectd-4.9
Florian Forster [Tue, 5 Jan 2010 10:50:22 +0000 (11:50 +0100)]
Merge commit 'tokkee/sh/collectd-4.9' into collectd-4.9

14 years agoMerge branch 'collectd-4.9'
Florian Forster [Tue, 5 Jan 2010 10:48:07 +0000 (11:48 +0100)]
Merge branch 'collectd-4.9'

14 years agoMerge branch 'collectd-4.8' into collectd-4.9
Florian Forster [Tue, 5 Jan 2010 10:47:44 +0000 (11:47 +0100)]
Merge branch 'collectd-4.8' into collectd-4.9

14 years agopython: Documenting python3 changes.
Sven Trenkel [Sun, 3 Jan 2010 03:11:45 +0000 (04:11 +0100)]
python: Documenting python3 changes.

14 years agopython: Restored python2 compatibility.
Sven Trenkel [Sat, 2 Jan 2010 19:51:22 +0000 (20:51 +0100)]
python: Restored python2 compatibility.

14 years agopython: Added notification repr. Python3 support completed.
Sven Trenkel [Fri, 1 Jan 2010 21:16:51 +0000 (22:16 +0100)]
python: Added notification repr. Python3 support completed.

14 years agopython: Fixed more unicode related problems.
Sven Trenkel [Fri, 1 Jan 2010 16:03:04 +0000 (17:03 +0100)]
python: Fixed more unicode related problems.

14 years agopython: repr works for Values again.
Sven Trenkel [Fri, 1 Jan 2010 02:43:50 +0000 (03:43 +0100)]
python: repr works for Values again.

14 years agopython: Made the plugin unicode save.
Sven Trenkel [Sun, 27 Dec 2009 00:13:47 +0000 (01:13 +0100)]
python: Made the plugin unicode save.

14 years agoBetter and unicode compatible repr for PluginData.
Sven Trenkel [Fri, 25 Dec 2009 19:33:49 +0000 (20:33 +0100)]
Better and unicode compatible repr for PluginData.

14 years agoFixed string repr for config nodes.
Sven Trenkel [Tue, 22 Dec 2009 01:30:40 +0000 (02:30 +0100)]
Fixed string repr for config nodes.

14 years agoAdded macro CPY_SUBSTITUTE.
Sven Trenkel [Tue, 22 Dec 2009 01:20:42 +0000 (02:20 +0100)]
Added macro CPY_SUBSTITUTE.

14 years agoConfig object repr string is back.
Sven Trenkel [Fri, 18 Dec 2009 01:02:47 +0000 (02:02 +0100)]
Config object repr string is back.

14 years agoSomewhat workable python3 support. This breaks python2 support and the __repr__ funct...
Sven Trenkel [Mon, 14 Dec 2009 18:40:26 +0000 (19:40 +0100)]
Somewhat workable python3 support. This breaks python2 support and the __repr__ functions.

14 years agorrdtool plugin: Correctly initialize the ->random_variation member.
Florian Forster [Mon, 4 Jan 2010 22:52:54 +0000 (23:52 +0100)]
rrdtool plugin: Correctly initialize the ->random_variation member.

This lead to huge negative values in that member, causing values to be only
written to upon exit. D'oh!

14 years agoapache plugin: Fix a segmentation fault in the config handling of VerifyPeer / Verify...
plazmus [Thu, 31 Dec 2009 09:00:25 +0000 (10:00 +0100)]
apache plugin: Fix a segmentation fault in the config handling of VerifyPeer / VerifyHost.

Hello,

Today I upgraded a machine from 4.5.2 to 4.9.0. Everything went fine, but
the new version segfaults immediately at startup. With some help from gdb
I tracked down the problem to the apache module. It will occur if one
tries to use the VerifyPeer/VerifyHost options (I guess few people use
these as I don't see complaints?)

When the plugin attempts to read the value of a boolean option, instead of
using the pre-parsed int value, it misdetects the type of the option
(seems a mechanical mistake) and tries to use the string pointer, which is
actually NULL.
I'm sending a patch, it's actually shorter than the description ;)

Thanks to all developers and maintainers of collectd for working on it.
Have a nice holidays.

14 years agoMonitorus.pm: Put the plugin into the "Collectd::Plugins" namespace.
Sebastian Harl [Sun, 27 Dec 2009 01:34:56 +0000 (02:34 +0100)]
Monitorus.pm: Put the plugin into the "Collectd::Plugins" namespace.

… rather than "Collectd::Plugin".

14 years agobindings/Makefile: Added Monitorus.pm to EXTRA_DIST.
Sebastian Harl [Sun, 27 Dec 2009 01:34:10 +0000 (02:34 +0100)]
bindings/Makefile: Added Monitorus.pm to EXTRA_DIST.

14 years agosrc/collectd.conf: Added missing plugins and config options.
Sebastian Harl [Sun, 27 Dec 2009 01:00:44 +0000 (02:00 +0100)]
src/collectd.conf: Added missing plugins and config options.

14 years agocollectd.conf: Added "LoadPlugin Monitorus/OpenVZ" in the "perl" config.
Sebastian Harl [Sun, 27 Dec 2009 00:14:29 +0000 (01:14 +0100)]
collectd.conf: Added "LoadPlugin Monitorus/OpenVZ" in the "perl" config.

14 years agoREADME: Added missing plugins.
Sebastian Harl [Sat, 26 Dec 2009 23:59:26 +0000 (00:59 +0100)]
README: Added missing plugins.

14 years agosrc/collectd.conf.in: Added an example config for the python plugin.
Florian Forster [Fri, 25 Dec 2009 22:53:11 +0000 (23:53 +0100)]
src/collectd.conf.in: Added an example config for the python plugin.

14 years agosrc/collectd.conf.in: Added an example config for the netapp plugin.
Florian Forster [Fri, 25 Dec 2009 22:52:56 +0000 (23:52 +0100)]
src/collectd.conf.in: Added an example config for the netapp plugin.

14 years agosrc/collectd.conf.in: Add example config for the routeros plugin.
Florian Forster [Fri, 25 Dec 2009 22:47:20 +0000 (23:47 +0100)]
src/collectd.conf.in: Add example config for the routeros plugin.

14 years agocollectd.conf(5): Document the “IncludeHidden” option of the filecount plugin.
Florian Forster [Fri, 25 Dec 2009 22:20:39 +0000 (23:20 +0100)]
collectd.conf(5): Document the “IncludeHidden” option of the filecount plugin.

14 years agofilecount plugin: Use the ?:-operator for the hidden argument.
Florian Forster [Fri, 25 Dec 2009 10:13:55 +0000 (11:13 +0100)]
filecount plugin: Use the ?:-operator for the hidden argument.

14 years agofilecount plugin: Simplify config handling.
Florian Forster [Fri, 25 Dec 2009 10:13:19 +0000 (11:13 +0100)]
filecount plugin: Simplify config handling.

14 years agofilecount plugin: Fix bitfield and default behavior.
Florian Forster [Fri, 25 Dec 2009 10:11:49 +0000 (11:11 +0100)]
filecount plugin: Fix bitfield and default behavior.

14 years agofilecount plugin: Make it possible to include hidden files and directories.
Vaclav Malek [Fri, 25 Dec 2009 10:06:54 +0000 (11:06 +0100)]
filecount plugin: Make it possible to include hidden files and directories.

14 years agosrc/common.[ch]: walk_directory: Add "include hidden" argument.
Vaclav Malek [Fri, 25 Dec 2009 09:50:37 +0000 (10:50 +0100)]
src/common.[ch]: walk_directory: Add "include hidden" argument.

14 years agorouteros plugin: Use the node name for the "host" field.
Florian Forster [Wed, 23 Dec 2009 17:49:28 +0000 (18:49 +0100)]
routeros plugin: Use the node name for the "host" field.

Using hostname_g doesn't make much sense when you can define multiple routers,
so this is a bug because it doesn't allow specifying multiple routers as documented.

14 years agocollectd-snmp(5): Comma fixes.
Sebastian Harl [Mon, 21 Dec 2009 23:09:04 +0000 (00:09 +0100)]
collectd-snmp(5): Comma fixes.

14 years agoAnnoying signal documentation. collectd-4.9.0
Sven Trenkel [Tue, 15 Dec 2009 19:29:15 +0000 (20:29 +0100)]
Annoying signal documentation.

14 years agoMerge branch 'collectd-4.9'
Florian Forster [Fri, 18 Dec 2009 10:26:52 +0000 (11:26 +0100)]
Merge branch 'collectd-4.9'

14 years agoMerge branch 'collectd-4.8' into collectd-4.9
Florian Forster [Fri, 18 Dec 2009 10:26:20 +0000 (11:26 +0100)]
Merge branch 'collectd-4.8' into collectd-4.9

Conflicts:
ChangeLog

14 years agoBumped version to 4.8.2; Updated ChangeLog. collectd-4.8.2
Florian Forster [Fri, 18 Dec 2009 08:50:36 +0000 (09:50 +0100)]
Bumped version to 4.8.2; Updated ChangeLog.

14 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Fri, 18 Dec 2009 08:43:36 +0000 (09:43 +0100)]
Merge branch 'collectd-4.7' into collectd-4.8

Network plugin license change with Aman Gupta's permission.

Conflicts:
ChangeLog
version-gen.sh

14 years agoBumped version to 4.7.5; Updated ChangeLog. collectd-4.7.5
Florian Forster [Fri, 18 Dec 2009 08:32:15 +0000 (09:32 +0100)]
Bumped version to 4.7.5; Updated ChangeLog.

14 years agosrc/plugin.c: plugin_log: Print to stderr if no log plugin has been loaded.
Florian Forster [Thu, 1 Oct 2009 19:27:40 +0000 (21:27 +0200)]
src/plugin.c: plugin_log: Print to stderr if no log plugin has been loaded.

14 years agonetwork plugin: Change the license to LGPL 2.1.
Florian Forster [Wed, 16 Dec 2009 11:50:41 +0000 (12:50 +0100)]
network plugin: Change the license to LGPL 2.1.

This is done with Amit Gupta's consent. He did write changes for later versions
of the plugin.

14 years agooracle plugin: Check the connection status and reconnect if required.
Florian Forster [Wed, 16 Dec 2009 09:45:54 +0000 (10:45 +0100)]
oracle plugin: Check the connection status and reconnect if required.

14 years agoMerge branch 'collectd-4.9'
Florian Forster [Tue, 15 Dec 2009 12:13:53 +0000 (13:13 +0100)]
Merge branch 'collectd-4.9'

14 years agoMerge branch 'collectd-4.8' into collectd-4.9
Florian Forster [Tue, 15 Dec 2009 12:11:51 +0000 (13:11 +0100)]
Merge branch 'collectd-4.8' into collectd-4.9

14 years agoping plugin: Add MaxMissed option.
Stefan Völkel [Tue, 15 Dec 2009 10:25:58 +0000 (10:25 +0000)]
ping plugin: Add MaxMissed option.

Any host not replying to consecutive MaxMissed PING packets will get
it's name re-resolved via DNS.

This enables the use of dynamic DNS services (like dyndns.org) with the
ping plugin. Prior to this patch, hostnames were resolved once on daemon
start.

The default is -1 (disabled).

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Tue, 15 Dec 2009 12:11:25 +0000 (13:11 +0100)]
Merge branch 'collectd-4.7' into collectd-4.8

14 years agoping plugin: Add MaxMissed option.
Stefan Völkel [Tue, 15 Dec 2009 10:25:58 +0000 (10:25 +0000)]
ping plugin: Add MaxMissed option.

Any host not replying to consecutive MaxMissed PING packets will get
it's name re-resolved via DNS.

This enables the use of dynamic DNS services (like dyndns.org) with the
ping plugin. Prior to this patch, hostnames were resolved once on daemon
start.

The default is -1 (disabled).

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agomemory plugin: Fixed handling of >4G of memory on Mac OS X.
Florian Forster [Mon, 14 Dec 2009 16:58:55 +0000 (17:58 +0100)]
memory plugin: Fixed handling of >4G of memory on Mac OS X.

14 years agocontrib/collection3: Add Regexp::Common to the README.
Florian Forster [Sun, 13 Dec 2009 22:38:45 +0000 (23:38 +0100)]
contrib/collection3: Add Regexp::Common to the README.

14 years agoconfigure: Fixed copy&paste error in --with-libupsclient.
Sebastian Harl [Sun, 13 Dec 2009 18:01:41 +0000 (19:01 +0100)]
configure: Fixed copy&paste error in --with-libupsclient.

14 years agoFixed refcount error.
Sven Trenkel [Mon, 14 Dec 2009 17:49:02 +0000 (18:49 +0100)]
Fixed refcount error.

14 years agomemory plugin: Fixed handling of >4G of memory on Mac OS X.
Florian Forster [Mon, 14 Dec 2009 16:58:55 +0000 (17:58 +0100)]
memory plugin: Fixed handling of >4G of memory on Mac OS X.

14 years agocontrib/collection3: Add Regexp::Common to the README.
Florian Forster [Sun, 13 Dec 2009 22:38:45 +0000 (23:38 +0100)]
contrib/collection3: Add Regexp::Common to the README.

14 years agoconfigure: Fixed copy&paste error in --with-libupsclient. sh/collectd-4.7
Sebastian Harl [Sun, 13 Dec 2009 18:01:41 +0000 (19:01 +0100)]
configure: Fixed copy&paste error in --with-libupsclient.

14 years agoMerge branch 'collectd-4.9' of verplant.org:/var/lib/git/collectd into collectd-4.9
Florian Forster [Sat, 12 Dec 2009 22:36:07 +0000 (23:36 +0100)]
Merge branch 'collectd-4.9' of verplant.org:/var/lib/git/collectd into collectd-4.9

14 years agocurl, df and processes plugins: Updated copyright information.
Florian Forster [Sat, 12 Dec 2009 19:06:18 +0000 (20:06 +0100)]
curl, df and processes plugins: Updated copyright information.

14 years agocollectd.conf(5): If “MeasureResponseTime” is enabled, Match blocks are optional.
Florian Forster [Sat, 12 Dec 2009 10:55:08 +0000 (11:55 +0100)]
collectd.conf(5): If “MeasureResponseTime” is enabled, Match blocks are optional.

14 years agocollectd.conf.in: Added the Report{Reserved,Inodes} options to the df plugin.
Florian Forster [Sat, 12 Dec 2009 07:58:05 +0000 (08:58 +0100)]
collectd.conf.in: Added the Report{Reserved,Inodes} options to the df plugin.

14 years agocollectd-python(5): Remove trailing whitespace.
Florian Forster [Thu, 10 Dec 2009 11:11:34 +0000 (12:11 +0100)]
collectd-python(5): Remove trailing whitespace.

14 years agoReturn EINVAL instead of 0 on error.
Sven Trenkel [Wed, 9 Dec 2009 15:33:50 +0000 (16:33 +0100)]
Return EINVAL instead of 0 on error.

14 years agoAdded function to get a list of meta data entries.
Sven Trenkel [Wed, 9 Dec 2009 12:53:14 +0000 (13:53 +0100)]
Added function to get a list of meta data entries.

14 years agoAdded function to get the data type of a meta data entry.
Sven Trenkel [Wed, 9 Dec 2009 12:18:49 +0000 (13:18 +0100)]
Added function to get the data type of a meta data entry.

14 years agoCollectd.pm: Improved some debug messages.
Sebastian Harl [Tue, 8 Dec 2009 23:06:35 +0000 (00:06 +0100)]
Collectd.pm: Improved some debug messages.

Also, this fixes a "use of uninitialized" warning.

14 years agoNetApp documentation of tested filers.
Sven Trenkel [Wed, 9 Dec 2009 22:44:31 +0000 (23:44 +0100)]
NetApp documentation of tested filers.

14 years agonetapp: Better error messages.
Sven Trenkel [Wed, 9 Dec 2009 20:24:04 +0000 (21:24 +0100)]
netapp: Better error messages.

14 years agohashed match: Fix only-C90 compiler warning.
Florian Forster [Wed, 9 Dec 2009 18:52:10 +0000 (19:52 +0100)]
hashed match: Fix only-C90 compiler warning.

Apparently 2184401929 is bigger than a signed int or something …

14 years agoping plugin: Cleanup used variable names.
Stefan Völkel [Wed, 9 Dec 2009 18:42:40 +0000 (19:42 +0100)]
ping plugin: Cleanup used variable names.

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agoChangeLog: Fix a typo.
Florian Forster [Wed, 9 Dec 2009 16:28:55 +0000 (17:28 +0100)]
ChangeLog: Fix a typo.

14 years agoChangeLog: Added changes for 4.9.0.
Florian Forster [Wed, 9 Dec 2009 16:27:50 +0000 (17:27 +0100)]
ChangeLog: Added changes for 4.9.0.

14 years agoMerge branch 'collectd-4.8'
Florian Forster [Wed, 9 Dec 2009 15:51:24 +0000 (16:51 +0100)]
Merge branch 'collectd-4.8'

14 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Wed, 9 Dec 2009 15:50:42 +0000 (16:50 +0100)]
Merge branch 'collectd-4.7' into collectd-4.8

14 years agohashed match: Use a different (larger) prime number.
Florian Forster [Wed, 9 Dec 2009 15:30:10 +0000 (16:30 +0100)]
hashed match: Use a different (larger) prime number.

The previous prime number, 251, did not distribute good enough into
three groups.

14 years agoopenvz plugin: Remove `type' as first argument of `plugin_dispatch_values'.
Florian Forster [Wed, 9 Dec 2009 08:54:35 +0000 (09:54 +0100)]
openvz plugin: Remove `type' as first argument of `plugin_dispatch_values'.

14 years agomonitorus plugin: Updated for the new API.
Florian Forster [Wed, 9 Dec 2009 07:53:24 +0000 (08:53 +0100)]
monitorus plugin: Updated for the new API.

`type' is now part of the value list.

14 years agomonitorus plugin: Removed the log function.
Florian Forster [Wed, 9 Dec 2009 07:53:07 +0000 (08:53 +0100)]
monitorus plugin: Removed the log function.

14 years agosrc/plugin.c: Warn if plugin_register_*() overwrites an existing callback.
Sebastian Harl [Thu, 30 Jul 2009 15:34:24 +0000 (17:34 +0200)]
src/plugin.c: Warn if plugin_register_*() overwrites an existing callback.

14 years agosrc/plugin.c: Fixed a function name in an error message.
Sebastian Harl [Thu, 30 Jul 2009 15:33:43 +0000 (17:33 +0200)]
src/plugin.c: Fixed a function name in an error message.

14 years agoutils_heap: Fixed a typo: c_head_get_root() -> c_heap_get_root().
Sebastian Harl [Tue, 28 Jul 2009 20:23:26 +0000 (22:23 +0200)]
utils_heap: Fixed a typo: c_head_get_root() -> c_heap_get_root().

;-)

14 years agoping plugin: Added "SourceAddress" and "Device" configuration options.
Sebastian Harl [Wed, 22 Jul 2009 19:45:59 +0000 (21:45 +0200)]
ping plugin: Added "SourceAddress" and "Device" configuration options.

As the name suggests, these options may be used to set the source address and
the outgoing device for ICMP_ECHO requests, just like oping's -I and -D
options.

14 years agoMerge remote branch 'trenkel/master'
Florian Forster [Tue, 8 Dec 2009 18:58:59 +0000 (19:58 +0100)]
Merge remote branch 'trenkel/master'

14 years agoClarify how the ModulePath config option works.
Sven Trenkel [Tue, 8 Dec 2009 17:42:11 +0000 (18:42 +0100)]
Clarify how the ModulePath config option works.

14 years agoperl/…/Monitorus.pm: Added Perl-based plugin to query statistics from mon.itor.us.
Jeff Green [Tue, 8 Dec 2009 17:28:34 +0000 (18:28 +0100)]
perl/…/Monitorus.pm: Added Perl-based plugin to query statistics from mon.itor.us.

14 years agobindings/Makefile.am: Tie OpenVZ.pm into the build system.
Florian Forster [Tue, 8 Dec 2009 17:07:55 +0000 (18:07 +0100)]
bindings/Makefile.am: Tie OpenVZ.pm into the build system.

14 years agoperl/…/OpenVZ.pm: Added Perl-based plugin to gather OpenVZ statistics.
Jonathan Kolb [Tue, 8 Dec 2009 17:07:02 +0000 (18:07 +0100)]
perl/…/OpenVZ.pm: Added Perl-based plugin to gather OpenVZ statistics.

14 years agobindings/perl: Move the files into the default directory structure for ExtUtils:...
Florian Forster [Tue, 8 Dec 2009 16:57:51 +0000 (17:57 +0100)]
bindings/perl: Move the files into the default directory structure for ExtUtils::MakeMaker.

14 years agoMerge branch 'ms/aix'
Florian Forster [Tue, 8 Dec 2009 14:43:47 +0000 (15:43 +0100)]
Merge branch 'ms/aix'

14 years agoprocesses plugin: Moved the declaration of variables closer to where they are used.
Florian Forster [Tue, 8 Dec 2009 14:42:23 +0000 (15:42 +0100)]
processes plugin: Moved the declaration of variables closer to where they are used.

14 years agoconfigure.in: Reports status of libperfstat.
Florian Forster [Tue, 8 Dec 2009 14:31:07 +0000 (15:31 +0100)]
configure.in: Reports status of libperfstat.

14 years agocollectd.conf(5): Add a short stub for the python plugin.
Florian Forster [Tue, 8 Dec 2009 14:19:00 +0000 (15:19 +0100)]
collectd.conf(5): Add a short stub for the python plugin.

14 years agopython plugin: Add MIT license header to all source files.
Florian Forster [Tue, 8 Dec 2009 14:10:16 +0000 (15:10 +0100)]
python plugin: Add MIT license header to all source files.

14 years agoconfigure.in: Check the flags reported by Python.
Florian Forster [Tue, 8 Dec 2009 13:36:43 +0000 (14:36 +0100)]
configure.in: Check the flags reported by Python.

On several platforms, we have observed bogus information provided by
Python. Double check those flags and only enable the Python plugin if it
is *really* possible to build anything with the library.

14 years agoMerge branch 'st/python'
Florian Forster [Tue, 8 Dec 2009 12:28:10 +0000 (13:28 +0100)]
Merge branch 'st/python'

14 years agoconfigure.in: Be more verbose when the python configuration fails.
Florian Forster [Tue, 8 Dec 2009 12:27:47 +0000 (13:27 +0100)]
configure.in: Be more verbose when the python configuration fails.

14 years agosrc/pyvalues.c: Don't use Py_ssize_t - it's new in Python 2.5.
Florian Forster [Tue, 8 Dec 2009 11:49:15 +0000 (12:49 +0100)]
src/pyvalues.c: Don't use Py_ssize_t - it's new in Python 2.5.