]>
git.ipfire.org Git - thirdparty/collectd.git/log
Ruben Kerkhof [Mon, 14 Oct 2019 16:46:58 +0000 (18:46 +0200)]
Travis: switch to Bionic
Ruben Kerkhof [Mon, 14 Oct 2019 16:32:17 +0000 (18:32 +0200)]
clang-format
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
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));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Asaf Kahlon [Mon, 14 Oct 2019 08:05:07 +0000 (11:05 +0300)]
buddyinfo: fix copyright authors
The names written originally were copied from another plugin blindly.
Remove them and add myself.
Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
Asaf Kahlon [Sat, 12 Oct 2019 18:20:11 +0000 (21:20 +0300)]
buddyinfo plugin: new plugin for memory fragmentation info
Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
Reshma Pattan [Fri, 11 Oct 2019 16:28:05 +0000 (17:28 +0100)]
dpdk_telemetry plugin: refactor clean up of socket close
Instead of closing each socket during failures, just call
clean up function to be more consistent across the file.
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reshma Pattan [Fri, 11 Oct 2019 16:15:57 +0000 (17:15 +0100)]
dpdk_telemetry plugin: move read loop reg to module register
Move read loop callback registration to module_register().
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reshma Pattan [Fri, 11 Oct 2019 16:13:30 +0000 (17:13 +0100)]
dpdk_telemetry plugin: fix some logs to be debug
Fix some of the logs level to be debug instead of info.
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reshma Pattan [Wed, 25 Sep 2019 10:49:17 +0000 (11:49 +0100)]
dpdk_telemetry plugin: use json loads symbol in configure
Use "json_loads" symbol instead of "json_is_object"
in configure.ac .
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reshma Pattan [Tue, 24 Sep 2019 16:19:26 +0000 (17:19 +0100)]
dpdk_telemetry plugin: prefix missed lib
Some places missing the lib prefix in
"with_libjansson", so add the missing prefix.
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reshma Pattan [Mon, 16 Sep 2019 09:16:12 +0000 (10:16 +0100)]
dpdk_telemetry plugin: place the plugin in sorted order
Place dpdk_telemetry plugin in sorted order in the list.
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reshma Pattan [Fri, 13 Sep 2019 11:15:18 +0000 (12:15 +0100)]
dpdk_telemetry plugin: remove while loop from init and read callbacks
Remove socket reconnect logic from init callbacks.
Read callbacks will try to connect to the socket if
not connected.
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reshma Pattan [Thu, 16 May 2019 11:00:38 +0000 (12:00 +0100)]
dpdk_telemetry plugin: add plugin for DPDK metrics via DPDK Telemetry library
This patch introduces a new plugin for collectd, which consumes DPDK metrics
via the dpdk_telemetry library. The collectd plugin here provides an
easy way to use the DPDK telemetry API to query ethernet device metrics.
The collectd plugin retrieves metrics from a DPDK packet forwarding
application by sending a JSON formatted message via a UNIX domain
socket. The DPDK telemetry component will respond with a JSON formatted
reply, delivering the requested metrics. The dpdk_telemetry collectd
plugin parses the JSON data, and publishes the metric values to collectd
for further use.
This plugin has a dependency on the DPDK Telemetry library, as it must be
"in sync" with the DPDK Telemetry implementation.
Change-Id: If3343aae4c5473f0574465fab0395b7672fa2488
Signed-off-by: Emma Kenny <emma.kenny@intel.com>
Signed-off-by: Brian Archbold <brian.archbold@intel.com>
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Benoit Plessis [Fri, 11 Oct 2019 12:54:14 +0000 (14:54 +0200)]
Move the variable declaration closer to use
Benoit Plessis [Fri, 11 Oct 2019 11:14:41 +0000 (13:14 +0200)]
Fixes from ruben review
Ruben Kerkhof [Fri, 11 Oct 2019 10:32:50 +0000 (12:32 +0200)]
Merge pull request #3299 from mrunge/master
Merge stable branch back to master
Matthias Runge [Fri, 11 Oct 2019 07:54:28 +0000 (09:54 +0200)]
Merge pull request #3291 from dago/issue3220
Link to libnsl.so if needed for inet_ntop()
Matthias Runge [Wed, 9 Oct 2019 12:41:47 +0000 (14:41 +0200)]
Merge tag 'collectd-5.9.2'
Matthias Runge [Fri, 11 Oct 2019 06:59:29 +0000 (08:59 +0200)]
Merge pull request #3298 from rubenk/contextswitch-nosysctl-h
Only include <sys/sysctl.h> when needed
Ruben Kerkhof [Wed, 9 Oct 2019 11:47:23 +0000 (13:47 +0200)]
Only include <sys/sysctl.h> when needed
This plugin doesn't need sysctl.h on Linux.
Benoit Plessis [Fri, 4 Oct 2019 11:01:08 +0000 (13:01 +0200)]
Rephrased and simplified option documentation
Benoit Plessis [Fri, 4 Oct 2019 09:08:46 +0000 (11:08 +0200)]
Add a warning when trying to activate bulktransferts on an SNMP v1 host -- fix formating
Benoit Plessis [Fri, 4 Oct 2019 09:07:34 +0000 (11:07 +0200)]
Fix typo and add a new 'highend switch' example that support bulk
Benoit Plessis [Fri, 4 Oct 2019 09:06:54 +0000 (11:06 +0200)]
Fix typos and try to rephrase description
Benoit Plessis [Fri, 4 Oct 2019 09:06:15 +0000 (11:06 +0200)]
Add a warning when trying to activate bulktransferts on an SNMP v1 host
Michael Kaufmann [Thu, 3 May 2018 20:20:33 +0000 (22:20 +0200)]
Set the thread name before detaching the thread
pthread_setname_np() does not work reliably when a thread has been
created in a detached state. Set the thread name first, and then call
pthread_detach() afterwards (if necessary).
This prevents error messages like this one:
set_thread_name("unixsock conn"): No such process
Michael Kaufmann [Thu, 11 Apr 2019 16:14:22 +0000 (18:14 +0200)]
exec: fix a race condition when setting environment variables
Pass the environment as a parameter to the child process
and don't modify the environment of the parent process.
Follow-up to
0684aea7
Closes #3041
Dagobert Michelsen [Tue, 1 Oct 2019 12:34:43 +0000 (14:34 +0200)]
Link to libnsl.so if needed for inet_ntop()
Matthias Runge [Tue, 1 Oct 2019 11:55:41 +0000 (13:55 +0200)]
Merge pull request #3290 from mrunge/collectd-5.9
Add changelog to prepare 5.9.2 release
Matthias Runge [Tue, 1 Oct 2019 10:22:23 +0000 (12:22 +0200)]
Add changelog to prepare 5.9.2 release
TG, Hari [Fri, 27 Sep 2019 18:46:37 +0000 (11:46 -0700)]
Updated REDME with library upstream URL. Updated AUTHORS.
Signed-off-by: TG, Hari <hari.tg@intel.com>
TG, Hari [Thu, 26 Sep 2019 23:32:51 +0000 (16:32 -0700)]
Improved error handling in case of init and read callback, and collection thread failures.
Updated a few error messages.
Signed-off-by: TG, Hari <hari.tg@intel.com>
Manuel Luis Sanmartín Rozada [Thu, 26 Sep 2019 00:44:56 +0000 (02:44 +0200)]
clang formatting
Manuel Luis Sanmartín Rozada [Wed, 20 May 2015 20:16:24 +0000 (22:16 +0200)]
Allow autoload of matches and targets in the same way of plugins.
Ruben Kerkhof [Tue, 24 Sep 2019 08:11:19 +0000 (10:11 +0200)]
Merge pull request #3247 from jplitza/fix-2843
zfs_arc plugin: Read dbuf_size, dnode_size and bonus_size
Jan-Philipp Litza [Fri, 9 Aug 2019 20:08:29 +0000 (22:08 +0200)]
zfs_arc: Read dbuf_size, dnode_size and bonus_size
They are the replacement for other_size since ZFS on Linux 0.7.0
collectd bot [Mon, 23 Sep 2019 08:34:58 +0000 (10:34 +0200)]
Auto-Merge pull request #3286 from mrunge/master
Automatically merged due to "Automerge" label
Ruben Kerkhof [Mon, 23 Sep 2019 07:24:48 +0000 (09:24 +0200)]
Merge pull request #3288 from usev6/mysql_wsrepstats_doc
Tweak docs for mysql plugin
Zebity Spring [Sat, 21 Sep 2019 07:57:35 +0000 (17:57 +1000)]
Add ssnprintf2 wrapper variiant definition
usev6 [Fri, 20 Sep 2019 20:26:40 +0000 (22:26 +0200)]
mysql plugin: Fix typo in documentation
usev6 [Fri, 20 Sep 2019 20:18:56 +0000 (22:18 +0200)]
mysql plugin: Tweak docs for WsrepStats option
* Avoid rendering as preformatted text.
* Note that config option defaults to false.
Matthias Runge [Fri, 20 Sep 2019 06:37:37 +0000 (08:37 +0200)]
Fix typo in src/java.c
The error message did not contain a 'not'
Closes: https://github.com/collectd/collectd/issues/3285
Marco van Tol [Wed, 18 Sep 2019 18:56:47 +0000 (20:56 +0200)]
Apply contrib/format.sh
Marco van Tol [Wed, 18 Sep 2019 18:42:36 +0000 (20:42 +0200)]
Change logic to use arrays for all the different options, rather then having lots of similar code. The config setup is still too-fix
Matthias Runge [Wed, 18 Sep 2019 14:59:09 +0000 (16:59 +0200)]
Merge pull request #2622 from abays/connectivity
Red Hat NFVPE Connectivity Plugin
Andrew Bays [Wed, 18 Sep 2019 12:31:32 +0000 (08:31 -0400)]
Merge branch 'master' into connectivity
Matthias Runge [Wed, 18 Sep 2019 12:06:23 +0000 (14:06 +0200)]
Merge pull request #3282 from abays/sysevent
Check for sysevent plugin init calloc failures
Zebity Spring [Wed, 18 Sep 2019 11:49:34 +0000 (21:49 +1000)]
Add second wrapper ssnprintf2 to allow introduction of error handling on truncation in future
Andrew Bays [Wed, 18 Sep 2019 11:45:48 +0000 (07:45 -0400)]
Check for sysevent plugin init calloc failures
Zebity Spring [Wed, 18 Sep 2019 11:33:27 +0000 (21:33 +1000)]
Make return result consistent with fixed src/utils/common/common.c - ssnprintf wrapper
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ [Mon, 29 Jul 2019 07:54:27 +0000 (09:54 +0200)]
fix https://github.com/collectd/collectd/issues/3232
Change-Id: Idab2c4ffa242a73b651f1b056f85f905e356c5ac
Matthias Runge [Tue, 17 Sep 2019 13:18:32 +0000 (15:18 +0200)]
Merge pull request #3280 from mrunge/collectd-5.9
Collectd 5.9
Matthias Runge [Tue, 17 Sep 2019 12:04:41 +0000 (14:04 +0200)]
Merge pull request #3276 from chrismcn/upstream_turbostat
Upstream turbostat
Matthias Runge [Tue, 17 Sep 2019 12:00:47 +0000 (14:00 +0200)]
Merge pull request #3277 from abays/sysevent
Use sstrncpy instead of strncpy in sysevent plugin
Matthias Runge [Thu, 8 Aug 2019 09:58:55 +0000 (11:58 +0200)]
Fix compile time issues
This resolves #3242 and should also resolve #3179.
Signed-off-by: Matthias Runge <mrunge@redhat.com>
(cherry picked from commit
0bbf058d6f9935e6e727cda7db79312281e2f58d )
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ [Tue, 30 Jul 2019 10:35:31 +0000 (12:35 +0200)]
Don't fail if syslog loglevel doesn't match
This makes the log message more consistent with the behaviour,
and also is consistent with pre-
3b9c7b21b4ddfcf59a0147bc9e91e8889ca78d56 behaviour
Change-Id: I0e8aa2f5c44cb5b4142001954f4544c4157125c9
Fixes: #3236
(cherry picked from commit
b655234b2536533c7dd7a687b85f424c8ddfd5b1 )
Andrew Bays [Mon, 16 Sep 2019 18:08:09 +0000 (14:08 -0400)]
Use sstrncpy instead of strncpy in sysevent plugin
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ [Mon, 29 Jul 2019 07:54:27 +0000 (09:54 +0200)]
fix https://github.com/collectd/collectd/issues/3232
Change-Id: Idab2c4ffa242a73b651f1b056f85f905e356c5ac
(cherry picked from commit
d27bfc74e606290f191c04cdb4e2acc4d5e8d4a9 )
Macnamara, Chris [Tue, 27 Aug 2019 11:35:59 +0000 (12:35 +0100)]
Added ICX Xeon support model number.
Change-Id: I34ef3a2180a86e26d82c046a58e2862f3bc65cf5
Macnamara, Chris [Mon, 26 Aug 2019 11:16:54 +0000 (12:16 +0100)]
Changes for power reporting on SKX and CLX.
Change-Id: I2a6e9faebe616102904bcba4bc51e8e974a56408
TG, Hari [Fri, 13 Sep 2019 20:20:39 +0000 (13:20 -0700)]
Updated the CollectHealth and CollectPerfMetrics config value types to boolean.
Added error check for condition where both the above values are disabled.
Added root privilege required info to plugin description and error messages.
Signed-off-by: TG, Hari <hari.tg@intel.com>
Matthias Runge [Fri, 13 Sep 2019 18:44:36 +0000 (20:44 +0200)]
Merge pull request #3159 from rpv-tomsk/collectd-usercache
check_uptime: New plugin, based on new cache_event callback.
TG, Hari [Thu, 12 Sep 2019 20:25:49 +0000 (13:25 -0700)]
dcpmm plugin collects performance and health statistics from Intel Optane DC Presistent Memory (DCPMM).
Signed-off-by: TG, Hari <hari.tg@intel.com>
Andrew Bays [Tue, 10 Sep 2019 11:51:45 +0000 (07:51 -0400)]
Bump for ChangeLog re-check
Andrew Bays [Thu, 5 Sep 2019 13:39:44 +0000 (09:39 -0400)]
Fix AUTHORS
Andrew Bays [Wed, 4 Sep 2019 17:14:35 +0000 (13:14 -0400)]
Remove duplicate author entry
Andrew Bays [Fri, 14 Jun 2019 17:03:04 +0000 (13:03 -0400)]
clang formatting, again
Andrew Bays [Fri, 14 Jun 2019 17:01:59 +0000 (13:01 -0400)]
Bump CI for connectivity plugin
Andrew Bays [Mon, 5 Nov 2018 15:17:20 +0000 (10:17 -0500)]
More styling + ignorelist create check
Andrew Bays [Fri, 19 Oct 2018 14:05:44 +0000 (10:05 -0400)]
Handled interrupted socket reads
Andrew Bays [Wed, 17 Oct 2018 16:44:22 +0000 (12:44 -0400)]
Use a separate dequeue thread to dispatch notifications
Andrew Bays [Wed, 13 Dec 2017 17:21:57 +0000 (12:21 -0500)]
connectivity plugin initial commit
Andrew Bays [Mon, 17 Jun 2019 11:51:42 +0000 (07:51 -0400)]
Cast cdtime_t to unsigned long long when necessary
Andrew Bays [Mon, 17 Jun 2019 11:23:14 +0000 (07:23 -0400)]
Attempt to align with new util library locations
Andrew Bays [Fri, 14 Jun 2019 17:03:04 +0000 (13:03 -0400)]
clang formatting, again
Andrew Bays [Fri, 14 Jun 2019 17:01:59 +0000 (13:01 -0400)]
Bump CI for connectivity plugin
Andrew Bays [Fri, 9 Nov 2018 12:19:00 +0000 (07:19 -0500)]
Styling/optimization cleanup + proper use of cdtime
Andrew Bays [Tue, 6 Nov 2018 18:15:52 +0000 (13:15 -0500)]
use cdtime + snprintf cleanup + other styling/cleanup
Andrew Bays [Mon, 5 Nov 2018 15:17:20 +0000 (10:17 -0500)]
More styling + ignorelist create check
Andrew Bays [Fri, 19 Oct 2018 14:05:44 +0000 (10:05 -0400)]
Handled interrupted socket reads
Andrew Bays [Fri, 19 Oct 2018 12:10:49 +0000 (08:10 -0400)]
More styling + remove superfluous dequeue thread error logic
Andrew Bays [Thu, 18 Oct 2018 23:02:28 +0000 (19:02 -0400)]
octo code review changes
Andrew Bays [Wed, 17 Oct 2018 16:44:22 +0000 (12:44 -0400)]
Use a separate dequeue thread to dispatch notifications
Andrew Bays [Tue, 19 Jun 2018 15:20:31 +0000 (11:20 -0400)]
Add libmnl-devel req for connectivity
Andrew Bays [Tue, 19 Jun 2018 15:06:39 +0000 (11:06 -0400)]
Spec file typo fixes
Andrew Bays [Tue, 19 Jun 2018 14:56:09 +0000 (10:56 -0400)]
Connectivity RPM specfile
Andrew Bays [Thu, 8 Feb 2018 21:14:43 +0000 (16:14 -0500)]
Properly detect which interfaces to monitor
Andrew Bays [Thu, 8 Feb 2018 17:37:29 +0000 (12:37 -0500)]
Use ignorelist + malloc fix + conf clarification
Andrew Bays [Mon, 5 Feb 2018 16:52:54 +0000 (11:52 -0500)]
monitor all interfaces by default
Andrew Bays [Thu, 1 Feb 2018 20:13:15 +0000 (15:13 -0500)]
snake case for iface list + payload simplification
Andrew Bays [Tue, 23 Jan 2018 19:55:15 +0000 (14:55 -0500)]
Clarify wanted netlink interface msgs
Andrew Bays [Thu, 18 Jan 2018 14:20:11 +0000 (09:20 -0500)]
connectivity notifications
Andrew Bays [Wed, 13 Dec 2017 17:21:57 +0000 (12:21 -0500)]
connectivity plugin initial commit
Matthias Runge [Thu, 5 Sep 2019 13:00:31 +0000 (15:00 +0200)]
Merge remote-tracking branch 'abays/procevent'
Andrew Bays [Thu, 5 Sep 2019 12:25:25 +0000 (08:25 -0400)]
More clang formatting for unrelated plugin
Andrew Bays [Thu, 5 Sep 2019 12:23:31 +0000 (08:23 -0400)]
Another string formatting fix attempt
Andrew Bays [Thu, 5 Sep 2019 12:14:28 +0000 (08:14 -0400)]
Debian string formatting fix
Andrew Bays [Wed, 4 Sep 2019 19:51:51 +0000 (15:51 -0400)]
Fix merge conflicts