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

4 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'

4 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

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

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

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

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

4 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

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

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

4 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

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

4 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

4 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

4 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

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

4 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

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

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

4 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

4 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

4 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

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

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

4 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

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

4 years agoFix clang formatting in grpc.cc
Andrew Bays [Wed, 4 Sep 2019 17:18:21 +0000 (13:18 -0400)]
Fix clang formatting in grpc.cc

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

4 years agoFix merge conflicts
Andrew Bays [Wed, 4 Sep 2019 17:12:23 +0000 (13:12 -0400)]
Fix merge conflicts

4 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

4 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

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

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

4 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

4 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

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

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

4 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

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

4 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

4 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

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

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

4 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

4 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

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

4 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

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

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

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

4 years agoMerge pull request #2624 from abays/sysevent
Matthias Runge [Wed, 4 Sep 2019 13:07:51 +0000 (15:07 +0200)]
Merge pull request #2624 from abays/sysevent

Red Hat NFVPE Sysevent Plugin

4 years agoRemove extraneous debug information that trigger issue with size_t variable size
Benoit Plessis [Mon, 2 Sep 2019 09:02:27 +0000 (11:02 +0200)]
Remove extraneous debug information that trigger issue with size_t variable size

4 years agoname error in the lately added default value setting for bulk_size
Benoit Plessis [Mon, 2 Sep 2019 08:42:09 +0000 (10:42 +0200)]
name error in the lately added default value setting for bulk_size

4 years agoUse correct coding style
Benoit Plessis [Mon, 2 Sep 2019 08:35:03 +0000 (10:35 +0200)]
Use correct coding style

4 years agoAdd support for SNMP Bulk Transfert
Benoit Plessis [Mon, 2 Sep 2019 08:16:40 +0000 (10:16 +0200)]
Add support for SNMP Bulk Transfert

ChangeLog: snmp plugin: support for bulk transfert has been added.

As per issue #2495 we are experiencing so long collect time for switch with high number of port so i took a try at that.

This is the first attempt, it's working but i may not have seen every failure opportunities, i tried to be the less disruptive as possible.

This mostly modify the csnmp_read_table to switch over to 'GETBULK' PDUs if conditions are ok, and handle the extra return values with the same loop.

Comments are welcome

4 years agoMerge pull request #3261 from ffontaine/master
Matthias Runge [Thu, 22 Aug 2019 09:50:53 +0000 (11:50 +0200)]
Merge pull request #3261 from ffontaine/master

configure.ac: fix typo

4 years agoconfigure.ac: fix typo
Fabrice Fontaine [Wed, 21 Aug 2019 15:38:24 +0000 (17:38 +0200)]
configure.ac: fix typo

Remove double "without" added by
commit b7818712d46e9fbac7bd9dfe93dca936c101d680

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
4 years agoMerge pull request #3241 from ffontaine/master
Matthias Runge [Wed, 21 Aug 2019 09:15:57 +0000 (11:15 +0200)]
Merge pull request #3241 from ffontaine/master

configure.ac: fix activation of snmp_agent

4 years agoMerge pull request #3252 from rubenk/lgtm
Ruben Kerkhof [Thu, 15 Aug 2019 08:23:53 +0000 (10:23 +0200)]
Merge pull request #3252 from rubenk/lgtm

Fix a few issues found with LGTM

4 years agotreewide: fix a few missing include guards
Ruben Kerkhof [Tue, 13 Aug 2019 09:45:08 +0000 (11:45 +0200)]
treewide: fix a few missing include guards

found with LGTM

4 years agobrowser.js: declare a few vars used as locals
Ruben Kerkhof [Tue, 13 Aug 2019 09:44:47 +0000 (11:44 +0200)]
browser.js: declare a few vars used as locals

4 years agonetlink.c: remove always true comparison
Ruben Kerkhof [Tue, 13 Aug 2019 09:28:22 +0000 (11:28 +0200)]
netlink.c: remove always true comparison

Earlier in the function we check if fields_num >= 1

4 years agocommon.c: remove always true comparison
Ruben Kerkhof [Tue, 13 Aug 2019 09:26:50 +0000 (11:26 +0200)]
common.c: remove always true comparison

ntohs() returns an uint16_t, which is always less than 65535

4 years agocollection3: remove unused variable
Ruben Kerkhof [Tue, 13 Aug 2019 09:25:09 +0000 (11:25 +0200)]
collection3: remove unused variable

4 years agocollectd_network.py: remove unused import
Ruben Kerkhof [Tue, 13 Aug 2019 09:21:34 +0000 (11:21 +0200)]
collectd_network.py: remove unused import

4 years agoMerge pull request #3246 from jplitza/zfsarc-skip-lines
Ruben Kerkhof [Mon, 12 Aug 2019 07:47:19 +0000 (09:47 +0200)]
Merge pull request #3246 from jplitza/zfsarc-skip-lines

zfs_arc plugin: Fix skipping of leading lines

4 years agoMerge pull request #3239 from usev6/patch-1
Matthias Runge [Sat, 10 Aug 2019 12:58:40 +0000 (14:58 +0200)]
Merge pull request #3239 from usev6/patch-1

Fix indentation of some closing curlies

4 years agozfs_arc: Fix skipping of leading lines
Jan-Philipp Litza [Fri, 9 Aug 2019 20:06:56 +0000 (22:06 +0200)]
zfs_arc: Fix skipping of leading lines

Probably due to a merge gone wrong, the first two lines were skipped
twice, skipping four lines in total and thus missing the "hits" and
"misses" counts.

4 years agoMerge pull request #3245 from mrunge/rdt_fix
Matthias Runge [Fri, 9 Aug 2019 05:36:37 +0000 (07:36 +0200)]
Merge pull request #3245 from mrunge/rdt_fix

Fix compile time issues

4 years agoRDT-compile fix
Matthias Runge [Thu, 8 Aug 2019 14:45:34 +0000 (16:45 +0200)]
RDT-compile fix

include feedback from review, make the code easier.

Signed-off-by: Matthias Runge <mrunge@redhat.com>
4 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>
4 years agoconfigure.ac: fix activation of snmp_agent
Fabrice Fontaine [Tue, 6 Aug 2019 07:36:13 +0000 (09:36 +0200)]
configure.ac: fix activation of snmp_agent

If netsnmp library has been built without mib loading support (through
--disable-mib-loading), build of snmp_agent fails on:

src/snmp_agent.c: In function 'snmp_agent_get_asn_type':
src/snmp_agent.c:160:47: error: dereferencing pointer to incomplete type 'struct tree'
   return (node != NULL) ? mib_to_asn_type(node->type) : 0;

struct tree is defined in net-snmp/libray/parse.h which is included by
net-snmp/mib_api.h only if NETSNMP_DISABLE_MIB_LOADING is not set.

To fix this error, check for get_tree function in netsnmp library in
addition to init_agent in netsnmpagent library

Fixes:
 - http://autobuild.buildroot.org/results/6d7ac28f154f83208f949c62d28411855f1817f8

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
4 years agoMerge pull request #3237 from ccin2p3/f/temp-fix-ssnprintf
Matthias Runge [Tue, 6 Aug 2019 11:08:12 +0000 (13:08 +0200)]
Merge pull request #3237 from ccin2p3/f/temp-fix-ssnprintf

fix ssnprintf wrapper

4 years agoFix indentation of some closing curlies
Christian Bartolomäus [Wed, 31 Jul 2019 18:43:44 +0000 (20:43 +0200)]
Fix indentation of some closing curlies

4 years agoMerge pull request #3238 from ccin2p3/f/syslog-debug-level
anaudx [Tue, 30 Jul 2019 12:15:22 +0000 (14:15 +0200)]
Merge pull request #3238 from ccin2p3/f/syslog-debug-level

Don't fail if syslog loglevel doesn't match

4 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

4 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

4 years agoAdd Changelog for collectd-5.9.1
Matthias Runge [Wed, 24 Jul 2019 07:51:14 +0000 (09:51 +0200)]
Add Changelog for collectd-5.9.1

(cherry picked from commit 47f8966a2ea076a918d0d1383765621651337881)

4 years agoAuto-Merge pull request #3229 from mrunge/cppflags_backport
collectd bot [Wed, 24 Jul 2019 07:30:27 +0000 (09:30 +0200)]
Auto-Merge pull request #3229 from mrunge/cppflags_backport

Automatically merged due to "Automerge" label

4 years agoMerge pull request #3230 from ryan-mccabe/collectd-5.9
Matthias Runge [Wed, 24 Jul 2019 07:27:54 +0000 (09:27 +0200)]
Merge pull request #3230 from ryan-mccabe/collectd-5.9

Backport fixes for collectd#3225 to collectd-5.9

4 years agovirt plugin: Remove strdup() from MetadataXPath implementation
Pavel Rochnyack [Mon, 22 Jul 2019 17:10:56 +0000 (00:10 +0700)]
virt plugin: Remove strdup() from MetadataXPath implementation

Issue: #2805
Issue: #3225

4 years agovirt: Fix memory leak with libvirt MetadataXPath enabled
Pavel Rochnyack [Mon, 22 Jul 2019 16:45:18 +0000 (23:45 +0700)]
virt: Fix memory leak with libvirt MetadataXPath enabled

Issue: #3225

4 years agoAuto-Merge pull request #3228 from rpv-tomsk/issue-3215
collectd bot [Tue, 23 Jul 2019 14:16:15 +0000 (16:16 +0200)]
Auto-Merge pull request #3228 from rpv-tomsk/issue-3215

Automatically merged due to "Automerge" label

4 years agoFix bug that leads to CPPFLAGS gets overridden with CFLAGS when libxxms is enabled
Dagobert Michelsen [Mon, 8 Jul 2019 11:23:18 +0000 (13:23 +0200)]
Fix bug that leads to CPPFLAGS gets overridden with CFLAGS when libxxms is enabled

(cherry picked from commit e4c981472890655a5113d5b3bd643f62f19d0139)

4 years agoFix typo in src/network.c
Dagobert Michelsen [Tue, 23 Jul 2019 11:11:03 +0000 (13:11 +0200)]
Fix typo in src/network.c

(cherry picked from commit 262212d3e5db97743c9ff47897778a84049e4bae)

4 years agoMerge pull request #3207 from dago/cppflagsbugs
Matthias Runge [Tue, 23 Jul 2019 11:45:12 +0000 (13:45 +0200)]
Merge pull request #3207 from dago/cppflagsbugs

Fix bug that leads to CPPFLAGS gets overridden with CFLAGS when libxm…

4 years agoFix formatting in src/network.c
Dagobert Michelsen [Tue, 23 Jul 2019 11:19:51 +0000 (13:19 +0200)]
Fix formatting in src/network.c

4 years agoFix typo in src/network.c
Dagobert Michelsen [Tue, 23 Jul 2019 11:11:03 +0000 (13:11 +0200)]
Fix typo in src/network.c

4 years agovirt plugin: Remove strdup() from MetadataXPath implementation
Pavel Rochnyack [Mon, 22 Jul 2019 17:10:56 +0000 (00:10 +0700)]
virt plugin: Remove strdup() from MetadataXPath implementation

Issue: #2805
Issue: #3225

4 years agovirt: Fix memory leak with libvirt MetadataXPath enabled
Pavel Rochnyack [Mon, 22 Jul 2019 16:45:18 +0000 (23:45 +0700)]
virt: Fix memory leak with libvirt MetadataXPath enabled

Issue: #3225

4 years agoMerge pull request #3217 from rpv-tomsk/issue-3215
Matthias Runge [Mon, 22 Jul 2019 13:58:17 +0000 (15:58 +0200)]
Merge pull request #3217 from rpv-tomsk/issue-3215

daemon: Check if plugin actually loaded before reporting configuration issues

4 years agoMerge pull request #3202 from mrunge/collectd-5.9
Matthias Runge [Mon, 22 Jul 2019 06:46:13 +0000 (08:46 +0200)]
Merge pull request #3202 from mrunge/collectd-5.9

Collectd 5.9

4 years agoClang-format a few files to make CI happy
Matthias Runge [Fri, 19 Jul 2019 14:15:56 +0000 (16:15 +0200)]
Clang-format a few files to make CI happy

4 years agoAnother round of clang-format
Matthias Runge [Fri, 19 Jul 2019 13:04:32 +0000 (15:04 +0200)]
Another round of clang-format

related to backports/cherry-picks.

4 years agoRun all changed files 68 8.c/1*.h through format.sh web util
Zebity Spring [Thu, 16 May 2019 15:59:58 +0000 (01:59 +1000)]
Run all changed files 68 8.c/1*.h through format.sh web util

(cherry picked from commit 27ca3ca92a757b5c9bb3baa5a29ef352ec70b1c9)

4 years agoRun all changed files 68 8.c/1 *.h through clang-format agin..
Zebity Spring [Thu, 16 May 2019 14:26:35 +0000 (00:26 +1000)]
Run all changed files 68 8.c/1 *.h through clang-format agin..

(cherry picked from commit 626d3ab4309cdb069289354c45ca9e2ba9bc9a2f)

4 years agoRun all changed files 68 8.c/1*.h through clang-format
Zebity Spring [Thu, 16 May 2019 13:56:25 +0000 (23:56 +1000)]
Run all changed files 68 8.c/1*.h through clang-format

(cherry picked from commit eada465ff40eb2ecaef17490e5462dab3b8874fe)

4 years agoAdd snprintf wrapper for GCC 8.2/3
Zebity Spring [Mon, 13 May 2019 13:19:22 +0000 (23:19 +1000)]
Add snprintf wrapper for GCC 8.2/3

(cherry picked from commit abaa1c8a24e8eff5632dd6052b1da5f6535caf19)

4 years agodaemon: Recover setlocale() call in src/daemon/collectd.c do_init()
Pavel Rochnyack [Fri, 12 Jul 2019 12:35:23 +0000 (19:35 +0700)]
daemon: Recover setlocale() call in src/daemon/collectd.c do_init()

865f2eb31e8264edd9337bc63ac59f6c2fa3b5a7 breaks locale checks

Issue: #3181
(cherry picked from commit 38fac5d5579b952f9546623f39cdbcae89a6f090)

4 years agodisk.c: remove unused lines
Pavel Rochnyack [Fri, 12 Jul 2019 12:07:39 +0000 (19:07 +0700)]
disk.c: remove unused lines

limits.h check removed in 865f2eb31e8264edd9337bc63ac59f6c2fa3b5a7
limits.h included in src/daemon/collectd.h unconditionally

Issue: #3181
(cherry picked from commit d99416997de1c4d9e676960719327a52a364f605)