Code

collectd.git
12 years agoMerge branch 'ff/netlib'
Florian Forster [Sat, 17 Nov 2012 07:25:01 +0000 (08:25 +0100)]
Merge branch 'ff/netlib'

Conflicts:
src/collectdctl.c
src/libcollectdclient/client.c
src/libcollectdclient/collectd/client.h

12 years agosrc/plugin.c: Replace the last use of "interval_g" in this file.
Florian Forster [Fri, 16 Nov 2012 07:12:15 +0000 (08:12 +0100)]
src/plugin.c: Replace the last use of "interval_g" in this file.

12 years agoMerge branch 'sh/plugin_interval'
Florian Forster [Fri, 16 Nov 2012 06:53:27 +0000 (07:53 +0100)]
Merge branch 'sh/plugin_interval'

Conflicts:
src/amqp.c
src/exec.c
src/memcached.c
src/unixsock.c

12 years agosrc/configfile.[ch]: Implement the cf_get_default_interval() function.
Florian Forster [Thu, 15 Nov 2012 12:55:04 +0000 (13:55 +0100)]
src/configfile.[ch]: Implement the cf_get_default_interval() function.

This should be able to replace "interval_g" in a global (i.e. non-plugin)
context, such as the interval in which timeouts are being checked.

The default value (10 seconds) is also configurable at compile time using
a define.

12 years agocollectd-perl(5): Don't actually use $interval_g in any examples.
Sebastian Harl [Wed, 14 Nov 2012 18:19:54 +0000 (19:19 +0100)]
collectd-perl(5): Don't actually use $interval_g in any examples.

12 years agocollectd-perl(5): Mention that $interval_g should not be used.
Sebastian Harl [Wed, 14 Nov 2012 18:19:05 +0000 (19:19 +0100)]
collectd-perl(5): Mention that $interval_g should not be used.

12 years agoperl plugin: Emit a warning when accessing $interval_g.
Sebastian Harl [Wed, 14 Nov 2012 18:08:30 +0000 (19:08 +0100)]
perl plugin: Emit a warning when accessing $interval_g.

Rather, point to plugin_get_interval().

12 years agoperl plugin: Simplified $interval_g implementation.
Sebastian Harl [Wed, 14 Nov 2012 18:05:10 +0000 (19:05 +0100)]
perl plugin: Simplified $interval_g implementation.

Don't pass any pointers to interval_g around just in order to later
dereference them. There's just no reason to do so ;-)

12 years agoCollectd.pm: Use plugin_get_interval() rather than $interval_g.
Sebastian Harl [Wed, 14 Nov 2012 18:00:25 +0000 (19:00 +0100)]
Collectd.pm: Use plugin_get_interval() rather than $interval_g.

12 years agoCollectd::Plugins::OpenVZ: Use plugin_get_interval() rather than $interval_g.
Sebastian Harl [Wed, 14 Nov 2012 17:58:01 +0000 (18:58 +0100)]
Collectd::Plugins::OpenVZ: Use plugin_get_interval() rather than $interval_g.

12 years agoperl plugin: Export plugin_get_interval() to Perl plugins.
Sebastian Harl [Wed, 14 Nov 2012 17:55:43 +0000 (18:55 +0100)]
perl plugin: Export plugin_get_interval() to Perl plugins.

12 years agosrc/plugin.c: Report an error if ctx.interval is not set.
Florian Forster [Wed, 14 Nov 2012 12:07:47 +0000 (13:07 +0100)]
src/plugin.c: Report an error if ctx.interval is not set.

12 years agorrdtool plugin: Remove warnings.
Florian Forster [Wed, 14 Nov 2012 09:33:29 +0000 (10:33 +0100)]
rrdtool plugin: Remove warnings.

They made sense when all data was collected at the same interval. This
has not been true for a while now and these warnings don't make any sense
anymore.

We could transform them into a per-VL check and use complaints to notify
the user, but I don't think it's worth it. There is an "I told you so"
in the manpage in big bold letters ...

12 years agosrc/plugin.c: Don't regularly check for read plugins.
Florian Forster [Tue, 13 Nov 2012 18:14:56 +0000 (19:14 +0100)]
src/plugin.c: Don't regularly check for read plugins.

Rather, let plugin_insert_read() wake up all the read threads.
This removes another usage of interval_g.

12 years agoMerge branch 'collectd-5.1'
Florian Forster [Mon, 12 Nov 2012 07:28:16 +0000 (08:28 +0100)]
Merge branch 'collectd-5.1'

12 years agoBump version to 5.1.1; Update ChangeLog. collectd-5.1.1
Florian Forster [Sun, 11 Nov 2012 11:56:53 +0000 (12:56 +0100)]
Bump version to 5.1.1; Update ChangeLog.

12 years agoMerge branch 'collectd-5.0' into collectd-5.1
Florian Forster [Sun, 11 Nov 2012 11:43:52 +0000 (12:43 +0100)]
Merge branch 'collectd-5.0' into collectd-5.1

Conflicts:
ChangeLog
version-gen.sh

12 years agoBump version to 5.0.5; Update ChangeLog. collectd-5.0.5
Florian Forster [Sun, 11 Nov 2012 11:30:56 +0000 (12:30 +0100)]
Bump version to 5.0.5; Update ChangeLog.

12 years agoMerge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Sun, 11 Nov 2012 11:05:17 +0000 (12:05 +0100)]
Merge branch 'collectd-4.10' into collectd-5.0

Conflicts:
ChangeLog
src/pyvalues.c
version-gen.sh

12 years agoUpdate version-gen.sh. collectd-4.10.8
Florian Forster [Sun, 11 Nov 2012 10:39:43 +0000 (11:39 +0100)]
Update version-gen.sh.

12 years agoBump version to 4.10.8; Update ChangeLog.
Florian Forster [Sun, 11 Nov 2012 10:32:55 +0000 (11:32 +0100)]
Bump version to 4.10.8; Update ChangeLog.

12 years agoping plugin: Don't abort the "ping_thread" when ping_send() fails.
Florian Forster [Sun, 11 Nov 2012 09:57:55 +0000 (10:57 +0100)]
ping plugin: Don't abort the "ping_thread" when ping_send() fails.

This may happen when the network is down. If the thread fails, the read
callback will indicate an error and the exponential back-off will start.
This is not optimal for this scenario, since you usually want to have
ping stats from right when the network is back up.

Fixes Github issue #171.

12 years agoping plugin: Refactor "ping_thread": Move iteration over hosts into a function.
Florian Forster [Sun, 11 Nov 2012 09:56:00 +0000 (10:56 +0100)]
ping plugin: Refactor "ping_thread": Move iteration over hosts into a function.

12 years agodisk plugin: Add the "UseBSDName" option for Mac OS X.
Florian Forster [Wed, 12 Sep 2012 08:31:00 +0000 (10:31 +0200)]
disk plugin: Add the "UseBSDName" option for Mac OS X.

This new option will use the "BSD Name" rather than major / minor numbers of
the device when reporting statistics.

See also Github issue #72.

12 years agoaggregation plugin: Improve two error messages.
Florian Forster [Sun, 11 Nov 2012 08:20:58 +0000 (09:20 +0100)]
aggregation plugin: Improve two error messages.

12 years agoMerge branch 'ff/aggregate'
Florian Forster [Sun, 11 Nov 2012 07:58:18 +0000 (08:58 +0100)]
Merge branch 'ff/aggregate'

Conflicts:
src/Makefile.am

12 years agoaggregation plugin: Handle the initial EAGAIN return value of rate_to_value().
Florian Forster [Sat, 10 Nov 2012 20:43:08 +0000 (21:43 +0100)]
aggregation plugin: Handle the initial EAGAIN return value of rate_to_value().

This avoids an annoying and confusing warning.

12 years agoaggregation plugin: Handle a start-up condition gracefully.
Florian Forster [Sat, 10 Nov 2012 20:40:20 +0000 (21:40 +0100)]
aggregation plugin: Handle a start-up condition gracefully.

The resulting error message would confuse and annoy users.

12 years agoaggregation plugin: Implement the "GroupBy" option.
Florian Forster [Sat, 10 Nov 2012 20:36:17 +0000 (21:36 +0100)]
aggregation plugin: Implement the "GroupBy" option.

This new configuration format has two benefits:
1) It is easier to understand by users, because they don't have to know
   about two types of wildcards.
2) In the future matching of Host, Plugin, Type, ... may support regular
   expressions. In that case, this configuration syntax doesn't need to
   be adapted.

12 years ago1) Cleans up one configure.ac error AC_LINK_IFELSE requires AC_LANG_PROGRAM (or somet...
Brian Aker [Fri, 26 Oct 2012 06:02:15 +0000 (02:02 -0400)]
1) Cleans up one configure.ac error AC_LINK_IFELSE requires AC_LANG_PROGRAM (or something similar) to get the setup right.
2) Fix for maintaier-clean so that you can run the autoreconf build script multiple times.
3) Clean up the generated man pages when running cleanup.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agorrdcached plugin: Fix syntax and type errors.
Florian Forster [Sat, 10 Nov 2012 09:17:34 +0000 (10:17 +0100)]
rrdcached plugin: Fix syntax and type errors.

12 years agorrdcached plugin: Implement the "XFF" option.
Florian Forster [Sat, 10 Nov 2012 09:08:35 +0000 (10:08 +0100)]
rrdcached plugin: Implement the "XFF" option.

12 years agorrdcached plugin: Implement the "RRATimespan" option.
Florian Forster [Sat, 10 Nov 2012 08:51:24 +0000 (09:51 +0100)]
rrdcached plugin: Implement the "RRATimespan" option.

12 years agorrdcached plugin: Implement the "StepSize", "HeartBeat" and "RRARows" options.
Florian Forster [Sat, 10 Nov 2012 08:50:22 +0000 (09:50 +0100)]
rrdcached plugin: Implement the "StepSize", "HeartBeat" and "RRARows" options.

12 years agorrdcached plugin: Refactor the configuration handling.
Florian Forster [Sat, 10 Nov 2012 08:23:41 +0000 (09:23 +0100)]
rrdcached plugin: Refactor the configuration handling.

Remove a custom string handling function that's only used in one place and use
the functions provided by "configfile.h".

12 years agoMerge remote-tracking branch 'github-tokkee/sh/empty-config'
Florian Forster [Sat, 10 Nov 2012 08:05:54 +0000 (09:05 +0100)]
Merge remote-tracking branch 'github-tokkee/sh/empty-config'

12 years agocollectd-python.conf(5): fix register_* argument description
Idan Kamara [Wed, 24 Oct 2012 09:31:48 +0000 (11:31 +0200)]
collectd-python.conf(5): fix register_* argument description

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agocollectd-python.conf(5): change phrasing of function descriptions
Idan Kamara [Wed, 24 Oct 2012 09:30:28 +0000 (11:30 +0200)]
collectd-python.conf(5): change phrasing of function descriptions

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agocollectd-python.conf(5): change phrasing of minimum required version
Idan Kamara [Wed, 24 Oct 2012 09:29:03 +0000 (11:29 +0200)]
collectd-python.conf(5): change phrasing of minimum required version

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agocollectd-python.conf(5): fix trivial spelling mistakes
Idan Kamara [Wed, 24 Oct 2012 08:53:58 +0000 (10:53 +0200)]
collectd-python.conf(5): fix trivial spelling mistakes

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agocollectd-python.conf(5): capitalize Python
Idan Kamara [Wed, 24 Oct 2012 08:49:17 +0000 (10:49 +0200)]
collectd-python.conf(5): capitalize Python

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agocollection3: Remove duplicate definition of contains_invalid_chars().
Florian Forster [Sat, 10 Nov 2012 07:58:00 +0000 (08:58 +0100)]
collection3: Remove duplicate definition of contains_invalid_chars().

Thanks to Jonathan Amiez for pointing this out!

Fixes Github issue #160.

12 years agooconfig: Allow empty statement lists (in blocks and files).
Sebastian Harl [Thu, 25 Oct 2012 09:32:38 +0000 (11:32 +0200)]
oconfig: Allow empty statement lists (in blocks and files).

This allows to use empty blocks (which is useful during development and
testing) and empty files (which may happen when including config directories,
cf. Debian #592881).

In order not to generate a shift/reduce error, rather than allowing a
'statement_list' to be empty, this has been implemented by explicitly allowing
empty blocks and an empty 'entire_file'.

12 years agonetwork.c: call gcry_check_version() as required by library.
Chris Lundquist [Fri, 12 Oct 2012 10:15:13 +0000 (03:15 -0700)]
network.c: call gcry_check_version() as required by library.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoMerge remote-tracking branch 'trenkel/collectd-4.10' into collectd-4.10
Florian Forster [Sat, 20 Oct 2012 06:57:02 +0000 (08:57 +0200)]
Merge remote-tracking branch 'trenkel/collectd-4.10' into collectd-4.10

12 years agoChange the libnetlink function used to query link statistics to match iproute2's...
KIvosak [Sat, 13 Oct 2012 10:50:40 +0000 (12:50 +0200)]
Change the libnetlink function used to query link statistics to match iproute2's behavior and thus not trip on the kernel's new parsing of optional attributes for RTM_GETLINK.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agopostgresql plugin: Added support for using the db instance as query parameter.
Sebastian Harl [Thu, 18 Oct 2012 11:13:58 +0000 (13:13 +0200)]
postgresql plugin: Added support for using the db instance as query parameter.

12 years agocollectd.conf(5): Documented the <Database> "Instance" option of postgresql.
Sebastian Harl [Thu, 18 Oct 2012 11:10:49 +0000 (13:10 +0200)]
collectd.conf(5): Documented the <Database> "Instance" option of postgresql.

12 years agopostgresql plugin: Added "Instance" option to <Database> config block.
Sebastian Harl [Thu, 18 Oct 2012 11:06:37 +0000 (13:06 +0200)]
postgresql plugin: Added "Instance" option to <Database> config block.

This option may be used to specify the plugin instance that should be used
instead of the database name. This allows to query multiple databases of the
same name on the same host (e.g. when running multiple database server
versions in parallel).

This fixes GH #161 suggested by Bryan Varner.

12 years agoMerge branch 'collectd-5.1'
Florian Forster [Thu, 18 Oct 2012 10:49:44 +0000 (12:49 +0200)]
Merge branch 'collectd-5.1'

12 years agoMerge branch 'collectd-5.0' into collectd-5.1
Florian Forster [Thu, 18 Oct 2012 10:49:39 +0000 (12:49 +0200)]
Merge branch 'collectd-5.0' into collectd-5.1

12 years agoMerge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Thu, 18 Oct 2012 10:43:30 +0000 (12:43 +0200)]
Merge branch 'collectd-4.10' into collectd-5.0

Conflicts:
src/utils_db_query.c
src/utils_db_query.h

12 years agodisk plugin: Multiply the average read/write latency with the interval.
Florian Forster [Wed, 17 Oct 2012 14:08:07 +0000 (16:08 +0200)]
disk plugin: Multiply the average read/write latency with the interval.

The counter/derive will later be divided by the interval, resulting in too
small rates (for interval > 1.0).

Should fix issue #150. Thanks to Manuel Sanmartin for identifying this problem!

12 years agoUse plugin_thread_create() rather than pthread_create() in all plugins.
Sebastian Harl [Sun, 14 Oct 2012 15:52:39 +0000 (17:52 +0200)]
Use plugin_thread_create() rather than pthread_create() in all plugins.

This function copies the plugin context from the calling thread to the new
thread. While this might not strictly be necessary in most/many cases, this
will make sure that any code within a plugin uses the same context
information, thus avoiding possible problems in the future.

12 years agopython: Fix memory leaks.
Sven Trenkel [Sun, 14 Oct 2012 15:12:45 +0000 (15:12 +0000)]
python: Fix memory leaks.

12 years agoplugin: Don't switch plugin context in 'write', 'notification' and 'log'.
Sebastian Harl [Sun, 14 Oct 2012 14:53:57 +0000 (16:53 +0200)]
plugin: Don't switch plugin context in 'write', 'notification' and 'log'.

Rather, keep the context (i.e. interval) information of the calling (read)
plugin. This allows the write, notify and log callbacks to access the correct
interval settings appropriate for the current data-set.

12 years agoInitialize plugin context to global interval before loading a plugin.
Sebastian Harl [Sun, 14 Oct 2012 14:42:35 +0000 (16:42 +0200)]
Initialize plugin context to global interval before loading a plugin.

This ensures that the actual interval for each plugin is available through its
context. It is a preparation for removing 'interval_g' (which has limited use
after introducing per-plugin intervals and, thus, its use is rather error-
prone).

12 years agoDon't use 'interval_g' in any plugins.
Sebastian Harl [Sun, 14 Oct 2012 14:37:18 +0000 (16:37 +0200)]
Don't use 'interval_g' in any plugins.

Rather, use plugin_get_interval () in order to honor any plugin specific
interval settings.

12 years agoplugin: Added plugin_get_interval().
Sebastian Harl [Sun, 14 Oct 2012 14:31:01 +0000 (16:31 +0200)]
plugin: Added plugin_get_interval().

This function returns the current value of the plugin's interval. If no
interval has been set in the plugin context, it will fall back to the global
interval or ten seconds as a last resort.

12 years agosrc/utils_format_graphite.[ch]: Add the "store_rates" option.
Florian Forster [Fri, 12 Oct 2012 06:16:17 +0000 (08:16 +0200)]
src/utils_format_graphite.[ch]: Add the "store_rates" option.

This functionality must have been lost in the refactoring that added
Graphite support to the AMQP plugin.

12 years agonetwork.c: workaround for broken OSX compilers issuing false warnings
Chris Lundquist [Thu, 11 Oct 2012 00:04:26 +0000 (17:04 -0700)]
network.c: workaround for broken OSX compilers issuing false warnings

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoMerge branch 'collectd-5.1'
Florian Forster [Thu, 11 Oct 2012 20:04:03 +0000 (22:04 +0200)]
Merge branch 'collectd-5.1'

12 years agoMerge remote-tracking branch 'origin/collectd-5.1' into collectd-5.1
Florian Forster [Thu, 11 Oct 2012 20:03:51 +0000 (22:03 +0200)]
Merge remote-tracking branch 'origin/collectd-5.1' into collectd-5.1

12 years agoMerge branch 'collectd-5.1'
Florian Forster [Thu, 11 Oct 2012 19:58:31 +0000 (21:58 +0200)]
Merge branch 'collectd-5.1'

12 years agosrc/utils_db_query.[ch]: Remove duplicate "const" modifier.
Florian Forster [Thu, 11 Oct 2012 19:52:36 +0000 (21:52 +0200)]
src/utils_db_query.[ch]: Remove duplicate "const" modifier.

12 years agoMerge branch 'collectd-5.0' into collectd-5.1
Florian Forster [Thu, 11 Oct 2012 08:22:53 +0000 (10:22 +0200)]
Merge branch 'collectd-5.0' into collectd-5.1

Conflicts:
src/snmp.c

12 years agoMerge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Thu, 11 Oct 2012 08:07:41 +0000 (10:07 +0200)]
Merge branch 'collectd-4.10' into collectd-5.0

Conflicts:
src/snmp.c

12 years agoMerge branch 'ff/snmp' into collectd-4.10
Florian Forster [Thu, 11 Oct 2012 08:01:44 +0000 (10:01 +0200)]
Merge branch 'ff/snmp' into collectd-4.10

12 years agosrc/ntpd.c: Write NAN if the peer was not reachable
Johan Kiviniemi [Mon, 8 Oct 2012 15:20:12 +0000 (18:20 +0300)]
src/ntpd.c: Write NAN if the peer was not reachable

12 years agosrc/utils_avltree.c: Fix an off-by-one error in c_avl_insert().
Florian Forster [Mon, 8 Oct 2012 14:20:34 +0000 (16:20 +0200)]
src/utils_avltree.c: Fix an off-by-one error in c_avl_insert().

When inserting the first node in the tree, the size is not incremented.
This causes c_avl_size() to return one element too little.

Thanks to Yves Mettier for debugging this!

12 years agoBugfix (mutex unlock instead of lock)
Yves Mettier [Mon, 8 Oct 2012 08:53:09 +0000 (10:53 +0200)]
Bugfix (mutex unlock instead of lock)

12 years agorc/utils_cache.c: Allocate most of the memory required by uc_get_names() at once.
Florian Forster [Sun, 7 Oct 2012 07:42:28 +0000 (09:42 +0200)]
rc/utils_cache.c: Allocate most of the memory required by uc_get_names() at once.

strdup() will still require additional memory, but no more memory movement like
required when doing realloc() a lot.

This fixes Github issue #148.

12 years agocollectd.conf(5): Document the "LoadPlugin / Interval" option.
Florian Forster [Sat, 6 Oct 2012 15:42:10 +0000 (17:42 +0200)]
collectd.conf(5): Document the "LoadPlugin / Interval" option.

12 years agosrc/plugin.c: Document the use of "register_complex_read".
Florian Forster [Sat, 6 Oct 2012 15:38:50 +0000 (17:38 +0200)]
src/plugin.c: Document the use of "register_complex_read".

Also add assertions to make sure plugin_init_ctx() is used correctly.

12 years agontpd plugin: Make some arguments 'const'.
Florian Forster [Fri, 5 Oct 2012 08:27:27 +0000 (10:27 +0200)]
ntpd plugin: Make some arguments 'const'.

12 years agontpd plugin: Refactor the peer name generation.
Florian Forster [Fri, 5 Oct 2012 08:21:17 +0000 (10:21 +0200)]
ntpd plugin: Refactor the peer name generation.

Break it out of the main read-loop and put it into two functions: One for the
reference clocks and one for network hosts. The reference clock code will call
the network host code when the clock name is not available in the internal list
of reference clock names. This eliminates the (thread-unsafe) usage of
inet_ntoa(3).

12 years agoDocument ntpd IncludeUnitID and add to default config
Johan Kiviniemi [Thu, 4 Oct 2012 22:01:44 +0000 (01:01 +0300)]
Document ntpd IncludeUnitID and add to default config

12 years agosrc/ntpd.c: Add IncludeUnitID option for backwards compatibility
Johan Kiviniemi [Thu, 4 Oct 2012 21:38:52 +0000 (00:38 +0300)]
src/ntpd.c: Add IncludeUnitID option for backwards compatibility

12 years agosrc/ntpd.c: Format refclock name and unit ID with %s-%u
Johan Kiviniemi [Thu, 4 Oct 2012 21:24:19 +0000 (00:24 +0300)]
src/ntpd.c: Format refclock name and unit ID with %s-%u

12 years agosrc/ntpd.c: Add unit number to refclock name
Johan Kiviniemi [Thu, 4 Oct 2012 17:56:34 +0000 (20:56 +0300)]
src/ntpd.c: Add unit number to refclock name

There can be multiple instances of the same refclock with different unit
numbers. The unit number needs to be a part of the peer name, otherwise
the code will try to write the measurements from multiple peers to the
same RRD file.

12 years agoMerge branch 'ym/utils_cache_bugfix'
Florian Forster [Thu, 4 Oct 2012 08:16:56 +0000 (10:16 +0200)]
Merge branch 'ym/utils_cache_bugfix'

12 years agosrc/utils_cache.c: Fix comment re defining LISTVAL_INCREASE.
Florian Forster [Thu, 4 Oct 2012 08:15:36 +0000 (10:15 +0200)]
src/utils_cache.c: Fix comment re defining LISTVAL_INCREASE.

Using the preprocessor flags (CPPFLAGS) is a tad more correct I think.

12 years agosnmp plugin: Fix incorrect comparison in csnmp_oid_compare().
Florian Forster [Thu, 4 Oct 2012 05:57:25 +0000 (07:57 +0200)]
snmp plugin: Fix incorrect comparison in csnmp_oid_compare().

12 years agothe increment is defined as a constant (#define) and will not be a
Yves Mettier [Wed, 3 Oct 2012 09:27:46 +0000 (11:27 +0200)]
the increment is defined as a constant (#define) and will not be a
variable. So its names becomes uppercase.

12 years agosnmp plugin: Check the return value of csnmp_oid_suffix().
Florian Forster [Wed, 3 Oct 2012 06:32:20 +0000 (08:32 +0200)]
snmp plugin: Check the return value of csnmp_oid_suffix().

Also fix an issue where the complete OID is compared with only the suffix.

Thanks to Mark Juric to test the changes and point out these problems.

Issue: #131

12 years agoAdd in swap plugin reserved, in and out values for AIX.
Manuel Luis Sanmartín Rozada [Wed, 5 Sep 2012 11:24:03 +0000 (13:24 +0200)]
Add in swap plugin reserved, in and out values for AIX.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoMerge branch 'mlsr/uptime-aix'
Florian Forster [Tue, 2 Oct 2012 20:04:08 +0000 (22:04 +0200)]
Merge branch 'mlsr/uptime-aix'

12 years agoAdd libperfstat in Makefile.am
Manuel Luis Sanmartin Rozada [Sun, 30 Sep 2012 12:47:38 +0000 (14:47 +0200)]
Add libperfstat in Makefile.am

12 years agoAdd AIX support for uptime plugin.
Manuel Luis Sanmartín Rozada [Wed, 5 Sep 2012 12:01:40 +0000 (14:01 +0200)]
Add AIX support for uptime plugin.

12 years agoFix typo in if and return
Manuel Luis Sanmartin Rozada [Sun, 30 Sep 2012 12:06:02 +0000 (14:06 +0200)]
Fix typo in if and return

12 years agoFix link with perfstat
Manuel Luis Sanmartin Rozada [Sat, 29 Sep 2012 20:28:25 +0000 (22:28 +0200)]
Fix link with perfstat

12 years agoAIX suport in contextswitch plugin.
Manuel Luis Sanmartín Rozada [Wed, 5 Sep 2012 11:48:03 +0000 (13:48 +0200)]
AIX suport in contextswitch plugin.

12 years agosequence_number is only used in linux.
Manuel Luis Sanmartin Rozada [Sat, 29 Sep 2012 19:54:32 +0000 (21:54 +0200)]
sequence_number is only used in linux.
Generate a compilation error.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoThe commit 3bda88e8b425f43644e303e6957e38ae59c1bc83 change the shell from sh to bash.
Manuel Luis Sanmartin Rozada [Sat, 29 Sep 2012 19:45:33 +0000 (21:45 +0200)]
The commit 3bda88e8b425f43644e303e6957e38ae59c1bc83 change the shell from sh to bash.
To fix the configure script generation error: remove the echo whith \c used in sh.

Note: bash is not installed in AIX by default.
Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoARG_MAX on Solaris is *very* large, 2 MB. Allocating that much on the
hume-github [Thu, 27 Sep 2012 13:43:09 +0000 (10:43 -0300)]
ARG_MAX on Solaris is *very* large, 2 MB.  Allocating that much on the
stack (local variable) overflows the thread stack and crashes the
process in weird and interesting ways.

"int i" is a useless variable and breaks the build with -Werror.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agosnmp plugin: Fix iterating over tables without an instance configuration.
Florian Forster [Tue, 2 Oct 2012 07:28:32 +0000 (09:28 +0200)]
snmp plugin: Fix iterating over tables without an instance configuration.

Also should fix incorrect handling of instance values; the first one would
be skipped.

12 years agoPerformance improvment : uc_get_names now allocates memory by blocks and not element...
Yves Mettier [Fri, 28 Sep 2012 09:51:22 +0000 (11:51 +0200)]
Performance improvment : uc_get_names now allocates memory by blocks and not element by element.

12 years agoconfigure: Only set the Perl interpreter if the argument is a file.
Florian Forster [Tue, 25 Sep 2012 10:32:50 +0000 (12:32 +0200)]
configure: Only set the Perl interpreter if the argument is a file.

This fixes Github issue #137.

12 years agoFixed bugs that prevented to "make distcheck"
Yves Mettier [Mon, 17 Sep 2012 13:46:24 +0000 (15:46 +0200)]
Fixed bugs that prevented to "make distcheck"

Fixes Github issue #132.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoprocesses plugin: Coding style and whitespace changes.
Florian Forster [Mon, 19 Mar 2012 07:43:49 +0000 (08:43 +0100)]
processes plugin: Coding style and whitespace changes.