]> git.ipfire.org Git - thirdparty/collectd.git/log
thirdparty/collectd.git
3 years agoMerge pull request #3573 from octo/ci/buster coverity_scan
Matthias Runge [Tue, 15 Sep 2020 08:58:13 +0000 (10:58 +0200)] 
Merge pull request #3573 from octo/ci/buster

.cirrus.yml: Add Debian Buster.

3 years agoMerge pull request #3571 from carlospeon/buffer
Florian Forster [Tue, 15 Sep 2020 06:06:08 +0000 (08:06 +0200)] 
Merge pull request #3571 from carlospeon/buffer

write_influx_udp: build influxdb points outside de mutex.

3 years ago.cirrus.yml: Add Debian Buster. 3573/head
Florian Forster [Mon, 14 Sep 2020 06:36:40 +0000 (08:36 +0200)] 
.cirrus.yml: Add Debian Buster.

3 years agoMerge branch 'collectd-5.12' into main
Florian Forster [Mon, 14 Sep 2020 07:54:48 +0000 (09:54 +0200)] 
Merge branch 'collectd-5.12' into main

3 years ago* Build influxdb points outside de mutex. 3571/head
carlospeon [Thu, 18 Jun 2020 18:01:16 +0000 (20:01 +0200)] 
* Build influxdb points outside de mutex.
* listen_loop cleanup.

3 years agoMerge pull request #3569 from ffontaine/main
Matthias Runge [Mon, 7 Sep 2020 09:40:31 +0000 (11:40 +0200)] 
Merge pull request #3569 from ffontaine/main

src/netlink.c: remove REG_NOERROR

3 years agosrc/netlink.c: remove REG_NOERROR 3569/head
Fabrice Fontaine [Sun, 6 Sep 2020 12:17:23 +0000 (14:17 +0200)] 
src/netlink.c: remove REG_NOERROR

REG_NOERROR is used since version 5.12.0 and
https://github.com/collectd/collectd/commit/f7fd32e5209e188db7985a42054252fc4cbfe7c1

However, REG_NOERROR is not defined by musl, even GNU regex do not
mention REG_NOERROR, so just remove it to avoid the following build
failure:

src/netlink.c: In function 'check_ignorelist':
src/netlink.c:243:51: error: 'REG_NOERROR' undeclared (first use in this function); did you mean 'REG_NOTBOL'?
       if (regexec(i->rdevice, dev, 0, NULL, 0) != REG_NOERROR)
                                                   ^~~~~~~~~~~
                                                   REG_NOTBOL

Fixes:
 - http://autobuild.buildroot.org/results/cd4d75888b5259b028132dd224be34f69bcbb702

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3 years agoMerge pull request #3567 from octo/cleanfiles_types_grpc collectd-5.12.0
Matthias Runge [Thu, 3 Sep 2020 14:41:29 +0000 (16:41 +0200)] 
Merge pull request #3567 from octo/cleanfiles_types_grpc

Makefile.am: Add types.grpc.pb.{cc,h} to CLEANFILES.

3 years agoMakefile.am: Add types.grpc.pb.{cc,h} to CLEANFILES. 3567/head
Florian Forster [Thu, 3 Sep 2020 14:03:50 +0000 (16:03 +0200)] 
Makefile.am: Add types.grpc.pb.{cc,h} to CLEANFILES.

3 years agoMerge pull request #3566 from octo/test_plugin_intel_rdt
Florian Forster [Thu, 3 Sep 2020 12:07:30 +0000 (14:07 +0200)] 
Merge pull request #3566 from octo/test_plugin_intel_rdt

Makefile.am: Link test_plugin_intel_rdt with libpqos.

3 years agoMakefile.am: Link test_plugin_intel_rdt with libpqos. 3566/head
Florian Forster [Thu, 3 Sep 2020 11:41:28 +0000 (13:41 +0200)] 
Makefile.am: Link test_plugin_intel_rdt with libpqos.

3 years agoMerge pull request #3565 from kwiatrox/release_5_12_kw
Florian Forster [Thu, 3 Sep 2020 11:25:41 +0000 (13:25 +0200)] 
Merge pull request #3565 from kwiatrox/release_5_12_kw

Update changelog and version number for release 5.12.

3 years agoUpdate changelog and version number for release 5.12. 3565/head
Kamil Wiatrowski [Thu, 3 Sep 2020 09:33:44 +0000 (10:33 +0100)] 
Update changelog and version number for release 5.12.

Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agoMerge pull request #3564 from octo/snmp_agent
Florian Forster [Thu, 3 Sep 2020 07:38:44 +0000 (09:38 +0200)] 
Merge pull request #3564 from octo/snmp_agent

snmp_agent plugin: Fix strncat() truncation warning.

3 years agosnmp_agent plugin: Fix strncat() truncation warning. 3564/head
Florian Forster [Thu, 3 Sep 2020 07:11:07 +0000 (09:11 +0200)] 
snmp_agent plugin: Fix strncat() truncation warning.

Fixes:

```
src/snmp_agent.c:965:9: error: ‘strncat’ output may be truncated copying between 0 and 127 bytes from a string of length 127 [-Werror=stringop-truncation]
         strncat(out, str, DATA_MAX_NAME_LEN - strlen(out) - 1);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

3 years agoMerge pull request #2470 from dothebart/curl_jolokia_2
Florian Forster [Mon, 17 Aug 2020 15:27:50 +0000 (17:27 +0200)] 
Merge pull request #2470 from dothebart/curl_jolokia_2

Add client interface for the jolokia.org JMX client.

3 years agoMerge pull request #3560 from mrunge/inclusive_lang
Florian Forster [Wed, 2 Sep 2020 08:31:55 +0000 (10:31 +0200)] 
Merge pull request #3560 from mrunge/inclusive_lang

Rewrite problematic language where possible

3 years agoDo not change counter/gauge names for now 3560/head
Matthias Runge [Wed, 2 Sep 2020 06:09:18 +0000 (08:09 +0200)] 
Do not change counter/gauge names for now

This is a change to be committed for 6.0.

3 years agoReplace master/slave with primary/replica.
Matthias Runge [Tue, 1 Sep 2020 16:19:36 +0000 (18:19 +0200)] 
Replace master/slave with primary/replica.

For now, I did not change the configuration for the mysql plugin.

3 years agoReplace deny-list with blocklist and strip dashes
Matthias Runge [Tue, 1 Sep 2020 15:58:34 +0000 (17:58 +0200)] 
Replace deny-list with blocklist and strip dashes

3 years agoRewrite problematic language where possible
Matthias Runge [Tue, 1 Sep 2020 15:25:47 +0000 (17:25 +0200)] 
Rewrite problematic language where possible

This patch leaves out rewrite master/slave from mysql and also
master from snmp.

3 years agoMerge pull request #3558 from octo/solaris/signed-char
Florian Forster [Tue, 1 Sep 2020 12:23:59 +0000 (14:23 +0200)] 
Merge pull request #3558 from octo/solaris/signed-char

libcollectdclient: Don't initialize a char with 0xF8.

3 years agoMerge pull request #3555 from octo/ci/remove-jessie
Matthias Runge [Tue, 1 Sep 2020 10:00:45 +0000 (12:00 +0200)] 
Merge pull request #3555 from octo/ci/remove-jessie

.cirrus.yml: Remove Debian Jessie.

3 years agolibcollectdclient: Don't initialize a char with 0xF8. 3558/head
Florian Forster [Tue, 1 Sep 2020 09:00:14 +0000 (11:00 +0200)] 
libcollectdclient: Don't initialize a char with 0xF8.

Fixes the following warning:

```
"src/libcollectdclient/network_parse.c", line 261: warning: initializer does not fit or is out of range: 248
```

3 years ago.cirrus.yml: Remove Debian Jessie. 3555/head
Florian Forster [Tue, 1 Sep 2020 08:41:43 +0000 (10:41 +0200)] 
.cirrus.yml: Remove Debian Jessie.

Regular support for Jessie ended in 2018, LTS in June 2020.

3 years agoMerge pull request #3549 from octo/infiniband-build
Matthias Runge [Mon, 31 Aug 2020 14:33:50 +0000 (16:33 +0200)] 
Merge pull request #3549 from octo/infiniband-build

Makefile.am: Remove undefined symbol "BUILD_WITH_INFINIBAND_LIBS".

3 years agoMerge pull request #3552 from octo/merge-511-512
Matthias Runge [Mon, 31 Aug 2020 14:29:15 +0000 (16:29 +0200)] 
Merge pull request #3552 from octo/merge-511-512

Merge 5.11 into 5.12

3 years agoMerge branch 'collectd-5.11' into merge-511-512 3552/head
Florian Forster [Mon, 31 Aug 2020 14:07:15 +0000 (16:07 +0200)] 
Merge branch 'collectd-5.11' into merge-511-512

3 years agoMerge pull request #3548 from Self-Perfection/mariadb_10.05_compatibility
Florian Forster [Sun, 30 Aug 2020 16:32:54 +0000 (18:32 +0200)] 
Merge pull request #3548 from Self-Perfection/mariadb_10.05_compatibility

mysql: Compatibility with MariaDB >= 10.5

3 years agoMerge pull request #3543 from dago/fix-network-test
Dagobert Michelsen [Sun, 30 Aug 2020 12:35:58 +0000 (14:35 +0200)] 
Merge pull request #3543 from dago/fix-network-test

Fix network test

3 years agonetwork plugin: Simplify initialization of sockent_t. 3543/head
Florian Forster [Sun, 30 Aug 2020 07:19:39 +0000 (09:19 +0200)] 
network plugin: Simplify initialization of sockent_t.

3 years agoMakefile.am: Remove undefined symbol "BUILD_WITH_INFINIBAND_LIBS". 3549/head
Florian Forster [Sun, 30 Aug 2020 06:41:37 +0000 (08:41 +0200)] 
Makefile.am: Remove undefined symbol "BUILD_WITH_INFINIBAND_LIBS".

3 years agoinfiniband: fix build
Luke Yeager [Mon, 10 Aug 2020 17:07:09 +0000 (10:07 -0700)] 
infiniband: fix build

3 years agoFix memory leak in curl plugin
Barbara Kaczorowska [Fri, 28 Aug 2020 10:20:26 +0000 (10:20 +0000)] 
Fix memory leak in curl plugin

This commit will add the patch that fixes the memory leak in curl
plugin. Before when AddressFamily field was set in config file in
variable af was pointer to value of this field and it wasn't freed at
the end. Now this bug is fixed.

3 years agomysql: Compatibility with MariaDB >= 10.5 3548/head
Self-Perfection [Sat, 29 Aug 2020 19:46:21 +0000 (22:46 +0300)] 
mysql: Compatibility with MariaDB >= 10.5

In MariaDB 10.5 information_schema.innodb_metrics was cleaned:
https://github.com/MariaDB/server/commit/d09aec7a15ab4be539d2b110742af544fa6b139f

String column 'status' was replaced with boolean column 'enabled'.

Therefore we need to modify request for fetching data from that table.

Fixes #3533

3 years agoMerge pull request #3547 from bkjg/fix-leaks-curl
Kamil Wiatrowski [Fri, 28 Aug 2020 13:20:53 +0000 (15:20 +0200)] 
Merge pull request #3547 from bkjg/fix-leaks-curl

Fix memory leak in curl plugin

3 years agoFix memory leak in curl plugin 3547/head
Barbara Kaczorowska [Fri, 28 Aug 2020 10:20:26 +0000 (10:20 +0000)] 
Fix memory leak in curl plugin

This commit will add the patch that fixes the memory leak in curl
plugin. Before when AddressFamily field was set in config file in
variable af was pointer to value of this field and it wasn't freed at
the end. Now this bug is fixed.

3 years agoEmpty initializer when gcrypt is absent produces compile error with Sun Studio
Dagobert Michelsen [Thu, 27 Aug 2020 11:52:11 +0000 (13:52 +0200)] 
Empty initializer when gcrypt is absent produces compile error with Sun Studio

3 years agoMerge pull request #3516 from lukeyeager/fix-ib-build
sranga4 [Wed, 26 Aug 2020 15:21:26 +0000 (08:21 -0700)] 
Merge pull request #3516 from lukeyeager/fix-ib-build

infiniband: fix build

3 years agoMerge pull request #3536 from yath/dupcase
Florian Forster [Fri, 21 Aug 2020 10:08:09 +0000 (12:08 +0200)] 
Merge pull request #3536 from yath/dupcase

Remove duplicate switch case.

3 years agoRemove duplicate switch case. 3536/head
Sebastian Schmidt [Fri, 21 Aug 2020 09:02:18 +0000 (11:02 +0200)] 
Remove duplicate switch case.

The empty 'f' case probably used to be wrapped in its own #if
COLLECT_DAEMON, but that apparently somehow got lost and gcc 9.3
complains about the duplicate case. Therefore, just wrap the
config->daemonize assignment into #if/#endif, like for the other cases.

ChangeLog: collectd: Build fix

3 years agoMerge pull request #2470 from dothebart/curl_jolokia_2 master
Florian Forster [Mon, 17 Aug 2020 15:27:50 +0000 (17:27 +0200)] 
Merge pull request #2470 from dothebart/curl_jolokia_2

Add client interface for the jolokia.org JMX client.

3 years agodaemon: Use EXIT_SUCCESS and EXIT_FAILURE when calling exit_usage().
Florian Forster [Mon, 17 Aug 2020 15:16:46 +0000 (17:16 +0200)] 
daemon: Use EXIT_SUCCESS and EXIT_FAILURE when calling exit_usage().

3 years agodaemon: Accept the same command line arguments, even when compiled with --disable...
Florian Forster [Mon, 17 Aug 2020 15:16:11 +0000 (17:16 +0200)] 
daemon: Accept the same command line arguments, even when compiled with --disable-daemon.

3 years agoIgnore -f when compiled with --disable-daemon
Rodion Vynnychenko [Tue, 10 Feb 2015 12:02:51 +0000 (14:02 +0200)] 
Ignore -f when compiled with --disable-daemon

3 years agoMerge pull request #3520 from octo/contributing
Matthias Runge [Mon, 17 Aug 2020 14:13:48 +0000 (16:13 +0200)] 
Merge pull request #3520 from octo/contributing

docs/CONTRIBUTING.md: Rename "master" to "main".

3 years agodocs/CONTRIBUTING.md: Rename "master" to "main". 3520/head
Florian Forster [Thu, 13 Aug 2020 07:19:55 +0000 (09:19 +0200)] 
docs/CONTRIBUTING.md: Rename "master" to "main".

3 years agoMerge pull request #3518 from pllopis/slurm2002
NikolayTsvetkov [Wed, 12 Aug 2020 11:56:26 +0000 (13:56 +0200)] 
Merge pull request #3518 from pllopis/slurm2002

slurm: compatibility with Slurm >= 20.02

3 years agoslurm: compatibility with Slurm >= 20.02 3518/head
Pablo Llopis [Wed, 12 Aug 2020 09:20:32 +0000 (11:20 +0200)] 
slurm: compatibility with Slurm >= 20.02

3 years agoinfiniband: fix build 3516/head
Luke Yeager [Mon, 10 Aug 2020 17:07:09 +0000 (10:07 -0700)] 
infiniband: fix build

3 years agoMerge pull request #3499 from efuss/netbsd-memory
Matthias Runge [Wed, 5 Aug 2020 06:24:28 +0000 (08:24 +0200)] 
Merge pull request #3499 from efuss/netbsd-memory

Add memory plugin implementation for NetBSD

3 years agoMerge pull request #3487 from kwiatrox/netlink_vf_stats
sranga4 [Fri, 31 Jul 2020 13:48:18 +0000 (06:48 -0700)] 
Merge pull request #3487 from kwiatrox/netlink_vf_stats

Netlink plugin: add option to read VF stats

3 years agoMerge pull request #3476 from ChristianTacke/pr/coll3_types
sranga4 [Thu, 30 Jul 2020 16:06:57 +0000 (09:06 -0700)] 
Merge pull request #3476 from ChristianTacke/pr/coll3_types

collection3: Show instance for Current/Voltage

3 years agoMerge pull request #3497 from efuss/netbsd-entropy
sranga4 [Thu, 30 Jul 2020 15:57:49 +0000 (08:57 -0700)] 
Merge pull request #3497 from efuss/netbsd-entropy

Add entropy plugin implementation for NetBSD

3 years agoMerge pull request #3500 from efuss/netbsd-processes
sranga4 [Thu, 30 Jul 2020 15:55:01 +0000 (08:55 -0700)] 
Merge pull request #3500 from efuss/netbsd-processes

Add processes plugin implementation for NetBSD

3 years agoMerge pull request #3498 from efuss/netbsd-irq
sranga4 [Thu, 30 Jul 2020 15:49:08 +0000 (08:49 -0700)] 
Merge pull request #3498 from efuss/netbsd-irq

Add irq plugin implementation for NetBSD

3 years agoMerge pull request #3496 from efuss/netbsd-cpu
Matthias Runge [Thu, 30 Jul 2020 15:04:34 +0000 (17:04 +0200)] 
Merge pull request #3496 from efuss/netbsd-cpu

Add cpu plugin implementation for NetBSD

3 years agoMerge pull request #3495 from efuss/netbsd-nfs2
Matthias Runge [Thu, 30 Jul 2020 15:02:34 +0000 (17:02 +0200)] 
Merge pull request #3495 from efuss/netbsd-nfs2

Fix nfs plugin implementation for NetBSD

3 years agoMerge pull request #3504 from efuss/snmp_count
Matthias Runge [Thu, 30 Jul 2020 15:01:07 +0000 (17:01 +0200)] 
Merge pull request #3504 from efuss/snmp_count

Add a Count option to snmp plugin

3 years agonetlink plugin: additional chck for older netlink (kernel) versions 3487/head
Kamil Wiatrowski [Tue, 28 Jul 2020 13:13:30 +0000 (14:13 +0100)] 
netlink plugin: additional chck for older netlink (kernel) versions

Add a safe check if VF statistics are supported by netlink.

Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agoMerge pull request #3494 from lukeyeager/infiniband
sranga4 [Mon, 27 Jul 2020 17:11:25 +0000 (10:11 -0700)] 
Merge pull request #3494 from lukeyeager/infiniband

New plugin: infiniband

3 years agoinfiniband: replace hard-coded constant with variable 3494/head
Luke Yeager [Mon, 27 Jul 2020 16:15:56 +0000 (09:15 -0700)] 
infiniband: replace hard-coded constant with variable

3 years agoinfiniband: revert the merge of ib_lid and ib_sm_lid
Luke Yeager [Fri, 24 Jul 2020 22:33:57 +0000 (15:33 -0700)] 
infiniband: revert the merge of ib_lid and ib_sm_lid

3 years agoMerge pull request #3514 from bzed/write_prometheus_lmhttpd
Matthias Runge [Fri, 24 Jul 2020 10:03:32 +0000 (12:03 +0200)] 
Merge pull request #3514 from bzed/write_prometheus_lmhttpd

w_prometheus: fix libmicrohttpd api change

3 years agoRun contrib/format.sh src/write_prometheus.c. 3514/head
Bernd Zeimetz [Fri, 24 Jul 2020 09:29:14 +0000 (11:29 +0200)] 
Run contrib/format.sh src/write_prometheus.c.

Fixing things I did not touch.

3 years agow_prometheus: fix libmicrohttpd api change
Bernd Zeimetz [Fri, 24 Jul 2020 08:57:28 +0000 (10:57 +0200)] 
w_prometheus: fix libmicrohttpd api change

Closes #3511

3 years agoinfiniband: run clang-format
Luke Yeager [Thu, 23 Jul 2020 21:05:28 +0000 (14:05 -0700)] 
infiniband: run clang-format

3 years agoinfiniband: add more comments to define each attribute
Luke Yeager [Thu, 23 Jul 2020 20:59:21 +0000 (13:59 -0700)] 
infiniband: add more comments to define each attribute

3 years agoinfiniband: consolidate ib_sm_lid and ib_lid
Luke Yeager [Thu, 23 Jul 2020 20:49:14 +0000 (13:49 -0700)] 
infiniband: consolidate ib_sm_lid and ib_lid

ib_sm_lid becomes type="ib_lid", type_instance="sm"

3 years agoinfiniband: constrain the range of GAUGE types more closely
Luke Yeager [Thu, 23 Jul 2020 20:47:52 +0000 (13:47 -0700)] 
infiniband: constrain the range of GAUGE types more closely

3 years agoinfiniband: relicense to MIT
Luke Yeager [Thu, 23 Jul 2020 16:58:31 +0000 (09:58 -0700)] 
infiniband: relicense to MIT

3 years agoMerge pull request #3510 from p-zak/nvme_smart
sranga4 [Wed, 22 Jul 2020 19:37:30 +0000 (12:37 -0700)] 
Merge pull request #3510 from p-zak/nvme_smart

NVMe extension for SMART plugin

3 years agoMerge pull request #3512 from pvxe/libmicrohttpd_fix
Matthias Runge [Wed, 22 Jul 2020 14:27:22 +0000 (16:27 +0200)] 
Merge pull request #3512 from pvxe/libmicrohttpd_fix

capabilities: conditionalize mhd callback return type

3 years agoFixed CI issues and addressed comments from review 3510/head
Pawel Zak [Wed, 22 Jul 2020 10:31:22 +0000 (12:31 +0200)] 
Fixed CI issues and addressed comments from review

3 years agoFixed typo in collectd.conf.pod
sstrehla [Tue, 21 Jul 2020 08:03:26 +0000 (10:03 +0200)] 
Fixed typo in collectd.conf.pod
Replaced strncasecmp with strcasecmp in smart.c

3 years agoAdded explicit cast to unsigned long before pointer cast in ioctl mock function
sstrehla [Mon, 20 Jul 2020 10:52:48 +0000 (12:52 +0200)] 
Added explicit cast to unsigned long before pointer cast in ioctl mock function

3 years agova_list struct is now properly closed
sstrehla [Sat, 18 Jul 2020 21:26:39 +0000 (23:26 +0200)] 
va_list struct is now properly closed
fixed typos in smart_test.c
Replaced magic number of intel vid with define
Replaced magic string with const char* with better defined name
grammar fixes in smart.c

3 years agocapabilities.c: run format.sh 3512/head
Jose M. Guisado Gomez [Sat, 18 Jul 2020 10:44:19 +0000 (12:44 +0200)] 
capabilities.c: run format.sh

3 years agocapabilities: conditionalize mhd callback return type
Jose M. Guisado Gomez [Sat, 18 Jul 2020 10:25:21 +0000 (12:25 +0200)] 
capabilities: conditionalize mhd callback return type

libmicrohttpd introduced an API change with respect its callback
return types. Now its signature says that an enum must be returned
instead of an int. This causes collectd to not finish compilation
because of the compiler warnings this arised (in addition to -Werror)

Add conditional compiling so systems with microhttpd >=0.9.71 can
compile collectd with -Werror

Fixes #3511

3 years agoNVMe SMART - makefile adjustments
Pawel Zak [Fri, 17 Jul 2020 13:48:02 +0000 (15:48 +0200)] 
NVMe SMART - makefile adjustments

3 years agoNVMe SMART - makefile adjustments
Pawel Zak [Fri, 17 Jul 2020 13:48:02 +0000 (15:48 +0200)] 
NVMe SMART - makefile adjustments

3 years agoAdd NVMe attributies to SMART plugin
Kotlowski, Bartlomiej [Fri, 3 Jul 2020 10:15:59 +0000 (03:15 -0700)] 
Add NVMe attributies to SMART plugin

3 years agoMerge pull request #3502 from efuss/netbsd-netstat_udp
Matthias Runge [Fri, 17 Jul 2020 07:12:55 +0000 (09:12 +0200)] 
Merge pull request #3502 from efuss/netbsd-netstat_udp

Add a (currently NetBSD-only) netstat_udp plugin

3 years agoAllow non-DS_COUNTER values for Count option 3504/head
Edgar Fuß [Tue, 14 Jul 2020 16:51:02 +0000 (18:51 +0200)] 
Allow non-DS_COUNTER values for Count option

Allow the value to be of an type other than DS_COUNTER when using the Count option.
I'm sure this can be done more elgantly.

3 years agoIndentation changes
Edgar Fuß [Mon, 13 Jul 2020 14:37:10 +0000 (16:37 +0200)] 
Indentation changes

Mechanical indentation changes intentionally exempted from the last commit (to facilitate review).

3 years agoAdd a Count option to snmp plugin (minus indent)
Edgar Fuß [Mon, 13 Jul 2020 14:35:12 +0000 (16:35 +0200)] 
Add a Count option to snmp plugin (minus indent)

Add a Count option to the snmp plugin allowing to gather the number of table entries (matching given criteria) rather than their values.
This is especially useful in combination with the recently introduced Filter options.

Example: Count number of total/connected stations on a (Lancom) Access Point.

Indentation changes to existing code are deferred to the next commit in order ease review.

3 years agoMerge pull request #3503 from paweltox/upstream_intel_rdt_fix_PSWD6320
sranga4 [Fri, 10 Jul 2020 19:13:06 +0000 (12:13 -0700)] 
Merge pull request #3503 from paweltox/upstream_intel_rdt_fix_PSWD6320

intel_rdt: correct value metrics reported by the plugin

3 years agoAdd pagesize/getpagesize() for NetBSD case 3499/head
Edgar Fuß [Thu, 9 Jul 2020 19:27:38 +0000 (21:27 +0200)] 
Add pagesize/getpagesize() for NetBSD case

In the NetBSD case (has sysctlbyname(), but prefers sysctl()), declare pagesize, #include <unistd.h> and call getpagesize().

3 years agoclang-format 3502/head
Edgar Fuß [Thu, 9 Jul 2020 14:32:03 +0000 (16:32 +0200)] 
clang-format

Re-order #includes for the sake of appeasing clang-format. Fortunately, it still compiles that way.

3 years agoclang-format 3498/head
Edgar Fuß [Thu, 9 Jul 2020 14:31:23 +0000 (16:31 +0200)] 
clang-format

Re-order #includes for the sake of appeasing clang-format. Fortunately, it still compiles that way.

3 years agoclang-format 3497/head
Edgar Fuß [Thu, 9 Jul 2020 14:30:02 +0000 (16:30 +0200)] 
clang-format

Re-order #includes for the sake of appeasing clang-format. Fortunately, it still compiles that way.

3 years agoMerge pull request #3486 from feckert/pr/20200624-ubi
Matthias Runge [Thu, 9 Jul 2020 11:42:42 +0000 (13:42 +0200)] 
Merge pull request #3486 from feckert/pr/20200624-ubi

ubi: fix data source type

3 years agoMerge pull request #3501 from efuss/netbsd-swap
Matthias Runge [Thu, 9 Jul 2020 11:37:53 +0000 (13:37 +0200)] 
Merge pull request #3501 from efuss/netbsd-swap

Add swap plugin implementation for NetBSD

3 years agoclang-format 3495/head
Edgar Fuß [Thu, 9 Jul 2020 11:04:01 +0000 (13:04 +0200)] 
clang-format

Apply clang-format.

3 years agoclang-format 3501/head
Edgar Fuß [Thu, 9 Jul 2020 11:01:30 +0000 (13:01 +0200)] 
clang-format

Apply clang-format.

3 years agoclang-format 3500/head
Edgar Fuß [Thu, 9 Jul 2020 11:00:17 +0000 (13:00 +0200)] 
clang-format

Apply clang-format. Makes part of the code harder to read.

3 years agoclang-format
Edgar Fuß [Thu, 9 Jul 2020 10:56:47 +0000 (12:56 +0200)] 
clang-format

Partly apply clang-format. Makes part of the code harder to read. Do not re-order sys/types.h

3 years agoclang-format
Edgar Fuß [Thu, 9 Jul 2020 10:54:48 +0000 (12:54 +0200)] 
clang-format

Partly apply clang-format. Makes part of the code harder to read. Do not re-order sys/types.h.

3 years agoclang-format
Edgar Fuß [Thu, 9 Jul 2020 10:52:56 +0000 (12:52 +0200)] 
clang-format

Partly apply clang-format. Do not re-order sys/types.h.

3 years agoclang-format 3496/head
Edgar Fuß [Thu, 9 Jul 2020 10:51:06 +0000 (12:51 +0200)] 
clang-format

Apply clang-format.