]> git.ipfire.org Git - thirdparty/collectd.git/log
thirdparty/collectd.git
10 years agomake DATA_MAX_NAME_LEN configurable at compile time 1690/head
Radu Brumariu [Sat, 30 Apr 2016 15:16:28 +0000 (11:16 -0400)] 
make DATA_MAX_NAME_LEN configurable at compile time

10 years agopinba plugin: fix warning on Solaris
Ruben Kerkhof [Wed, 3 Aug 2016 15:33:19 +0000 (17:33 +0200)] 
pinba plugin: fix warning on Solaris

[libprotobuf WARNING google/protobuf/compiler/parser.cc:547] No syntax
specified for the proto file: pinba.proto. Please use 'syntax =
"proto2";' or 'syntax = "proto3";' to specify a syntax version.
(Defaulted to proto2 syntax.)

10 years agogrep -q is not portable
Ruben Kerkhof [Wed, 3 Aug 2016 15:31:08 +0000 (17:31 +0200)] 
grep -q is not portable

Solaris grep doesn't have -q

Use the grep we detected with AC_PROG_EGREP and just redirect stdout.

10 years agoFix failing tests after 6fd0d25
Ruben Kerkhof [Wed, 3 Aug 2016 15:01:37 +0000 (17:01 +0200)] 
Fix failing tests after 6fd0d25

Fixes #1833

10 years agoMerge pull request #1832 from rubenk/check-for-c99-compiler
Ruben Kerkhof [Wed, 3 Aug 2016 13:41:54 +0000 (15:41 +0200)] 
Merge pull request #1832 from rubenk/check-for-c99-compiler

Require a compiler that understands C99

10 years agosrc/daemon/plugin.h: Enlarge the DATA_MAX_NAME_LEN.
Amy Lin [Mon, 6 Jul 2015 06:34:31 +0000 (16:34 +1000)] 
src/daemon/plugin.h: Enlarge the DATA_MAX_NAME_LEN.

Fixes: #966, #1238
10 years agodpdkstat: README instructions for DPDK static lib
Korynkevych, RomanX [Wed, 13 Jul 2016 09:30:49 +0000 (10:30 +0100)] 
dpdkstat: README instructions for DPDK static lib

Updated README with instructions on how to build and link to the static
DPDK library for dpdk plugins.

Change-Id: I580cccc8af648c270c5a35689dc536a283f1689a
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agoModify DPDK CFLAGS
Kim Jones [Tue, 5 Jul 2016 16:09:33 +0000 (17:09 +0100)] 
Modify DPDK CFLAGS

The failed compile when there are no additional
flags on Ub14.04 is specific to GCC 4.8 and below.

This can be fixed by installing GCC 4.9, or
alternately by adding -mssse3 or newer ISA flag.

The opensource community have requested that we
simply document the GCC version requirement,
rather than adding GCC ISA flags to configure.ac

Change-Id: I8ec7bd3f094b0dd608381068fd6b18a74050d420
Signed-off-by: Kim Jones <kim-marie.jones@intel.com>
10 years agoRequire a compiler that understands C99 1832/head
Ruben Kerkhof [Wed, 3 Aug 2016 12:28:29 +0000 (14:28 +0200)] 
Require a compiler that understands C99

Upcoming changes will requires C99 support.

For newer compilers this is the default, but older
compilers needs a flag like -std=gnu99 or -std=c99.

10 years agoMerge pull request #1830 from rubenk/move-collectd-header
Ruben Kerkhof [Wed, 3 Aug 2016 11:41:40 +0000 (13:41 +0200)] 
Merge pull request #1830 from rubenk/move-collectd-header

treewide: add blank line below collectd.h

10 years agoMerge pull request #1831 from rubenk/ai_hints-cleanup
Ruben Kerkhof [Wed, 3 Aug 2016 08:06:55 +0000 (10:06 +0200)] 
Merge pull request #1831 from rubenk/ai_hints-cleanup

Ai hints cleanup

10 years agotreewide: Use AF_UNSPEC consistently 1831/head
Ruben Kerkhof [Tue, 2 Aug 2016 15:16:58 +0000 (17:16 +0200)] 
treewide: Use AF_UNSPEC consistently

.ai_family expects an address family, not a protocol family.
Note that on most platforms these constants are the same, so this
is purely cosmetic.

10 years agono need to initialize result ptr of getaddrinfo
Ruben Kerkhof [Tue, 2 Aug 2016 14:42:23 +0000 (16:42 +0200)] 
no need to initialize result ptr of getaddrinfo

10 years agotreewide: use designated initializers for ai_hints
Ruben Kerkhof [Tue, 2 Aug 2016 14:27:17 +0000 (16:27 +0200)] 
treewide: use designated initializers for ai_hints

10 years agoxencpu plugin: Remove unnecessary semicolons.
Florian Forster [Wed, 3 Aug 2016 05:19:28 +0000 (07:19 +0200)] 
xencpu plugin: Remove unnecessary semicolons.

10 years agogrpc plugin: Rename "Reply" messages to "Response".
Florian Forster [Mon, 1 Aug 2016 14:29:00 +0000 (16:29 +0200)] 
grpc plugin: Rename "Reply" messages to "Response".

This appears to be the common nomenclature for gRPC.

10 years agogrpc plugin: Create a "Dispatch" service and use streaming RPCs.
Florian Forster [Fri, 29 Jul 2016 14:54:58 +0000 (16:54 +0200)] 
grpc plugin: Create a "Dispatch" service and use streaming RPCs.

This patch, unfortunately, does two things:
* It breaks out the DispatchValues() call into a separate service. The
  intention of this is to make it easier to implement only part of the
  API, namely to not implement querying of values, which may not be
  useful for stateless proxies.
* It turns the DispatchValues() call into a (client side) streaming RPC.
  That means that a client can send many ValueLists to the server in one
  streaming request, rather than many self-contained requests.

This code is heavily influenced by test code of the "protobuf-qml"
project, which is MIT licensed.

10 years agogrpc plugin: Add the "ds_names" field to the ValueList message.
Florian Forster [Fri, 29 Jul 2016 09:35:32 +0000 (11:35 +0200)] 
grpc plugin: Add the "ds_names" field to the ValueList message.

10 years agogrpc plugin: Unify field names.
Florian Forster [Fri, 29 Jul 2016 09:27:08 +0000 (11:27 +0200)] 
grpc plugin: Unify field names.

Fields holding a ValueList are now called "value_list", fields holding
a Value are now called "value". Repeated fields use the plural form.

10 years agotreewide: stop checking for AI_PASSIVE
Ruben Kerkhof [Tue, 2 Aug 2016 13:19:49 +0000 (15:19 +0200)] 
treewide: stop checking for AI_PASSIVE

I think it's safe to assume that if you have getaddrinfo, you have
AI_PASSIVE. My copy of Stevens from 1998 already describes it.

10 years agotreewide: stop checking for AI_ADDRCONFIG
Ruben Kerkhof [Tue, 2 Aug 2016 13:17:11 +0000 (15:17 +0200)] 
treewide: stop checking for AI_ADDRCONFIG

It has been in RFC 3494 since 2003 and all the platforms
we care about have it.

10 years agotreewide: add blank line below collectd.h 1830/head
Ruben Kerkhof [Mon, 1 Aug 2016 20:52:30 +0000 (22:52 +0200)] 
treewide: add blank line below collectd.h

10 years agoFix build on Solaris 10
Ruben Kerkhof [Tue, 2 Aug 2016 11:44:55 +0000 (13:44 +0200)] 
Fix build on Solaris 10

10 years agoFix result if no protoc 3 found
Ruben Kerkhof [Tue, 2 Aug 2016 11:43:31 +0000 (13:43 +0200)] 
Fix result if no protoc 3 found

10 years agoMerge pull request #1829 from rubenk/clang-format
Ruben Kerkhof [Tue, 2 Aug 2016 11:16:17 +0000 (13:16 +0200)] 
Merge pull request #1829 from rubenk/clang-format

Add a config file for clang-format

10 years agoMerge pull request #1821 from rubenk/memset
Ruben Kerkhof [Tue, 2 Aug 2016 11:15:52 +0000 (13:15 +0200)] 
Merge pull request #1821 from rubenk/memset

treewide: replace memset to 0 with initializers

10 years agopf: no need to zero-initialize status 1821/head
Ruben Kerkhof [Tue, 2 Aug 2016 10:04:09 +0000 (12:04 +0200)] 
pf: no need to zero-initialize status

The kernel bcopies properly sized data into this struct

10 years agoFix double declaration
Ruben Kerkhof [Tue, 2 Aug 2016 08:27:01 +0000 (10:27 +0200)] 
Fix double declaration

10 years agoipmi: fix building with older gcc's
Ruben Kerkhof [Tue, 2 Aug 2016 07:52:43 +0000 (09:52 +0200)] 
ipmi: fix building with older gcc's

10 years agoAdd a config file for clang-format 1829/head
Ruben Kerkhof [Mon, 1 Aug 2016 15:48:59 +0000 (17:48 +0200)] 
Add a config file for clang-format

To use it, use `clang-format --style=file`

10 years agoTry if this fixes the build on RHEL{5,6}
Ruben Kerkhof [Mon, 1 Aug 2016 21:19:10 +0000 (23:19 +0200)] 
Try if this fixes the build on RHEL{5,6}

10 years agoceph plugin: no need to zero the whole array
Ruben Kerkhof [Mon, 1 Aug 2016 20:31:31 +0000 (22:31 +0200)] 
ceph plugin: no need to zero the whole array

also use '\0' not 0 while we're here

10 years agoipmi: use C99 designated initializer
Ruben Kerkhof [Mon, 1 Aug 2016 20:22:35 +0000 (22:22 +0200)] 
ipmi: use C99 designated initializer

10 years agoapache: no need to zero-initialize
Ruben Kerkhof [Mon, 1 Aug 2016 20:15:25 +0000 (22:15 +0200)] 
apache: no need to zero-initialize

10 years agoamqp: use C99 designated initializers
Ruben Kerkhof [Mon, 1 Aug 2016 20:05:11 +0000 (22:05 +0200)] 
amqp: use C99 designated initializers

10 years agoamqp: no need to zero-initialize buffer
Ruben Kerkhof [Mon, 1 Aug 2016 19:55:13 +0000 (21:55 +0200)] 
amqp: no need to zero-initialize buffer

all messages written into it are null-terminated

10 years agoaggregration: no need to zero-initialize
Ruben Kerkhof [Mon, 1 Aug 2016 19:48:07 +0000 (21:48 +0200)] 
aggregration: no need to zero-initialize

10 years agotreewide: replace memset to 0 with initializers
Ruben Kerkhof [Sat, 30 Jul 2016 10:23:11 +0000 (12:23 +0200)] 
treewide: replace memset to 0 with initializers

10 years agoMerge pull request #1822 from rubenk/write_riemann-indent
Ruben Kerkhof [Mon, 1 Aug 2016 15:51:15 +0000 (17:51 +0200)] 
Merge pull request #1822 from rubenk/write_riemann-indent

write_riemann plugin: reindent

10 years agoMerge pull request #1824 from rubenk/protobuf-autoconf
Ruben Kerkhof [Mon, 1 Aug 2016 11:21:30 +0000 (13:21 +0200)] 
Merge pull request #1824 from rubenk/protobuf-autoconf

Protobuf autoconf adjustments

10 years agoUse pkg-config to configure grpc plugin 1824/head
Ruben Kerkhof [Sat, 30 Jul 2016 11:52:14 +0000 (13:52 +0200)] 
Use pkg-config to configure grpc plugin

- Check for libgrpc++ instead of libgrpc
- Add check for libprotobuf
- Add configure options --with-libgrpc++, --with-libprotobuf and --with-libprotobuf-c
- Add precious variable PROTOC for path to the protoc compiler
- Add precious variable PROTOC_C for path to the protoc-c compiler
- Add precious variable GRPC_CPP_PLUGIN for path to the grpc_cpp_plugin binary

Fixes #1817

10 years agowrite-riemann plugin: reindent with clang-format 1822/head
Ruben Kerkhof [Mon, 1 Aug 2016 09:33:02 +0000 (11:33 +0200)] 
write-riemann plugin: reindent with clang-format

clang-format -i --style=llvm src/write_riemann.c

10 years agoMerge branch 'pr/1791'
Florian Forster [Mon, 1 Aug 2016 09:12:48 +0000 (11:12 +0200)] 
Merge branch 'pr/1791'

10 years agointerface plugin: Remove NULL config key.
Florian Forster [Mon, 1 Aug 2016 09:12:35 +0000 (11:12 +0200)] 
interface plugin: Remove NULL config key.

10 years agocpusleep plugin: formatting changes 1777/head
Rinigus [Sun, 31 Jul 2016 10:02:25 +0000 (13:02 +0300)] 
cpusleep plugin: formatting changes

10 years agoremove mode lines from interface plugin 1791/head
Rinigus [Sun, 31 Jul 2016 08:37:55 +0000 (11:37 +0300)] 
remove mode lines from interface plugin

10 years agointerface plugin: following active/inactive interfaces via ReportInactive
Rinigus [Sat, 30 Jul 2016 21:11:30 +0000 (00:11 +0300)] 
interface plugin: following active/inactive interfaces via ReportInactive

10 years agoStop using `which` for finding python interpreter
Ruben Kerkhof [Sat, 30 Jul 2016 20:30:20 +0000 (22:30 +0200)] 
Stop using `which` for finding python interpreter

Which is not available in minimal build environments (see #1825 for an
example) so replace it with AC_PATH_PROG.

10 years agointeface plugin: add formatting string
Rinigus [Sat, 30 Jul 2016 17:06:26 +0000 (20:06 +0300)] 
inteface plugin: add formatting string

10 years agoMerge pull request #1825 from ripienaar/missing_which
Ruben Kerkhof [Sat, 30 Jul 2016 16:39:57 +0000 (18:39 +0200)] 
Merge pull request #1825 from ripienaar/missing_which

collectd.spec: el7 fails to find python without which

10 years agocollectd.spec: el7 fails to find python without which 1825/head
R.I.Pienaar [Sat, 30 Jul 2016 16:23:25 +0000 (18:23 +0200)] 
collectd.spec: el7 fails to find python without which

On very minimal build centos machines the yum-builddep should install
all it needs to succesfully build on centos, but this misses which and
so python cant be found.

10 years agogrpc plugin: Simplify error handling a bit. 1818/head
Sebastian Harl [Thu, 28 Jul 2016 19:30:25 +0000 (21:30 +0200)] 
grpc plugin: Simplify error handling a bit.

Make control flow more straight forward and handle all cleanup in one place.

10 years agoproto/collectd.proto: Remove unused import "google/protobuf/timestamp".
Florian Forster [Thu, 28 Jul 2016 14:10:29 +0000 (16:10 +0200)] 
proto/collectd.proto: Remove unused import "google/protobuf/timestamp".

This causes problems when generating Go code from the .proto.

10 years agoMerge pull request #1816 from octo/grpc-free-iter
Sebastian Harl [Thu, 28 Jul 2016 13:30:58 +0000 (15:30 +0200)] 
Merge pull request #1816 from octo/grpc-free-iter

grpc plugin: Free the cache iterator when returning due to an error.

10 years agogrpc plugin: Free the cache iterator when returning due to an error. 1816/head
Florian Forster [Thu, 28 Jul 2016 13:20:37 +0000 (15:20 +0200)] 
grpc plugin: Free the cache iterator when returning due to an error.

10 years agoFixing configure.ac to reflect changes in collectd
Kim Jones [Thu, 28 Jul 2016 12:58:24 +0000 (13:58 +0100)] 
Fixing configure.ac to reflect changes in collectd

Signed-off-by: Kim Jones <kim-marie.jones@intel.com>
10 years agoAdded ASLR info to README
Kim Jones [Tue, 14 Jun 2016 07:21:23 +0000 (08:21 +0100)] 
Added ASLR info to README

Applied an old version the last time; reverted and reapplying new
version.

Signed-off-by: Kim Jones <kim-marie.jones@intel.com>
10 years agoInterface name and number of ports enabled can now be customised
Kim Jones [Thu, 9 Jun 2016 01:56:05 +0000 (02:56 +0100)] 
Interface name and number of ports enabled can now be customised

Using the .conf files
They are optional arguments

Change-Id: Icc8dd0933f98c3ba05cc6bc3f338070d38b06a05
Signed-off-by: Kim Jones <kim-marie.jones@intel.com>
10 years agodpdkstat: refactored pipe error checking
Maryam Tahhan [Tue, 7 Jun 2016 11:46:52 +0000 (12:46 +0100)] 
dpdkstat: refactored pipe error checking

This commit cleans up and fixes the pipe creation, and improves the
error checking.

Change-Id: I53de4a7ff450aea349971f58fe5cce8904da1e89
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
10 years agoconfigure: check AVX support
Maryam Tahhan [Tue, 7 Jun 2016 11:31:44 +0000 (12:31 +0100)] 
configure: check AVX support

Check AVX support before adding -mavx flag.

Change-Id: I2de2a12704126590ef991de89880ad5bd5c3805e
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: configuration improvements
Maryam Tahhan [Fri, 13 May 2016 10:10:18 +0000 (11:10 +0100)] 
dpdkstat: configuration improvements

Cleanup detection and configuration for dpdkstat to include:
* -mavx flag which is need for compilation on Ubuntu 14.04.
* Simplification of code to detect DPDK library.
* Support for DPDK not being installed in /usr/lib.

Change-Id: I2767797f1928934a8545a602b8af92c9decf24d3
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: cleanup of code
Maryam Tahhan [Fri, 13 May 2016 10:02:34 +0000 (11:02 +0100)] 
dpdkstat: cleanup of code

Cleaned up code to ensure appropriate spacing and moved integer declarations
out of loops as it's not supported out of box on C99 compilers.

Change-Id: Ia420fcb5e0a5ce9110fcdc7cc09aaa01c2b86771
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: fix missed rework
Maryam Tahhan [Tue, 3 May 2016 10:31:01 +0000 (11:31 +0100)] 
dpdkstat: fix missed rework

Update README to refer to libdpdk instead of dpdk. Update the
declaration of dpdk_init to remove whitespace.

Change-Id: Ib2b02929bf7ab164fc97a84da1dbb0c7d77a2080
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: rebase against latest master
Maryam Tahhan [Tue, 3 May 2016 09:15:37 +0000 (10:15 +0100)] 
dpdkstat: rebase against latest master

Change-Id: I2528cd3cae66a0d2ded0950fec9a529545b75c81
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: fix configure.ac and src/Makefile
Maryam Tahhan [Mon, 2 May 2016 19:04:11 +0000 (20:04 +0100)] 
dpdkstat: fix configure.ac and src/Makefile

Fix configuration.ac and src/Makefile based on comments from pull
request review.
  * Removed unnecessary libs.
  * Removed unnecessary compilation flags.
  * Fixed indentation in configure.ac
  * Remove duplicate AC_CHECK_LIB check.
  * Compare FOUND_DPDK with xtrue explicitly.
  * Change standalone instances of dpdk to libdpdk.
  * Add BUILD_WITH_DPDK_LIBS to dpdkstat_la_LIBADD.

Change-Id: I27b0c888f81cac3219fdc97174e31770dbd5e746
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: fix typo in collectd.conf.pod
Maryam Tahhan [Mon, 2 May 2016 19:03:09 +0000 (20:03 +0100)] 
dpdkstat: fix typo in collectd.conf.pod

Fix typo in collectd.conf.pod.

Change-Id: I0de9582c0a3f2731194b73c85aa83a1e6bdc9aec
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: fix compilation errors
Maryam Tahhan [Mon, 2 May 2016 18:53:00 +0000 (19:53 +0100)] 
dpdkstat: fix compilation errors

Fix compilation errors for dpdkstat.

Change-Id: I5f20219344f36a12d4a60f2bad6ce8228e3e992e
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agoREADME: update to include min version of DPDK
Maryam Tahhan [Thu, 28 Apr 2016 15:11:05 +0000 (16:11 +0100)] 
README: update to include min version of DPDK

Update the readme to include the minimum version of DPDK required for
the dpdkstat plugin.

Change-Id: I51ca20284d90586e24bb9711de0b40d4027ca367
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agotypes.db: fix alignment for dpdkstats
Maryam Tahhan [Thu, 28 Apr 2016 15:07:08 +0000 (16:07 +0100)] 
types.db: fix alignment for dpdkstats

Change-Id: I00173c9a07a288a4aca5912687627b8f62d64f65
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agov2: dpdkstat: fixed issues from github review
Harry van Haaren [Tue, 19 Apr 2016 14:43:45 +0000 (15:43 +0100)] 
v2: dpdkstat: fixed issues from github review

v2: fixed indentation of part

This commit fixes all code issues in dpdkstat.c

Mostly error handling, and some minor nit-picks.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
10 years agodpdkstat: rebased + fixed alignment in types.db
Maryam Tahhan [Mon, 11 Apr 2016 10:09:33 +0000 (11:09 +0100)] 
dpdkstat: rebased + fixed alignment in types.db

Rebased against the latest master and cleaned up alignment in types.db.

Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agoreadme: update to include DPDK.
Maryam Tahhan [Tue, 5 Apr 2016 09:52:16 +0000 (10:52 +0100)] 
readme: update to include DPDK.

Include DPDK as part of the README features.

Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: bugfix missed enabled_port_count
Maryam Tahhan [Tue, 5 Apr 2016 09:48:04 +0000 (10:48 +0100)] 
dpdkstat: bugfix missed enabled_port_count

Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Reviewed-by: Harry Van Haaren <harry.van.haaren@intel.com>
10 years agodpdkstat: convert snprintf uses to ssnprintf
Maryam Tahhan [Sun, 3 Apr 2016 09:42:44 +0000 (10:42 +0100)] 
dpdkstat: convert snprintf uses to ssnprintf

Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: bugfix enable_port_count
Maryam Tahhan [Sun, 3 Apr 2016 09:35:23 +0000 (10:35 +0100)] 
dpdkstat: bugfix enable_port_count

Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
10 years agodpdkstat: fix configuration without DPDK
Maryam Tahhan [Sun, 3 Apr 2016 09:29:13 +0000 (10:29 +0100)] 
dpdkstat: fix configuration without DPDK

Modify the configuration in the situation where DPDK is not selected as
an option.

Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agodpdkstat: enable a plugin for DPDK stats
Maryam Tahhan [Mon, 28 Mar 2016 11:26:03 +0000 (12:26 +0100)] 
dpdkstat: enable a plugin for DPDK stats

This patch enables support to retrieve statistics for DPDK
interfaces. An overview of the threading is as follows:
1. collectd init() or read() calls dpdk_helper_spawn() to retrieve
   the required size of xstats to allocate.
   1.1. DPDK counts ports, stats and length, writing them to
        shared-memory (SHM).
   1.2. DPDK helper (secondary) process quits, allowing cleanup of
        the shared memory.
2. collectd resizes shared-memory to size of stats as provided by
   DPDK.
3. collectd respawns the DPDK helper.
   3.1. Helper blocks on a semaphore until told to read the stats
        from DPDK and write them to SHM.
4. collectd dispatches statistics
   4.1. Thread blocks on semaphore until stats are available.
This threading model is required to allow the plugin to detect when
the DPDK primary process/application has been killed/reset, and to avoid
the plugin from stopping another DPDK primary process from starting.
Some extra housekeeping is in place to ensure collectd is never
stalled by using sem_timedwait() with a timeout. If collectd dies, the
helper process will automatically quit after a timeout, as it detects
its ppid has changed.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
10 years agoMerge remote-tracking branch 'github/pr/1814'
Florian Forster [Thu, 28 Jul 2016 10:25:16 +0000 (12:25 +0200)] 
Merge remote-tracking branch 'github/pr/1814'

10 years agoempty_counter match: Code cleanup. 1814/head
Florian Forster [Thu, 28 Jul 2016 10:10:07 +0000 (12:10 +0200)] 
empty_counter match: Code cleanup.

10 years agoempty_counter match: Add support for the DERIVE data source type.
Florian Forster [Thu, 28 Jul 2016 10:03:43 +0000 (12:03 +0200)] 
empty_counter match: Add support for the DERIVE data source type.

Fixes: #1813
10 years agovarnish plugin: Add informative warnings to the config handling. 1812/head
Florian Forster [Thu, 28 Jul 2016 08:53:50 +0000 (10:53 +0200)] 
varnish plugin: Add informative warnings to the config handling.

Not all config options are valid for all versions of Varnish. Rather
than removing the if-clause altogether, which results in a "Ignoring
unknown configuration option" warning, print a user-friendly warning
instead.

Fixes: #1790
10 years agoMerge pull request #1806 from rubenk/network-plugin-size_t
Ruben Kerkhof [Wed, 27 Jul 2016 12:42:46 +0000 (14:42 +0200)] 
Merge pull request #1806 from rubenk/network-plugin-size_t

network plugin: use size_t for length and offsets

10 years agonetwork plugin: Don't abort() if gcrypt initialization failed. 1810/head
Sebastian Harl [Wed, 27 Jul 2016 07:45:48 +0000 (09:45 +0200)] 
network plugin: Don't abort() if gcrypt initialization failed.

Instead, report an error and let plugin initialization fail.

10 years agowrite_http: fix warning in new kairos support
Ruben Kerkhof [Tue, 26 Jul 2016 14:14:02 +0000 (16:14 +0200)] 
write_http: fix warning in new kairos support

Found by LLVM:

comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long')

10 years agowrite_http: remove superfluous braces
Ruben Kerkhof [Tue, 26 Jul 2016 12:37:45 +0000 (14:37 +0200)] 
write_http: remove superfluous braces

10 years agoMerge pull request #1809 from beorn-/write_http_kairosdb_format_master
Ruben Kerkhof [Tue, 26 Jul 2016 12:36:44 +0000 (14:36 +0200)] 
Merge pull request #1809 from beorn-/write_http_kairosdb_format_master

Add KAIROSDB format to write_http plugin

10 years agoAdd KAIROSDB format to write_http plugin 1809/head
Aurelien ROUGEMONT [Wed, 27 Jan 2016 16:06:45 +0000 (17:06 +0100)] 
Add KAIROSDB format to write_http plugin

10 years agoMerge branch 'collectd-5.5'
Ruben Kerkhof [Tue, 26 Jul 2016 10:50:36 +0000 (12:50 +0200)] 
Merge branch 'collectd-5.5'

10 years agoMerge branch 'collectd-5.4' into collectd-5.5
Ruben Kerkhof [Tue, 26 Jul 2016 10:50:07 +0000 (12:50 +0200)] 
Merge branch 'collectd-5.4' into collectd-5.5

Conflicts:
ChangeLog
contrib/redhat/collectd.spec
version-gen.sh

10 years agoMerge pull request #1804 from rubenk/madwifi-fix-buffer-overflow
Ruben Kerkhof [Tue, 26 Jul 2016 10:45:53 +0000 (12:45 +0200)] 
Merge pull request #1804 from rubenk/madwifi-fix-buffer-overflow

madwifi plugin: fix buffer overflows

10 years agometadata: add comment about metadata functions use and threads safety
Aurelien ROUGEMONT [Tue, 26 Jul 2016 10:29:49 +0000 (12:29 +0200)] 
metadata: add comment about metadata functions use and threads safety

Signed-off-by: Florian Forster <octo@collectd.org>
10 years agoBump spec file to 5.4.3
Ruben Kerkhof [Tue, 26 Jul 2016 10:26:24 +0000 (12:26 +0200)] 
Bump spec file to 5.4.3

10 years agoUpdate spec file to 5.5.2
Ruben Kerkhof [Tue, 26 Jul 2016 10:20:40 +0000 (12:20 +0200)] 
Update spec file to 5.5.2

(cherry picked from commit 34add34b27c6d85ed992efc951fc08994e5f86d6)

10 years agoUpdate spec file to 5.5.2
Ruben Kerkhof [Tue, 26 Jul 2016 10:20:40 +0000 (12:20 +0200)] 
Update spec file to 5.5.2

10 years agoMerge pull request #1807 from matteocontrini/master
Ruben Kerkhof [Tue, 26 Jul 2016 10:13:46 +0000 (12:13 +0200)] 
Merge pull request #1807 from matteocontrini/master

Added 'operations_per_second' (redis) type

10 years agoBump version to 5.4.3; Update ChangeLog. collectd-5.4.3
Florian Forster [Tue, 26 Jul 2016 07:21:19 +0000 (09:21 +0200)] 
Bump version to 5.4.3; Update ChangeLog.

10 years agonetwork plugin: Fix error message for GCRYCTL_INIT_SECMEM failure.
Florian Forster [Tue, 26 Jul 2016 06:54:42 +0000 (08:54 +0200)] 
network plugin: Fix error message for GCRYCTL_INIT_SECMEM failure.

10 years agoMerge branch 'collectd-5.5'
Florian Forster [Tue, 26 Jul 2016 05:56:09 +0000 (07:56 +0200)] 
Merge branch 'collectd-5.5'

10 years agoChangeLog: Add note about #1665. collectd-5.5.2
Florian Forster [Tue, 26 Jul 2016 05:50:55 +0000 (07:50 +0200)] 
ChangeLog: Add note about #1665.

10 years agoAdded 'operations_per_second' (redis) type 1807/head
Matteo Contrini [Mon, 25 Jul 2016 22:35:13 +0000 (00:35 +0200)] 
Added 'operations_per_second' (redis) type