]> git.ipfire.org Git - thirdparty/collectd.git/log
thirdparty/collectd.git
5 years agoclang-format
Ismael Puerto [Mon, 23 Dec 2019 01:00:18 +0000 (01:00 +0000)] 
clang-format

5 years agoAddapt conf files
Ismael Puerto [Mon, 23 Dec 2019 00:45:22 +0000 (00:45 +0000)] 
Addapt conf files

5 years agoVSM only apply for Varnish 4
Ismael Puerto [Mon, 23 Dec 2019 00:18:57 +0000 (00:18 +0000)] 
VSM only apply for Varnish 4

5 years agoRemove old varnish and support for varnish 6
Ismael Puerto [Sun, 22 Dec 2019 23:50:27 +0000 (23:50 +0000)] 
Remove old varnish and support for varnish 6

5 years agoFactor out read_text_file_contents to ensure that data read from text files is a... 3359/head
Igor Peshansky [Thu, 19 Dec 2019 17:12:14 +0000 (12:12 -0500)] 
Factor out read_text_file_contents to ensure that data read from text files is a valid C string.

5 years agoUpdated a few metrics names and descriptions to be more intuitive. 3274/head
TG, Hari [Wed, 18 Dec 2019 22:30:14 +0000 (14:30 -0800)] 
Updated a few metrics names and descriptions to be more intuitive.

Signed-off-by: TG, Hari <hari.tg@intel.com>
5 years agoMerge pull request #3353 from mrunge/master
Matthias Runge [Tue, 17 Dec 2019 14:35:57 +0000 (15:35 +0100)] 
Merge pull request #3353 from mrunge/master

Remove grpc from Mac builds for now

5 years agoMerge pull request #3352 from ryan-mccabe/leak-fixes
Matthias Runge [Tue, 17 Dec 2019 14:35:33 +0000 (15:35 +0100)] 
Merge pull request #3352 from ryan-mccabe/leak-fixes

Leak fixes

5 years agoRemove grpc from Mac builds for now 3353/head
Matthias Runge [Tue, 17 Dec 2019 11:53:53 +0000 (12:53 +0100)] 
Remove grpc from Mac builds for now

5 years agoMerge pull request #3344 from Self-Perfection/patch-2
Matthias Runge [Mon, 9 Dec 2019 21:01:49 +0000 (22:01 +0100)] 
Merge pull request #3344 from Self-Perfection/patch-2

Fix linking with Python 3.8

5 years agoupdates based on review comments 3265/head
Nelson [Thu, 5 Dec 2019 18:01:22 +0000 (10:01 -0800)] 
updates based on review comments

5 years agoMerge pull request #3351 from ccin2p3/f/write_riemann-memleak collectd-5.9 3433/head 3435/head 3436/head
Ruben Kerkhof [Thu, 5 Dec 2019 16:21:29 +0000 (17:21 +0100)] 
Merge pull request #3351 from ccin2p3/f/write_riemann-memleak

Fix memory leak in write_riemann

5 years agoFix memory leak in write_riemann 3351/head
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ [Wed, 4 Dec 2019 13:08:47 +0000 (14:08 +0100)] 
Fix memory leak in write_riemann

Trivia: this cost a user €1844,28160184475 in electricity (~3TB of RAM
freed)

Changelog: Fix memory leak in write_riemann
Change-Id: If95da8d90c078c19ac0062e3bbb006185dcc441d

5 years agonetwork: Add missing freeaddrinfo on error path. 3352/head
Ryan McCabe [Wed, 4 Dec 2019 15:33:55 +0000 (10:33 -0500)] 
network: Add missing freeaddrinfo on error path.

Add a missing freeaddrinfo on an error path to fix a memory leak
in the network code.

Changelog: network: Fix memory leak.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
5 years agoamqp1: Fix leaks on error paths
Ryan McCabe [Wed, 4 Dec 2019 15:32:15 +0000 (10:32 -0500)] 
amqp1: Fix leaks on error paths

Fix a few memory leaks on error paths in the amqp1 plugin.

ChangeLog: amqp1 plugin: Fix leaks on error paths.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
5 years agologparser plugin: move utils_* to src/utils 3045/head
Kamil Wiatrowski [Thu, 25 Apr 2019 13:09:00 +0000 (15:09 +0200)] 
logparser plugin: move utils_* to src/utils

move utils_* to src/utils
minor doc fixes

Change-Id: I287dff4639b2fa59418cac3e16093b240119f945
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
5 years agoMerge pull request #3349 from rpv-tomsk/master
Ruben Kerkhof [Mon, 25 Nov 2019 09:27:32 +0000 (10:27 +0100)] 
Merge pull request #3349 from rpv-tomsk/master

daemon: Fix regression caused by #3217

5 years agodaemon: Fix regression caused by #3217 3349/head
Pavel Rochnyack [Sat, 23 Nov 2019 14:54:50 +0000 (21:54 +0700)] 
daemon: Fix regression caused by #3217

Empty <Plugin> section can be used to autoload plugin,
which does not supports configuration callback.

5 years agoFix Klocwork issues
Adrian Boczkowski [Wed, 12 Dec 2018 08:56:08 +0000 (08:56 +0000)] 
Fix Klocwork issues

Change-Id: I9189751dd8e29047488d2f9634cb0856333436bf
Signed-off-by: Adrian Boczkowski <adrianx.boczkowski@intel.com>
5 years agologparser plugin: Add unit tests
Mozejko, MarcinX [Tue, 16 Oct 2018 11:27:42 +0000 (12:27 +0100)] 
logparser plugin: Add unit tests

Change-Id: I193aa776d6fbc1e31690db96d85143707823fbe1
Signed-off-by: Mozejko, MarcinX <marcinx.mozejko@intel.com>
5 years agologparser plugin: Plugin used to parse log files using regexes
Mozejko, MarcinX [Wed, 18 Apr 2018 08:08:17 +0000 (09:08 +0100)] 
logparser plugin: Plugin used to parse log files using regexes

utils_tail, utils_tail_match: Change _Bool to bool.
utils_message_parser: Correct struct and type names, cleanup, unit
tests.

Change-Id: I40f3336e274f01791e7c171db5be2f21a6c9217c
Signed-off-by: Mozejko, MarcinX <marcinx.mozejko@intel.com>
5 years agopcie_errors plugin: possibility only to filter messages from log file.
Kamil Wiatrowski [Wed, 10 May 2017 10:21:54 +0000 (11:21 +0100)] 
pcie_errors plugin: possibility only to filter messages from log file.

Add new possible value for submatch index: -1. For this value do not
add the matched string to results. It can be used to only filter
the required messages from syslog without adding the match to result.

Change-Id: I93d9595be77427c135cc09baac901cd919d6c27e
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
5 years agoutils_message_parser: added message buffer shrinkage
Krzysztof Matczak [Wed, 29 Mar 2017 09:39:20 +0000 (10:39 +0100)] 
utils_message_parser: added message buffer shrinkage

Large message buffer memory allocation that was needed
for handling MCE message flood has significant
performance impact on collectd CPU usage.
This fix adds logic for decreasing message buffer size to
default value (64) if there's nothing to parse.

Change-Id: Ibbaef211e1fe24d53663d717a1899ec719017b2b
Signed-off-by: Krzysztof Matczak <krzysztofx.matczak@intel.com>
5 years agomessage log parser util: ignore patterns after message is completed
Kamil Wiatrowski [Tue, 7 Feb 2017 07:42:19 +0000 (08:42 +0100)] 
message log parser util: ignore patterns after message is completed

Extend condition to ignore patterns before message has started
and after it is completed.

Change-Id: I2ea7fcc8c11bf3f41a21aa08b014faf6074d2234
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
5 years agoUtility for filtering and parsing log messages
Krzysztof Matczak [Sun, 8 Jan 2017 21:36:23 +0000 (21:36 +0000)] 
Utility for filtering and parsing log messages

This utility simplifies filtering and parsing specific messages
from given log file. It tracks log file using utils_tail_match.h API.
Main feature is automatic messages assembly based on set of user provided
regular expressions containing distinguished expressions for recognizing
start and the end of the message. That makes assembling single message
from multiple log lines quite easy. Utility supports multiple parsing jobs
and also user defined message part validation flags (mandatory or not).

Added fixes for memory leak in utils_match.c and for debug mode
segfault in src/utils_tail_match.c

Modification of utils_tail and utils_tail_match API with adding option
for reading file from the beginning. Minor modifications in this API
calls in tail and tail_csv plugins.

Change-Id: I6865833c8d5403294124187aa7f93cc957004a03
Signed-off-by: Krzysztof Matczak <krzysztofx.matczak@intel.com>
5 years agoRewrite to use only one config array
Marco van Tol [Thu, 21 Nov 2019 20:39:47 +0000 (21:39 +0100)] 
Rewrite to use only one config array

5 years agoFix linking with Python 3.8 3344/head
Alexander Meshcheryakov [Sat, 16 Nov 2019 14:53:32 +0000 (17:53 +0300)] 
Fix linking with Python 3.8

Since Python 3.8 --embed flag needs to be provided to python-config to embed python.
Reference: https://bugs.python.org/issue36721

This was partially addressed in #3170 but only fixed building and not linking with python.

5 years agoAddress some clang-format issues 3333/head
Edgar Fuß [Fri, 15 Nov 2019 18:45:28 +0000 (19:45 +0100)] 
Address some clang-format issues

Re-format some lines to appease clang-format.

clang-format also wants to change the indentation of some #endif comments I didn't introduce and re-order #include's into a form that /does not compile/.

5 years agoChangeLog: Add recent bugfix merges … 3409/head 5.10.0 collectd-5.10.0
Florian Forster [Fri, 15 Nov 2019 09:58:57 +0000 (10:58 +0100)] 
ChangeLog: Add recent bugfix merges …

… for the Turbostat and GPU NVidia plugins.

5 years agoMerge branch 'collectd-5.9' into collectd-5.10
Florian Forster [Fri, 15 Nov 2019 09:47:11 +0000 (10:47 +0100)] 
Merge branch 'collectd-5.9' into collectd-5.10

5 years agoMerge branch 'collectd-5.8' into collectd-5.9
Florian Forster [Fri, 15 Nov 2019 09:44:26 +0000 (10:44 +0100)] 
Merge branch 'collectd-5.8' into collectd-5.9

5 years agoturbostat: Fix parsing warnings collectd-5.8
Ryan McCabe [Thu, 7 Nov 2019 18:58:37 +0000 (13:58 -0500)] 
turbostat: Fix parsing warnings

Fix warnings generated by the turbostat plugin due to trailing
characters while picking out the first number in a range.

ChangeLog: turbostat plugin: Fix parsing warnings.
PR: #2365
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
Signed-off-by: Florian Forster <octo@collectd.org>
5 years agoFormat BSD constrained sysctl usage 3342/head
Zebity Spring [Sat, 9 Nov 2019 16:29:16 +0000 (03:29 +1100)] 
Format BSD constrained sysctl usage

5 years agoAvoid using sysctl on linux & allow for OpenBSD case
Zebity Spring [Sat, 9 Nov 2019 12:41:38 +0000 (23:41 +1100)] 
Avoid using sysctl on linux & allow for OpenBSD case

5 years agoAvoid using sysctl on linux
Zebity Spring [Sat, 9 Nov 2019 12:05:22 +0000 (23:05 +1100)] 
Avoid using sysctl on linux

5 years agoAvoid using sysctl on linux
Zebity Spring [Sat, 9 Nov 2019 11:43:36 +0000 (22:43 +1100)] 
Avoid using sysctl on linux

5 years agoAvoid using sysctl on linux
Zebity Spring [Sat, 9 Nov 2019 11:31:23 +0000 (22:31 +1100)] 
Avoid using sysctl on linux

5 years agoAvoid using sysctl on linux
Zebity Spring [Sat, 9 Nov 2019 11:26:39 +0000 (22:26 +1100)] 
Avoid using sysctl on linux

5 years agoMerge branch 'master' of https://github.com/collectd/collectd
Zebity Spring [Sat, 9 Nov 2019 01:42:54 +0000 (12:42 +1100)] 
Merge branch 'master' of https://github.com/collectd/collectd

5 years agoAvoid using sysctl on linux
Zebity Spring [Sat, 9 Nov 2019 01:39:07 +0000 (12:39 +1100)] 
Avoid using sysctl on linux

5 years agoAvoid using sysctl on linux
Zebity Spring [Fri, 8 Nov 2019 13:04:07 +0000 (00:04 +1100)] 
Avoid using sysctl on linux

5 years agoMerge pull request #3340 from ryan-mccabe/pr2365-turbostat-parsing
Ruben Kerkhof [Thu, 7 Nov 2019 20:00:40 +0000 (21:00 +0100)] 
Merge pull request #3340 from ryan-mccabe/pr2365-turbostat-parsing

turbostat: Fix parsing warnings

5 years agoturbostat: Fix parsing warnings 3340/head
Ryan McCabe [Thu, 7 Nov 2019 18:58:37 +0000 (13:58 -0500)] 
turbostat: Fix parsing warnings

Fix warnings generated by the turbostat plugin due to trailing
characters while picking out the first number in a range.

ChangeLog: turbostat plugin: Fix parsing warnings.
PR: #2365
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
5 years agoReformatted code. 3339/head
Javier Kohen [Wed, 6 Nov 2019 19:50:48 +0000 (14:50 -0500)] 
Reformatted code.

5 years agoUpdate utils_cache.h
Javier Kohen [Wed, 6 Nov 2019 19:47:46 +0000 (16:47 -0300)] 
Update utils_cache.h

5 years agoExpose meta_data_toc function.
Javier Kohen [Wed, 6 Nov 2019 19:46:17 +0000 (16:46 -0300)] 
Expose meta_data_toc function.

This is useful for traversing all the meta data elements in a value list, since there is no element to look up the metadata object.

For example usage, see https://github.com/Stackdriver/collectd/pull/166

5 years agoMerge pull request #3269 from bplessis/feature-add-snmpbulk
Matthias Runge [Sat, 2 Nov 2019 21:12:06 +0000 (22:12 +0100)] 
Merge pull request #3269 from bplessis/feature-add-snmpbulk

snmp plugin: add support for SNMP Bulk Transfer

5 years agoMerge pull request #3283 from zebity/master
Matthias Runge [Sat, 2 Nov 2019 21:01:07 +0000 (22:01 +0100)] 
Merge pull request #3283 from zebity/master

Consistent returns from ssnprintf/__ssnprintf wrappers, add ssnprintf2 for optional error handling.

5 years agoMerge pull request #3331 from jkohen/patch-1
Matthias Runge [Sat, 2 Nov 2019 09:24:20 +0000 (10:24 +0100)] 
Merge pull request #3331 from jkohen/patch-1

Create internal library for utils_llist

5 years agoMerge pull request #3332 from rubenk/cuda-3320 3335/head 3336/head
Matthias Runge [Fri, 1 Nov 2019 15:21:54 +0000 (16:21 +0100)] 
Merge pull request #3332 from rubenk/cuda-3320

Fix compilation with libcuda

5 years agoImplement NFS plugin for NetBSD
Edgar Fuß [Thu, 31 Oct 2019 17:26:45 +0000 (18:26 +0100)] 
Implement NFS plugin for NetBSD

5 years agoRevert accidental commit to master branch
Edgar Fuß [Thu, 31 Oct 2019 17:23:36 +0000 (18:23 +0100)] 
Revert accidental commit to master branch

5 years agoImplement NFS plugin for NetBSD
Edgar Fuß [Thu, 31 Oct 2019 16:57:48 +0000 (17:57 +0100)] 
Implement NFS plugin for NetBSD

5 years agoFix compilation with libcuda 3332/head
Ruben Kerkhof [Wed, 30 Oct 2019 19:48:57 +0000 (20:48 +0100)] 
Fix compilation with libcuda

Fixes #3320

5 years agobuddyinfo: remove redundant sfree 3303/head
Asaf Kahlon [Wed, 30 Oct 2019 18:13:58 +0000 (20:13 +0200)] 
buddyinfo: remove redundant sfree

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
5 years agoCreate internal library for utils_llist 3331/head
Javier Kohen [Wed, 30 Oct 2019 16:36:14 +0000 (13:36 -0300)] 
Create internal library for utils_llist

We plan to use this library in the write_gcm plugin in the https://github.com/Stackdriver/collectd fork. I hope it's OK with you to make this change upstream before we are ready to contribute the Stackdriver plug-in into this codebase.

5 years agoMerge pull request #3328 from efuss/fix-3312
Ruben Kerkhof [Wed, 30 Oct 2019 08:20:50 +0000 (09:20 +0100)] 
Merge pull request #3328 from efuss/fix-3312

Fix libupsclient detection

5 years agoMerge pull request #3329 from efuss/fix-3311
Ruben Kerkhof [Wed, 30 Oct 2019 08:19:19 +0000 (09:19 +0100)] 
Merge pull request #3329 from efuss/fix-3311

Fix libtokyotyrant handling

5 years agobuddyinfo: fix review comments
Asaf Kahlon [Tue, 29 Oct 2019 20:18:51 +0000 (22:18 +0200)] 
buddyinfo: fix review comments

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
5 years agoFix libtokyotyrant handling 3329/head
Edgar Fuß [Tue, 29 Oct 2019 17:53:27 +0000 (18:53 +0100)] 
Fix libtokyotyrant handling

In libtokyotyrant handling, set with_libtokyotyrant_ldflags to "-L$withval/lib", not "-L$withval/include".

5 years agoFix libupsclient detection 3328/head
Edgar Fuß [Tue, 29 Oct 2019 17:47:55 +0000 (18:47 +0100)] 
Fix libupsclient detection

Check libupsclient $withval for being a regular file in addition to being executable/searchable. The value may be a directory name.

5 years agoMerge pull request #3310 from yousong/mem
Ruben Kerkhof [Tue, 29 Oct 2019 14:44:50 +0000 (15:44 +0100)] 
Merge pull request #3310 from yousong/mem

network,exec: fix memory issue

5 years agoMerge pull request #3325 from ffontaine/master
Ruben Kerkhof [Tue, 29 Oct 2019 14:43:42 +0000 (15:43 +0100)] 
Merge pull request #3325 from ffontaine/master

configure.ac: fix protobuf/util/time_util.h detection

5 years agoconfigure.ac: fix protobuf/util/time_util.h detection 3325/head
Fabrice Fontaine [Tue, 29 Oct 2019 09:25:07 +0000 (10:25 +0100)] 
configure.ac: fix protobuf/util/time_util.h detection

Add -std=c++11 when checking gor protobuf/util/time_util.h otherwise
test will fail on:

configure:104495: checking google/protobuf/util/time_util.h usability
configure:104495: /home/br-user/autobuild/run/instance-2/output/host/bin/mips-linux-gnu-g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -D_FORTIFY_SOURCE=1  -pthread  conftest.cpp >&5
In file included from /home/br-user/autobuild/run/instance-2/output/host/opt/ext-toolchain/mips-linux-gnu/include/c++/5.3.0/atomic:38:0,
                 from /home/br-user/autobuild/run/instance-2/output/host/mips-buildroot-linux-gnu/sysroot/usr/include/google/protobuf/io/coded_stream.h:113,
                 from /home/br-user/autobuild/run/instance-2/output/host/mips-buildroot-linux-gnu/sysroot/usr/include/google/protobuf/duration.pb.h:23,
                 from /home/br-user/autobuild/run/instance-2/output/host/mips-buildroot-linux-gnu/sysroot/usr/include/google/protobuf/util/time_util.h:52,
                 from conftest.cpp:188:
/home/br-user/autobuild/run/instance-2/output/host/opt/ext-toolchain/mips-linux-gnu/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

Fixes:
 - http://autobuild.buildroot.net/results/0d486edaf4c51b6438adeec61fe2c55099862acb

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
5 years agobuddyinfo: fix review comments
Asaf Kahlon [Mon, 28 Oct 2019 20:45:36 +0000 (22:45 +0200)] 
buddyinfo: fix review comments

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
5 years agoMerge pull request #3323 from rubenk/cuda-fix-build
Ruben Kerkhof [Mon, 28 Oct 2019 16:51:17 +0000 (17:51 +0100)] 
Merge pull request #3323 from rubenk/cuda-fix-build

gpu_nvidia plugin: fix build

5 years agogpu_nvidea plugin: fix build 3323/head
Ruben Kerkhof [Mon, 28 Oct 2019 12:54:23 +0000 (13:54 +0100)] 
gpu_nvidea plugin: fix build

Fixes #3320

5 years agoMerge pull request #3321 from ccin2p3/collectd-5.10
Matthias Runge [Thu, 24 Oct 2019 12:23:22 +0000 (14:23 +0200)] 
Merge pull request #3321 from ccin2p3/collectd-5.10

fix missing package in specfile

5 years agoFix conflict from remove of ssnprintf2 and align utils/common/common.h 3283/head
Zebity Spring [Thu, 24 Oct 2019 11:08:22 +0000 (22:08 +1100)] 
Fix conflict from remove of ssnprintf2 and align utils/common/common.h

5 years agofix missing package in specfile 3321/head
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ [Thu, 24 Oct 2019 09:23:41 +0000 (11:23 +0200)] 
fix missing package in specfile

Change-Id: Ic4bbe3ffa60be0f0c2ca78487119ec029a9a4ce0

5 years agoMerge pull request #3309 from rubenk/remove-lvm-plugin
Ruben Kerkhof [Wed, 23 Oct 2019 11:26:51 +0000 (13:26 +0200)] 
Merge pull request #3309 from rubenk/remove-lvm-plugin

Remove LVM plugin

5 years agoMerge pull request #3318 from mrunge/collectd-5.10
Ruben Kerkhof [Wed, 23 Oct 2019 11:09:41 +0000 (13:09 +0200)] 
Merge pull request #3318 from mrunge/collectd-5.10

Changelog and preparation for collectd 5.10

5 years agoAuto-Merge pull request #3138 from mkauf/fix_exec_environment
collectd bot [Tue, 22 Oct 2019 14:28:38 +0000 (16:28 +0200)] 
Auto-Merge pull request #3138 from mkauf/fix_exec_environment

Automatically merged due to "Automerge" label

5 years agoFix typo 3318/head
Matthias Runge [Fri, 18 Oct 2019 15:57:53 +0000 (17:57 +0200)] 
Fix typo

5 years agoUpdate the spec file to 5.10.0
Matthias Runge [Fri, 18 Oct 2019 14:53:46 +0000 (16:53 +0200)] 
Update the spec file to 5.10.0

5 years agoMerge branch '5-10-changelog' into collectd-5.10
Matthias Runge [Thu, 17 Oct 2019 12:55:34 +0000 (14:55 +0200)] 
Merge branch '5-10-changelog' into collectd-5.10

5 years agoPrepare 5.10 release
Matthias Runge [Tue, 15 Oct 2019 08:00:53 +0000 (10:00 +0200)] 
Prepare 5.10 release

5 years agoMerge pull request #3317 from mrunge/check_fixes
Ruben Kerkhof [Wed, 16 Oct 2019 11:18:12 +0000 (13:18 +0200)] 
Merge pull request #3317 from mrunge/check_fixes

Merge check fixes from 5.9 branch to master

5 years agoFix warning in test_strunescape 3317/head
Ruben Kerkhof [Mon, 14 Oct 2019 16:12:52 +0000 (18:12 +0200)] 
Fix warning in test_strunescape

src/utils/common/common_test.c:254:3: warning: ‘strncpy’ output truncated before terminating nul copying 16 bytes from a string of the same length [-Wstringop-truncation]
  254 |   strncpy(buffer, "\\tbackslash end\\", sizeof(buffer));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD     test_common

(cherry picked from commit 5bcc3a10cbae9d94ccb10a62218ab26433bbaa67)
(cherry picked from commit 7109b8a27f2d82fbf8c1ae9d58ab6cffbaec9339)

5 years agoFix warning in test_escape_string
Ruben Kerkhof [Mon, 14 Oct 2019 15:38:03 +0000 (17:38 +0200)] 
Fix warning in test_escape_string

In function ‘test_escape_string’,
    inlined from ‘main’ at src/utils/common/common_test.c:384:3:
src/utils/common/common_test.c:226:5: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
  226 |     strncpy(buffer, cases[i].str, sizeof(buffer));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(cherry picked from commit 737ffc08e2d9f3d3dda40a51329881085070863e)
(cherry picked from commit 52e8daca0c0b53c61c31fe9ea058b08e6eb7c2b1)

5 years agoFix warning in test_escape_slashes
Ruben Kerkhof [Mon, 14 Oct 2019 15:36:55 +0000 (17:36 +0200)] 
Fix warning in test_escape_slashes

In function ‘test_escape_slashes’,
    inlined from ‘main’ at src/utils/common/common_test.c:383:3:
src/utils/common/common_test.c:201:5: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation]
  201 |     strncpy(buffer, cases[i].str, sizeof(buffer));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(cherry picked from commit a22c4260335616b7847e57ef638e0e29cd8cda05)
(cherry picked from commit d5edf1e82feb80cfe90cfa35501eef3c8dc493e5)

5 years agoMerge pull request #3316 from mrunge/checkfix_collectd59
Ruben Kerkhof [Wed, 16 Oct 2019 08:22:09 +0000 (10:22 +0200)] 
Merge pull request #3316 from mrunge/checkfix_collectd59

Merge make check fixes from collectd 5.8 to 5.9

5 years agoFix warning in test_strunescape 3316/head
Ruben Kerkhof [Mon, 14 Oct 2019 16:12:52 +0000 (18:12 +0200)] 
Fix warning in test_strunescape

src/utils/common/common_test.c:254:3: warning: ‘strncpy’ output truncated before terminating nul copying 16 bytes from a string of the same length [-Wstringop-truncation]
  254 |   strncpy(buffer, "\\tbackslash end\\", sizeof(buffer));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD     test_common

(cherry picked from commit 5bcc3a10cbae9d94ccb10a62218ab26433bbaa67)

5 years agoFix warning in test_escape_string
Ruben Kerkhof [Mon, 14 Oct 2019 15:38:03 +0000 (17:38 +0200)] 
Fix warning in test_escape_string

In function ‘test_escape_string’,
    inlined from ‘main’ at src/utils/common/common_test.c:384:3:
src/utils/common/common_test.c:226:5: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
  226 |     strncpy(buffer, cases[i].str, sizeof(buffer));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(cherry picked from commit 737ffc08e2d9f3d3dda40a51329881085070863e)

5 years agoFix warning in test_escape_slashes
Ruben Kerkhof [Mon, 14 Oct 2019 15:36:55 +0000 (17:36 +0200)] 
Fix warning in test_escape_slashes

In function ‘test_escape_slashes’,
    inlined from ‘main’ at src/utils/common/common_test.c:383:3:
src/utils/common/common_test.c:201:5: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation]
  201 |     strncpy(buffer, cases[i].str, sizeof(buffer));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(cherry picked from commit a22c4260335616b7847e57ef638e0e29cd8cda05)

5 years agoMerge pull request #3307 from rubenk/travis-bionic
Ruben Kerkhof [Tue, 15 Oct 2019 08:49:41 +0000 (10:49 +0200)] 
Merge pull request #3307 from rubenk/travis-bionic

Travis: switch to Bionic

5 years agoMerge pull request #3308 from rubenk/travis-osx
Ruben Kerkhof [Tue, 15 Oct 2019 08:47:06 +0000 (10:47 +0200)] 
Merge pull request #3308 from rubenk/travis-osx

Travis improvements for MacOS

5 years agoMerge pull request #3306 from rubenk/fix-make-check
Matthias Runge [Tue, 15 Oct 2019 08:15:37 +0000 (10:15 +0200)] 
Merge pull request #3306 from rubenk/fix-make-check

Fix make check

5 years agonetwork: fix data race when accessing sending_sockets 3310/head
Yousong Zhou [Tue, 15 Oct 2019 02:48:32 +0000 (02:48 +0000)] 
network: fix data race when accessing sending_sockets

This can happen with more than 1 WriteThreads

5 years agoexec: free up memory on shutdown
Yousong Zhou [Mon, 14 Oct 2019 06:48:56 +0000 (06:48 +0000)] 
exec: free up memory on shutdown

5 years agoStop installing libstatgrab 3308/head
Ruben Kerkhof [Mon, 14 Oct 2019 18:43:29 +0000 (20:43 +0200)] 
Stop installing libstatgrab

It replaces native functionality

5 years agoTry to point OSX at where java is
Ruben Kerkhof [Mon, 14 Oct 2019 18:42:31 +0000 (20:42 +0200)] 
Try to point OSX at where java is

5 years agoShow config.log for debugging
Ruben Kerkhof [Mon, 14 Oct 2019 18:26:34 +0000 (20:26 +0200)] 
Show config.log for debugging

5 years agoTry to use java
Ruben Kerkhof [Mon, 14 Oct 2019 18:22:20 +0000 (20:22 +0200)] 
Try to use java

5 years agoInstall a few deps
Ruben Kerkhof [Mon, 14 Oct 2019 17:44:26 +0000 (19:44 +0200)] 
Install a few deps

5 years agoSort output of pkg-config
Ruben Kerkhof [Mon, 14 Oct 2019 17:37:59 +0000 (19:37 +0200)] 
Sort output of pkg-config

5 years agoRemove LVM plugin 3309/head
Ruben Kerkhof [Mon, 14 Oct 2019 17:31:03 +0000 (19:31 +0200)] 
Remove LVM plugin

liblvm2app has been deprecated

5 years agoLog which packages pkg-config thinks we have
Ruben Kerkhof [Mon, 14 Oct 2019 17:26:56 +0000 (19:26 +0200)] 
Log which packages pkg-config thinks we have

5 years agoTravis on MacOS: bump image version
Ruben Kerkhof [Mon, 14 Oct 2019 17:25:36 +0000 (19:25 +0200)] 
Travis on MacOS: bump image version

5 years agoDisable lvm plugin in Travis for now 3307/head
Ruben Kerkhof [Mon, 14 Oct 2019 17:11:07 +0000 (19:11 +0200)] 
Disable lvm plugin in Travis for now

In file included from ../../src/lvm.c:29:
/usr/include/lvm2app.h:21:2: error: "liblvm2app is deprecated, use D-Bus API
      instead." [-Werror,-W#warnings]
 ^
1 error generated.
Makefile:7018: recipe for target 'src/lvm_la-lvm.lo' failed