collectd.git
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 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 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
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 #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 agoStop installing libstatgrab
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
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 agoMerge pull request #3299 from mrunge/master
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

5 years agoMerge pull request #3291 from dago/issue3220
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()

5 years agoMerge tag 'collectd-5.9.2'
Matthias Runge [Wed, 9 Oct 2019 12:41:47 +0000 (14:41 +0200)]
Merge tag 'collectd-5.9.2'

5 years agoMerge pull request #3298 from rubenk/contextswitch-nosysctl-h
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

5 years agoOnly 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.

5 years agoexec: fix a race condition when setting environment variables
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

5 years agoLink to libnsl.so if needed for inet_ntop()
Dagobert Michelsen [Tue, 1 Oct 2019 12:34:43 +0000 (14:34 +0200)]
Link to libnsl.so if needed for inet_ntop()

5 years agoAdd 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

5 years agoMerge pull request #3247 from jplitza/fix-2843
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

5 years agozfs_arc: 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

5 years agoAuto-Merge pull request #3286 from mrunge/master
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

5 years agoMerge pull request #3288 from usev6/mysql_wsrepstats_doc
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

5 years agomysql plugin: Fix typo in documentation
usev6 [Fri, 20 Sep 2019 20:26:40 +0000 (22:26 +0200)]
mysql plugin: Fix typo in documentation

5 years agomysql plugin: Tweak docs for WsrepStats option
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.

5 years agoFix typo in src/java.c
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

5 years agoMerge pull request #2622 from abays/connectivity
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

5 years agoMerge branch 'master' into connectivity
Andrew Bays [Wed, 18 Sep 2019 12:31:32 +0000 (08:31 -0400)]
Merge branch 'master' into connectivity

5 years agoMerge pull request #3282 from abays/sysevent
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

5 years agoCheck for sysevent plugin init calloc failures
Andrew Bays [Wed, 18 Sep 2019 11:45:48 +0000 (07:45 -0400)]
Check for sysevent plugin init calloc failures

5 years agoMerge pull request #3280 from mrunge/collectd-5.9
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

5 years agoMerge pull request #3276 from chrismcn/upstream_turbostat
Matthias Runge [Tue, 17 Sep 2019 12:04:41 +0000 (14:04 +0200)]
Merge pull request #3276 from chrismcn/upstream_turbostat

Upstream turbostat

5 years agoMerge pull request #3277 from abays/sysevent
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

5 years agoFix compile time issues
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)

5 years agoDon't fail if syslog loglevel doesn't match
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)

5 years agoUse sstrncpy instead of strncpy in sysevent plugin
Andrew Bays [Mon, 16 Sep 2019 18:08:09 +0000 (14:08 -0400)]
Use sstrncpy instead of strncpy in sysevent plugin

5 years agofix https://github.com/collectd/collectd/issues/3232
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)

5 years agoAdded ICX Xeon support model number.
Macnamara, Chris [Tue, 27 Aug 2019 11:35:59 +0000 (12:35 +0100)]
Added ICX Xeon support model number.

Change-Id: I34ef3a2180a86e26d82c046a58e2862f3bc65cf5

5 years agoChanges for power reporting on SKX and CLX.
Macnamara, Chris [Mon, 26 Aug 2019 11:16:54 +0000 (12:16 +0100)]
Changes for power reporting on SKX and CLX.

Change-Id: I2a6e9faebe616102904bcba4bc51e8e974a56408

5 years agoMerge pull request #3159 from rpv-tomsk/collectd-usercache
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.

5 years agoBump for ChangeLog re-check
Andrew Bays [Tue, 10 Sep 2019 11:51:45 +0000 (07:51 -0400)]
Bump for ChangeLog re-check

5 years agoFix AUTHORS
Andrew Bays [Thu, 5 Sep 2019 13:39:44 +0000 (09:39 -0400)]
Fix AUTHORS

5 years agoRemove duplicate author entry
Andrew Bays [Wed, 4 Sep 2019 17:14:35 +0000 (13:14 -0400)]
Remove duplicate author entry

5 years agoclang formatting, again
Andrew Bays [Fri, 14 Jun 2019 17:03:04 +0000 (13:03 -0400)]
clang formatting, again

5 years agoBump CI for connectivity plugin
Andrew Bays [Fri, 14 Jun 2019 17:01:59 +0000 (13:01 -0400)]
Bump CI for connectivity plugin

5 years agoMore styling + ignorelist create check
Andrew Bays [Mon, 5 Nov 2018 15:17:20 +0000 (10:17 -0500)]
More styling + ignorelist create check

5 years agoHandled interrupted socket reads
Andrew Bays [Fri, 19 Oct 2018 14:05:44 +0000 (10:05 -0400)]
Handled interrupted socket reads

5 years agoUse a separate dequeue thread to dispatch notifications
Andrew Bays [Wed, 17 Oct 2018 16:44:22 +0000 (12:44 -0400)]
Use a separate dequeue thread to dispatch notifications

5 years agoconnectivity plugin initial commit
Andrew Bays [Wed, 13 Dec 2017 17:21:57 +0000 (12:21 -0500)]
connectivity plugin initial commit

5 years agoCast cdtime_t to unsigned long long when necessary
Andrew Bays [Mon, 17 Jun 2019 11:51:42 +0000 (07:51 -0400)]
Cast cdtime_t to unsigned long long when necessary

5 years agoAttempt to align with new util library locations
Andrew Bays [Mon, 17 Jun 2019 11:23:14 +0000 (07:23 -0400)]
Attempt to align with new util library locations

5 years agoclang formatting, again
Andrew Bays [Fri, 14 Jun 2019 17:03:04 +0000 (13:03 -0400)]
clang formatting, again

5 years agoBump CI for connectivity plugin
Andrew Bays [Fri, 14 Jun 2019 17:01:59 +0000 (13:01 -0400)]
Bump CI for connectivity plugin

5 years agoStyling/optimization cleanup + proper use of cdtime
Andrew Bays [Fri, 9 Nov 2018 12:19:00 +0000 (07:19 -0500)]
Styling/optimization cleanup + proper use of cdtime

5 years agouse cdtime + snprintf cleanup + other styling/cleanup
Andrew Bays [Tue, 6 Nov 2018 18:15:52 +0000 (13:15 -0500)]
use cdtime + snprintf cleanup + other styling/cleanup

5 years agoMore styling + ignorelist create check
Andrew Bays [Mon, 5 Nov 2018 15:17:20 +0000 (10:17 -0500)]
More styling + ignorelist create check

5 years agoHandled interrupted socket reads
Andrew Bays [Fri, 19 Oct 2018 14:05:44 +0000 (10:05 -0400)]
Handled interrupted socket reads

5 years agoMore styling + remove superfluous dequeue thread error logic
Andrew Bays [Fri, 19 Oct 2018 12:10:49 +0000 (08:10 -0400)]
More styling + remove superfluous dequeue thread error logic

5 years agoocto code review changes
Andrew Bays [Thu, 18 Oct 2018 23:02:28 +0000 (19:02 -0400)]
octo code review changes

5 years agoUse a separate dequeue thread to dispatch notifications
Andrew Bays [Wed, 17 Oct 2018 16:44:22 +0000 (12:44 -0400)]
Use a separate dequeue thread to dispatch notifications

5 years agoAdd libmnl-devel req for connectivity
Andrew Bays [Tue, 19 Jun 2018 15:20:31 +0000 (11:20 -0400)]
Add libmnl-devel req for connectivity

5 years agoSpec file typo fixes
Andrew Bays [Tue, 19 Jun 2018 15:06:39 +0000 (11:06 -0400)]
Spec file typo fixes

5 years agoConnectivity RPM specfile
Andrew Bays [Tue, 19 Jun 2018 14:56:09 +0000 (10:56 -0400)]
Connectivity RPM specfile

5 years agoProperly detect which interfaces to monitor
Andrew Bays [Thu, 8 Feb 2018 21:14:43 +0000 (16:14 -0500)]
Properly detect which interfaces to monitor

5 years agoUse ignorelist + malloc fix + conf clarification
Andrew Bays [Thu, 8 Feb 2018 17:37:29 +0000 (12:37 -0500)]
Use ignorelist + malloc fix + conf clarification

5 years agomonitor all interfaces by default
Andrew Bays [Mon, 5 Feb 2018 16:52:54 +0000 (11:52 -0500)]
monitor all interfaces by default

5 years agosnake case for iface list + payload simplification
Andrew Bays [Thu, 1 Feb 2018 20:13:15 +0000 (15:13 -0500)]
snake case for iface list + payload simplification

5 years agoClarify wanted netlink interface msgs
Andrew Bays [Tue, 23 Jan 2018 19:55:15 +0000 (14:55 -0500)]
Clarify wanted netlink interface msgs

5 years agoconnectivity notifications
Andrew Bays [Thu, 18 Jan 2018 14:20:11 +0000 (09:20 -0500)]
connectivity notifications

5 years agoconnectivity plugin initial commit
Andrew Bays [Wed, 13 Dec 2017 17:21:57 +0000 (12:21 -0500)]
connectivity plugin initial commit

5 years agoMerge remote-tracking branch 'abays/procevent'
Matthias Runge [Thu, 5 Sep 2019 13:00:31 +0000 (15:00 +0200)]
Merge remote-tracking branch 'abays/procevent'

5 years agoMore clang formatting for unrelated plugin
Andrew Bays [Thu, 5 Sep 2019 12:25:25 +0000 (08:25 -0400)]
More clang formatting for unrelated plugin

5 years agoAnother string formatting fix attempt
Andrew Bays [Thu, 5 Sep 2019 12:23:31 +0000 (08:23 -0400)]
Another string formatting fix attempt

5 years agoDebian string formatting fix
Andrew Bays [Thu, 5 Sep 2019 12:14:28 +0000 (08:14 -0400)]
Debian string formatting fix

5 years agoFix merge conflicts
Andrew Bays [Wed, 4 Sep 2019 19:51:51 +0000 (15:51 -0400)]
Fix merge conflicts

5 years agoclang formatting
Andrew Bays [Tue, 18 Jun 2019 16:29:47 +0000 (12:29 -0400)]
clang formatting

5 years agoAlign with new util library locations
Andrew Bays [Tue, 18 Jun 2019 16:29:03 +0000 (12:29 -0400)]
Align with new util library locations

5 years agoStyling + optimizations
Andrew Bays [Tue, 13 Nov 2018 15:04:19 +0000 (10:04 -0500)]
Styling + optimizations

5 years agoHandled interrupted socket reads
Andrew Bays [Fri, 19 Oct 2018 14:05:30 +0000 (10:05 -0400)]
Handled interrupted socket reads

5 years agoMore styling + remove superfluous dequeue thread error logic
Andrew Bays [Fri, 19 Oct 2018 12:11:10 +0000 (08:11 -0400)]
More styling + remove superfluous dequeue thread error logic

5 years agoAdditional mutex + styling changes
Andrew Bays [Thu, 18 Oct 2018 23:11:27 +0000 (19:11 -0400)]
Additional mutex + styling changes

5 years agoUse a separate dequeue thread to dispatch notifications
Andrew Bays [Wed, 17 Oct 2018 14:20:39 +0000 (10:20 -0400)]
Use a separate dequeue thread to dispatch notifications

5 years agoRemove types.db entry and change RegexProcess conf option name
Andrew Bays [Mon, 15 Oct 2018 17:47:17 +0000 (13:47 -0400)]
Remove types.db entry and change RegexProcess conf option name

5 years agoUse long type for most PID values
Andrew Bays [Fri, 12 Oct 2018 18:10:32 +0000 (14:10 -0400)]
Use long type for most PID values

5 years agoclang formatting
Andrew Bays [Fri, 12 Oct 2018 17:48:47 +0000 (13:48 -0400)]
clang formatting

5 years agoDrain netlink socket before sleeping, then filter repeated process start msgs
Andrew Bays [Fri, 12 Oct 2018 17:47:43 +0000 (13:47 -0400)]
Drain netlink socket before sleeping, then filter repeated process start msgs

5 years agoProcevent RPM specfile
Andrew Bays [Tue, 19 Jun 2018 15:23:01 +0000 (11:23 -0400)]
Procevent RPM specfile

5 years agoCheck ignorelist during init
Andrew Bays [Tue, 27 Mar 2018 14:06:18 +0000 (10:06 -0400)]
Check ignorelist during init

5 years agoFix mutex lock in read_event
Andrew Bays [Fri, 23 Mar 2018 11:08:55 +0000 (07:08 -0400)]
Fix mutex lock in read_event

5 years agoUse ignorelist_t and fix leaks
Andrew Bays [Tue, 13 Feb 2018 17:44:21 +0000 (12:44 -0500)]
Use ignorelist_t and fix leaks

5 years agopayload logic clean-up + leak fixes
Andrew Bays [Mon, 5 Feb 2018 20:39:22 +0000 (15:39 -0500)]
payload logic clean-up + leak fixes

5 years agoClarify wanted netlink proc msgs
Andrew Bays [Tue, 23 Jan 2018 19:19:07 +0000 (14:19 -0500)]
Clarify wanted netlink proc msgs

5 years agoProcevent plugin notifications
Andrew Bays [Thu, 11 Jan 2018 21:00:19 +0000 (16:00 -0500)]
Procevent plugin notifications

5 years agocheck fscanf return value in process_check
Andrew Bays [Wed, 13 Dec 2017 17:50:13 +0000 (12:50 -0500)]
check fscanf return value in process_check

5 years agoprocevent plugin initial commit
Andrew Bays [Wed, 13 Dec 2017 14:39:59 +0000 (09:39 -0500)]
procevent plugin initial commit