collectd.git
14 years agoREADME: Add the "LPAR" plugin.
Florian Forster [Sat, 6 Nov 2010 08:55:29 +0000 (09:55 +0100)]
README: Add the "LPAR" plugin.

14 years agoMerge branch 'ar/lpar'
Florian Forster [Sat, 6 Nov 2010 08:40:05 +0000 (09:40 +0100)]
Merge branch 'ar/lpar'

14 years agolpar plugin: rename NS_TO_TICKS() macro to CLOCKTICKS_TO_TICKS()
Aurelien Reynaud [Thu, 14 Oct 2010 20:09:29 +0000 (22:09 +0200)]
lpar plugin: rename NS_TO_TICKS() macro to CLOCKTICKS_TO_TICKS()

Signed-off-by: Aurelien Reynaud <collectd@wattapower.net>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agolpar plugin: update commen t regarding poll_idle vs pool_busy
Aurelien Reynaud [Thu, 14 Oct 2010 20:09:28 +0000 (22:09 +0200)]
lpar plugin: update commen t regarding poll_idle vs pool_busy

Signed-off-by: Aurelien Reynaud <collectd@wattapower.net>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agolpar plugin: check for donation support in libperfstat
Aurelien Reynaud [Thu, 14 Oct 2010 20:09:27 +0000 (22:09 +0200)]
lpar plugin: check for donation support in libperfstat

Signed-off-by: Aurelien Reynaud <collectd@wattapower.net>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agoMerge branch 'sp/amqp'
Florian Forster [Sat, 6 Nov 2010 08:04:39 +0000 (09:04 +0100)]
Merge branch 'sp/amqp'

14 years agoAUTHORS: Add Sebastien Pahl.
Florian Forster [Sat, 6 Nov 2010 08:04:25 +0000 (09:04 +0100)]
AUTHORS: Add Sebastien Pahl.

14 years agoamqp plugin: Document the lock required to hold when calling "camqp_write_locked".
Florian Forster [Sat, 6 Nov 2010 08:00:00 +0000 (09:00 +0100)]
amqp plugin: Document the lock required to hold when calling "camqp_write_locked".

14 years agoamqp plugin: Rename the "shutdown" function to avoid problems with shutdown(2).
Florian Forster [Sat, 6 Nov 2010 07:53:02 +0000 (08:53 +0100)]
amqp plugin: Rename the "shutdown" function to avoid problems with shutdown(2).

14 years agoamqp plugin: Fix order of includes.
Florian Forster [Sat, 6 Nov 2010 07:43:51 +0000 (08:43 +0100)]
amqp plugin: Fix order of includes.

14 years agosrc/types.db: Add type "current_sessions".
Florian Forster [Sat, 6 Nov 2010 07:42:48 +0000 (08:42 +0100)]
src/types.db: Add type "current_sessions".

14 years agosrc/collectd.h: Do not include <stdbool.h> here.
Florian Forster [Sun, 31 Oct 2010 16:07:40 +0000 (17:07 +0100)]
src/collectd.h: Do not include <stdbool.h> here.

14 years agonetwork plugin: Don't use the "true" and "false" macros from <stdbool.h>.
Florian Forster [Sun, 31 Oct 2010 11:52:31 +0000 (12:52 +0100)]
network plugin: Don't use the "true" and "false" macros from <stdbool.h>.

They cause more trouble with other includes that they are worth.

14 years agoVarious plugins: Don't call "time(2)" in the plugins to set vl.time.
Florian Forster [Sat, 30 Oct 2010 12:03:02 +0000 (14:03 +0200)]
Various plugins: Don't call "time(2)" in the plugins to set vl.time.

vl.time is initialized to zero instead and the current time is filled in
by dispatch_values().

14 years agolpar plugin: Calculate "pool busy" from "pool idle", not the other way around.
Florian Forster [Wed, 6 Oct 2010 12:32:56 +0000 (14:32 +0200)]
lpar plugin: Calculate "pool busy" from "pool idle", not the other way around.

14 years agonetwork plugin: Increase default buffer size to 1452.
Florian Forster [Thu, 30 Sep 2010 06:35:33 +0000 (08:35 +0200)]
network plugin: Increase default buffer size to 1452.

14 years agoMerge branch 'kr/ctxt'
Florian Forster [Wed, 29 Sep 2010 15:06:00 +0000 (17:06 +0200)]
Merge branch 'kr/ctxt'

14 years agocontextswitch plugin: Some coding style changes.
Florian Forster [Wed, 29 Sep 2010 15:04:53 +0000 (17:04 +0200)]
contextswitch plugin: Some coding style changes.

14 years agocontextswitch plugin: Add copyright and author information.
Florian Forster [Wed, 29 Sep 2010 15:04:20 +0000 (17:04 +0200)]
contextswitch plugin: Add copyright and author information.

14 years agomysql plugin: Remove some inactive (legacy) code.
Florian Forster [Mon, 27 Sep 2010 12:05:52 +0000 (14:05 +0200)]
mysql plugin: Remove some inactive (legacy) code.

14 years agoapache plugin: Remove legacy code.
Florian Forster [Mon, 27 Sep 2010 09:45:01 +0000 (11:45 +0200)]
apache plugin: Remove legacy code.

Configurations without an "<Instance />" block are not supported
anymore. The documentation and default config have been adapted.

14 years agocurl_json plugin: Improve error handling.
Florian Forster [Fri, 24 Sep 2010 16:51:14 +0000 (18:51 +0200)]
curl_json plugin: Improve error handling.

14 years agolpar plugin: Use a global "perfstat_partition_total_t" struct.
Florian Forster [Sun, 12 Sep 2010 06:21:08 +0000 (08:21 +0200)]
lpar plugin: Use a global "perfstat_partition_total_t" struct.

14 years agolpar plugin: Account "idle" pool time rather than "max".
Florian Forster [Sun, 12 Sep 2010 06:07:38 +0000 (08:07 +0200)]
lpar plugin: Account "idle" pool time rather than "max".

14 years agoPATCH apache.c: support IBM HTTP Server.
Manuel Luis Sanmartín Rozada [Wed, 8 Sep 2010 09:01:23 +0000 (11:01 +0200)]
PATCH apache.c: support IBM HTTP Server.

IBM HTTP Server is a version of apache 2 that comes with Websphere.
IBM change the server name header to:

Server: IBM_HTTP_Server

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agolpar plugin: Explain donations a bit more.
Florian Forster [Sat, 11 Sep 2010 09:24:14 +0000 (11:24 +0200)]
lpar plugin: Explain donations a bit more.

14 years agolpar plugin: Rename the "system" metric (from "sys").
Florian Forster [Sat, 11 Sep 2010 09:18:47 +0000 (11:18 +0200)]
lpar plugin: Rename the "system" metric (from "sys").

14 years agolpar plugin: Introduce a "NS_TO_TICKS" macro.
Florian Forster [Sat, 11 Sep 2010 09:04:44 +0000 (11:04 +0200)]
lpar plugin: Introduce a "NS_TO_TICKS" macro.

This makes the code easier to read, IMHO.

14 years agolpar plugin: Move / add comments.
Florian Forster [Sat, 11 Sep 2010 09:04:04 +0000 (11:04 +0200)]
lpar plugin: Move / add comments.

14 years agolpar plugin update
Aurélien Reynaud [Thu, 9 Sep 2010 20:43:16 +0000 (22:43 +0200)]
lpar plugin update

Hello,

here is a new patch against ar/lpar with the following features :

- get back to the original implementation with gauges only. A new type
"vcpu" is created (it was "lpar_pcpu" in the original)

- I tried to keep as much as possible of your changes, but some have
been reverted (the init function is back) because it was simpler for me
to port my previous code rather than adapt it to the current form. Feel
free to change them again

- the "consumed" metric might seem superfluous at first sight as it
could be calculated in the frontend in the general case. But I thought
it might come in handy when dealing with dedicated partitions, where
donated and stolen values are no easy concepts. Not everyone wants to
dig into the code and the APIs to find out what they mean and whether
they should be added to or substracted from other values...

As a side note, one  of the changes you introduced was better checking
of the return status from perfstat_partition_total() using errno. This
reminded me that under AIX errno is by default unsafe to use in a
multithreaded environment (which collectd is). I posted a fix ("Fix
errno thread-safety under AIX") on Sat, 19 Jun 2010, which if I am not
mistaken has not been merged yet.

Best regards,

Aurélien Reynaud

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agonginx plugin: Make the cURL callback code easier to understand.
Florian Forster [Sat, 4 Sep 2010 20:30:44 +0000 (22:30 +0200)]
nginx plugin: Make the cURL callback code easier to understand.

14 years agolpar plugin: Fix error handling of the "perfstat_partition_total" function.
Florian Forster [Fri, 3 Sep 2010 10:48:26 +0000 (12:48 +0200)]
lpar plugin: Fix error handling of the "perfstat_partition_total" function.

According to the documentation the function returns -1 on error. The
code now assumes anything but one (the number of structures filled) as
error.

14 years agolpar plugin: Document why comsumed ticks may be larger than entitled ticks.
Florian Forster [Fri, 3 Sep 2010 10:22:25 +0000 (12:22 +0200)]
lpar plugin: Document why comsumed ticks may be larger than entitled ticks.

14 years agolpar plugin: Refactor reading of "shared partitions".
Florian Forster [Fri, 3 Sep 2010 09:05:37 +0000 (11:05 +0200)]
lpar plugin: Refactor reading of "shared partitions".

Especially calculating the ticks unavailable to the partition has been
improved. The "pool statistics" may need some further work.

The code has been written without an AIX machine at hand, so it's
absolutely untested and may not even compile. Sorry.

14 years agolpar plugin: Use booleans for the config options.
Florian Forster [Fri, 3 Sep 2010 07:39:13 +0000 (09:39 +0200)]
lpar plugin: Use booleans for the config options.

14 years agolpar plugin: new attempt
Aurélien Reynaud [Wed, 1 Sep 2010 20:28:38 +0000 (22:28 +0200)]
lpar plugin: new attempt

Hello Florian,

here is a new version of my lpar plugin. I tried to address the
shortcomings of the previous attempt:

- Minimum and maximum proc capacity are gone, being static values
- The plugin now uses the cpu type for every value, so there is no need
anymore for the lpar_cpu type
- This also means there is no need anymore to compute rates in the
plugin, so the code is IMHO much more elegant
- There is a config option "ReportBySerial", as described in my previous
email
- We now use pool_busy_time directly instead of computing it from total
and idle

The patch is against the current 4.10 branch, rather than against
ar/lpar, because it is more of a complete rewrite than just fixes. I
could provide a patch against ar/lpar however if you prefer so.

Regards,

Aurélien Reynaud

Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
14 years agolpar plugin: Use the "cpu" type for the general CPU statistics.
Florian Forster [Wed, 18 Aug 2010 09:31:38 +0000 (11:31 +0200)]
lpar plugin: Use the "cpu" type for the general CPU statistics.

14 years agoNew plugin - lpar
Aurélien Reynaud [Tue, 10 Aug 2010 18:37:53 +0000 (20:37 +0200)]
New plugin - lpar

Hello,

here is a patch against 4.10 adding a new plugin "lpar".

LPAR stands for Logical PARtitions, which is the virtualization solution
for IBM high-end power systems running AIX.

The standard cpu plugin shows cpu usage as a percentage of each cpu
available to the system, but in an LPAR the number of cpus and their
apparent power can vary according to the load of every LPAR sharing the
same hardware and to the policy set by the admin.

This new plugin allows to monitor real (physical) CPU usage of the
virtualized system, as well as some other metrics specific to IBM's
partitioning solution.

Regards,

Aurélien Reynaud

--
Love is like PI - natural, irrational, endless, and very important.

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agoperl plugin: Remove the deprecated "plugin_flush_{all,one}" functions.
Florian Forster [Sun, 29 Aug 2010 07:56:31 +0000 (09:56 +0200)]
perl plugin: Remove the deprecated "plugin_flush_{all,one}" functions.

14 years agoperl plugin: Remove deprecated compatibility code from "Collectd_plugin_dispatch_values".
Florian Forster [Sun, 29 Aug 2010 07:50:59 +0000 (09:50 +0200)]
perl plugin: Remove deprecated compatibility code from "Collectd_plugin_dispatch_values".

14 years agosrc/types.db: Remove the "mysql_qcache" and "mysql_threads" types.
Florian Forster [Sun, 29 Aug 2010 07:39:09 +0000 (09:39 +0200)]
src/types.db: Remove the "mysql_qcache" and "mysql_threads" types.

Use the "v5upgrade" taret to preserve compatibility.

14 years agoadd support for sysctlbyname: vm.stats.sys.v_swtch
Kimo Rosenbaum [Tue, 24 Aug 2010 20:27:03 +0000 (13:27 -0700)]
add support for sysctlbyname: vm.stats.sys.v_swtch

14 years agoMerge branch 'collectd-4.10'
Florian Forster [Thu, 19 Aug 2010 13:02:48 +0000 (15:02 +0200)]
Merge branch 'collectd-4.10'

14 years agoMerge branch 'collectd-4.9' into collectd-4.10
Florian Forster [Thu, 19 Aug 2010 13:02:41 +0000 (15:02 +0200)]
Merge branch 'collectd-4.9' into collectd-4.10

14 years agosrc/utils_heap.c: Fix calculation of the parent's index.
Florian Forster [Thu, 19 Aug 2010 13:00:26 +0000 (15:00 +0200)]
src/utils_heap.c: Fix calculation of the parent's index.

This resulted in the "upwards" reheap function to return prematurely,
leaving the heap condition violated.

14 years agocollectd-nagios: Remove forgotten commend.
Florian Forster [Thu, 19 Aug 2010 07:59:34 +0000 (09:59 +0200)]
collectd-nagios: Remove forgotten commend.

14 years agocollectd-nagios: Remove unnecessary includes.
Florian Forster [Thu, 19 Aug 2010 07:57:54 +0000 (09:57 +0200)]
collectd-nagios: Remove unnecessary includes.

The UNIX socket is now handled in the library, no need for including
those files anymore.

14 years agocollectdctl: Reorder includes and set strict C99/POSIX mode.
Florian Forster [Wed, 18 Aug 2010 08:22:36 +0000 (10:22 +0200)]
collectdctl: Reorder includes and set strict C99/POSIX mode.

This enables NAN on some systems, e.g. old Linux boxes.

14 years agocollectdctl: Fix comparison with uninitialized variable.
Florian Forster [Wed, 18 Aug 2010 08:22:11 +0000 (10:22 +0200)]
collectdctl: Fix comparison with uninitialized variable.

14 years agocollectdctl: Fix problems with strict aliasing.
Florian Forster [Wed, 18 Aug 2010 08:21:49 +0000 (10:21 +0200)]
collectdctl: Fix problems with strict aliasing.

14 years agoMerge branch 'collectd-4.10'
Florian Forster [Tue, 17 Aug 2010 16:53:38 +0000 (18:53 +0200)]
Merge branch 'collectd-4.10'

14 years agoMerge branch 'collectd-4.9' into collectd-4.10
Florian Forster [Tue, 17 Aug 2010 16:53:29 +0000 (18:53 +0200)]
Merge branch 'collectd-4.9' into collectd-4.10

14 years agosrc/plugin.c: Improve an info message.
Florian Forster [Tue, 17 Aug 2010 16:52:36 +0000 (18:52 +0200)]
src/plugin.c: Improve an info message.

Based on a patch by Sebastian, which didn't use the handy "FORMAT_VL"
macro.

14 years agoMerge branch 'ad/redis'
Florian Forster [Tue, 17 Aug 2010 16:43:37 +0000 (18:43 +0200)]
Merge branch 'ad/redis'

14 years agoMerge branch 'ff/redis' into ad/redis
Florian Forster [Tue, 17 Aug 2010 16:43:33 +0000 (18:43 +0200)]
Merge branch 'ff/redis' into ad/redis

14 years agowrite_redis plugin: Add all identifiers to a "set".
Florian Forster [Tue, 17 Aug 2010 14:45:42 +0000 (16:45 +0200)]
write_redis plugin: Add all identifiers to a "set".

This should make it easy for front-ends to discover available metrics.

14 years agowrite_redis plugin: Use an "append" macro to fill the values buffer.
Florian Forster [Tue, 17 Aug 2010 14:09:55 +0000 (16:09 +0200)]
write_redis plugin: Use an "append" macro to fill the values buffer.

This way we don't have to copy the entire buffer, which is hopefully
faster.

14 years agowrite_redis plugin: Fix copyright information.
Florian Forster [Tue, 17 Aug 2010 13:54:15 +0000 (15:54 +0200)]
write_redis plugin: Fix copyright information.

14 years agoredis plugin: Add default configuration.
Florian Forster [Tue, 17 Aug 2010 13:50:26 +0000 (15:50 +0200)]
redis plugin: Add default configuration.

14 years agoredis plugin: Improve the types used for storing information.
Florian Forster [Tue, 17 Aug 2010 13:48:25 +0000 (15:48 +0200)]
redis plugin: Improve the types used for storing information.

14 years agoredis plugin: Use a linked list rather than an AVL tree.
Florian Forster [Tue, 17 Aug 2010 13:20:59 +0000 (15:20 +0200)]
redis plugin: Use a linked list rather than an AVL tree.

Since the main purpose of the data structure is to iterate over it, using
an AVL tree here is less efficient than a linked list. Also, it's easier
to read.

14 years agocollectd.conf(5): Document he "Derive*" and "AbsoluteSet" DSTypes of the tail plugin.
Florian Forster [Tue, 17 Aug 2010 06:07:35 +0000 (08:07 +0200)]
collectd.conf(5): Document he "Derive*" and "AbsoluteSet" DSTypes of the tail plugin.

14 years agosrc/utils_match.c: Use strtoull(3) for counter and absolute data sources.
Florian Forster [Tue, 17 Aug 2010 06:05:38 +0000 (08:05 +0200)]
src/utils_match.c: Use strtoull(3) for counter and absolute data sources.

14 years agosrc/utils_match.h: Fix a bug preventing derive values from being handled correctly.
Florian Forster [Mon, 16 Aug 2010 08:32:27 +0000 (10:32 +0200)]
src/utils_match.h: Fix a bug preventing derive values from being handled correctly.

Due to the bit-wise check, the value for derive (0x30) matches the check
for gauge (0x10), too. This commit fixes the behavior by assigning other
numeric values to the defines.

14 years agosrc/configfile.c: Continue parsing config files if stat'ing one file fails.
Florian Forster [Fri, 13 Aug 2010 21:15:48 +0000 (23:15 +0200)]
src/configfile.c: Continue parsing config files if stat'ing one file fails.

14 years agosrc/utils_db_query.[ch]: Remove legacy code.
Florian Forster [Wed, 11 Aug 2010 13:45:01 +0000 (15:45 +0200)]
src/utils_db_query.[ch]: Remove legacy code.

The "legacy mode" supported an old configuration schema of the
PostgreSQL plugin. This commit removes it, so only the recommended
configuration remains possible.

14 years agowrite_redis plugin: Add a new plugin writing collectd data to an instance of Redis.
Florian Forster [Tue, 10 Aug 2010 11:26:45 +0000 (13:26 +0200)]
write_redis plugin: Add a new plugin writing collectd data to an instance of Redis.

14 years agocollectd.conf(5): Improve the "Redis plugin" documentation a bit.
Florian Forster [Tue, 10 Aug 2010 09:18:42 +0000 (11:18 +0200)]
collectd.conf(5): Improve the "Redis plugin" documentation a bit.

14 years agoconfigure.in: Reorder the library checks alphabetically.
Florian Forster [Tue, 10 Aug 2010 09:08:03 +0000 (11:08 +0200)]
configure.in: Reorder the library checks alphabetically.

14 years agoredis plugin: Simplify configuration handling.
Florian Forster [Tue, 10 Aug 2010 08:54:31 +0000 (10:54 +0200)]
redis plugin: Simplify configuration handling.

14 years agoFix a number of minor bugs.
Andres J. Diaz [Mon, 9 Aug 2010 08:45:06 +0000 (10:45 +0200)]
Fix a number of minor bugs.

- The Port configuration option is a string, not a number. Fix
  documentation.

- Fix a bad status assignement in port parser.

- Remove default node. Now node is mandatory to prevent
  duplicates in tree.

- Update configuration example too.

14 years agocollectdctl: Explicitly cast "long" to "int". This might be a problem on 32bit archit...
Florian Forster [Tue, 10 Aug 2010 07:35:00 +0000 (09:35 +0200)]
collectdctl: Explicitly cast "long" to "int". This might be a problem on 32bit architectures.

14 years agoamqp plugin: Warn about incorrectly used "ExchangeType" option in "Publish" block...
Florian Forster [Tue, 10 Aug 2010 07:20:54 +0000 (09:20 +0200)]
amqp plugin: Warn about incorrectly used "ExchangeType" option in "Publish" block, too.

14 years agocollectdctl: Added support for ‘U’ (undef) values in ‘putval’.
Sebastian Harl [Mon, 9 Aug 2010 20:04:54 +0000 (22:04 +0200)]
collectdctl: Added support for ‘U’ (undef) values in ‘putval’.

14 years agolibcollectdclient: Fixed handling of ‘U’ (undef) in ‘PUTVAL’.
Sebastian Harl [Mon, 9 Aug 2010 20:03:02 +0000 (22:03 +0200)]
libcollectdclient: Fixed handling of ‘U’ (undef) in ‘PUTVAL’.

14 years agocollectdctl: Improved error reporting.
Sebastian Harl [Mon, 9 Aug 2010 19:57:05 +0000 (21:57 +0200)]
collectdctl: Improved error reporting.

14 years agocollectdctl: Added support for the ‘putval’ command.
Sebastian Harl [Mon, 9 Aug 2010 19:54:09 +0000 (21:54 +0200)]
collectdctl: Added support for the ‘putval’ command.

14 years agolibcollectdclient: Added missing element to LCC_VALUE_LIST_INIT.
Sebastian Harl [Mon, 9 Aug 2010 19:29:07 +0000 (21:29 +0200)]
libcollectdclient: Added missing element to LCC_VALUE_LIST_INIT.

14 years agocollectdctl: Moved examples section from help output to manpage.
Sebastian Harl [Mon, 9 Aug 2010 15:39:24 +0000 (17:39 +0200)]
collectdctl: Moved examples section from help output to manpage.

14 years agocollectdctl: ‘flush’ now supports multiple plugins/identifiers.
Sebastian Harl [Mon, 9 Aug 2010 15:26:11 +0000 (17:26 +0200)]
collectdctl: ‘flush’ now supports multiple plugins/identifiers.

… just like the ‘unixsock’ plugin does.

14 years agocollectdctl(1): Updated the manpage according to the latest changes.
Sebastian Harl [Sun, 8 Aug 2010 22:10:22 +0000 (00:10 +0200)]
collectdctl(1): Updated the manpage according to the latest changes.

14 years agocollectdctl: Improved error reporting.
Sebastian Harl [Sun, 8 Aug 2010 21:27:16 +0000 (23:27 +0200)]
collectdctl: Improved error reporting.

14 years agocollectdctl: Added ‘listval’ command.
Sebastian Harl [Sun, 8 Aug 2010 21:23:40 +0000 (23:23 +0200)]
collectdctl: Added ‘listval’ command.

14 years agoRenamed ‘collectd-flush’ to ‘collectdctl’ (collectd control interface).
Sebastian Harl [Sun, 8 Aug 2010 20:22:11 +0000 (22:22 +0200)]
Renamed ‘collectd-flush’ to ‘collectdctl’ (collectd control interface).

14 years agocollectd-flush: Added ‘getval’ to the help output.
Sebastian Harl [Sun, 8 Aug 2010 20:18:06 +0000 (22:18 +0200)]
collectd-flush: Added ‘getval’ to the help output.

14 years agocollectd-flush: Added support for the ‘getval’ command.
Sebastian Harl [Sun, 8 Aug 2010 20:15:15 +0000 (22:15 +0200)]
collectd-flush: Added support for the ‘getval’ command.

14 years agocollectd-flush: Moved connection handling out of ‘flush()’.
Sebastian Harl [Sun, 8 Aug 2010 19:49:11 +0000 (21:49 +0200)]
collectd-flush: Moved connection handling out of ‘flush()’.

14 years agocollectd-flush: Switched to a command based syntax.
Sebastian Harl [Sun, 8 Aug 2010 19:41:45 +0000 (21:41 +0200)]
collectd-flush: Switched to a command based syntax.

Basically, the command line now looks similar to the ‘unixsock’ text protocol,
i.e., a command is specified as first non-option argument followed by any
options of that command as defined by the protocol.

14 years agoamqp plugin: Enable the "ExchangeType" option in Publish blocks, too.
Florian Forster [Sun, 8 Aug 2010 12:45:27 +0000 (14:45 +0200)]
amqp plugin: Enable the "ExchangeType" option in Publish blocks, too.

14 years agocollectd.conf(5): Add missing blank line.
Florian Forster [Sun, 8 Aug 2010 12:36:30 +0000 (14:36 +0200)]
collectd.conf(5): Add missing blank line.

14 years agocollectd.conf(5): Finish documenting the AMQP plugin.
Florian Forster [Sun, 8 Aug 2010 12:30:50 +0000 (14:30 +0200)]
collectd.conf(5): Finish documenting the AMQP plugin.

14 years agocollectd.conf(5): Started documenting the AMQP plugin.
Florian Forster [Sun, 8 Aug 2010 09:46:38 +0000 (11:46 +0200)]
collectd.conf(5): Started documenting the AMQP plugin.

14 years agocurl json: Fix checking the response code.
Florian Forster [Sun, 8 Aug 2010 08:59:15 +0000 (10:59 +0200)]
curl json: Fix checking the response code.

14 years agosrc/Makefile: Build and ship (in the tarball) the collectd-flush manpage.
Sebastian Harl [Sat, 7 Aug 2010 11:30:42 +0000 (13:30 +0200)]
src/Makefile: Build and ship (in the tarball) the collectd-flush manpage.

14 years agocollectd-flush: Include version and author information in usage output.
Sebastian Harl [Sat, 7 Aug 2010 07:51:08 +0000 (09:51 +0200)]
collectd-flush: Include version and author information in usage output.

Just like the other tools.

14 years agocollectd-flush: Determine default socket from configured localstatedir.
Sebastian Harl [Sat, 7 Aug 2010 07:48:16 +0000 (09:48 +0200)]
collectd-flush: Determine default socket from configured localstatedir.

14 years agocollectd-flush: Do not use ‘getopt_long()’.
Sebastian Harl [Sat, 7 Aug 2010 07:43:33 +0000 (09:43 +0200)]
collectd-flush: Do not use ‘getopt_long()’.

This is a GNU extension and, thus, not portable.

Also, pimped the usage output a bit.

14 years agocollectd-flush: Simplified ‘usage()’ a bit.
Sebastian Harl [Sat, 7 Aug 2010 07:16:50 +0000 (09:16 +0200)]
collectd-flush: Simplified ‘usage()’ a bit.

14 years agoamqp plugin: Use the content type to determine how to decode received messages.
Florian Forster [Fri, 6 Aug 2010 15:06:11 +0000 (17:06 +0200)]
amqp plugin: Use the content type to determine how to decode received messages.

The "Format" config option is now only valid in "Publish" blocks.

14 years agoamqp plugin: Improve handling of the "routing key".
Florian Forster [Fri, 6 Aug 2010 13:45:13 +0000 (15:45 +0200)]
amqp plugin: Improve handling of the "routing key".

If no routing key is configured, the publish code will now create one based
on the value's identifier. The subscribing code will no longer use a
default but use an empty routing key if nothing was configured.