]> git.ipfire.org Git - thirdparty/collectd.git/log
thirdparty/collectd.git
2 months agoMerge pull request #4269 from octo/5.12/format_stackdriver collectd-5.12
Florian Forster [Fri, 2 Feb 2024 15:25:25 +0000 (16:25 +0100)] 
Merge pull request #4269 from octo/5.12/format_stackdriver

format_stackdriver: When JSON generation fails, reset the generator b…

2 months agoformat_stackdriver: Add proper error handling to `sd_output_reset()`. 4269/head
Florian Forster [Fri, 2 Feb 2024 09:52:21 +0000 (10:52 +0100)] 
format_stackdriver: Add proper error handling to `sd_output_reset()`.

2 months agoformat_stackdriver: When JSON generation fails, reset the generator because it is...
Florian Forster [Thu, 1 Feb 2024 15:53:44 +0000 (16:53 +0100)] 
format_stackdriver: When JSON generation fails, reset the generator because it is in an unknown state.

3 months agowrite_riemann plugin: Terminate `riemann_event_set` arguments with `RIEMANN_EVENT_FIE...
Florian Forster [Thu, 11 Jan 2024 19:35:30 +0000 (20:35 +0100)] 
write_riemann plugin: Terminate `riemann_event_set` arguments with `RIEMANN_EVENT_FIELD_NONE`.

`riemann_event_set` is a variadic function, that means it accepts a variable
number of arguments. That means it needs some way to determine – at runtime
– how many arguments there are. It appears to be doing so by using
`RIEMANN_EVENT_FIELD_NONE` to indicate the last element in the argument
list. Unfortunately I was unable to find the library's documentation and
code and could not verify this.

That means that the argument list passed to `riemann_event_set` was not
always terminated, causing it to read past where it was supposed to and
adding random crap into the message it crafted.

Issue: #4050

4 months agoFix compile of the prometheus plugin
Matthias Runge [Wed, 8 Jun 2022 14:44:07 +0000 (16:44 +0200)] 
Fix compile of the prometheus plugin

13 months agoHugepages plugin skips reading write-only file
Yadnesh Kulkarni [Wed, 22 Feb 2023 12:27:55 +0000 (17:57 +0530)] 
Hugepages plugin skips reading write-only file

Since 'demote' is a write-only file do not attempt to
to read it. This also prevents the plugin from generating
incessant logs about the failure to open it.

Fixes: #3993
https://docs.kernel.org/admin-guide/mm/hugetlbpage.html

2 years agovirt: Add hugetlb_ metrics
Emma Foley [Mon, 29 Nov 2021 19:59:59 +0000 (14:59 -0500)] 
virt: Add hugetlb_ metrics

ChangeLog: virt plugin: Add hugetlb_ metrics

Resolves #3932
Co-authored-by: Matthias Runge <mrunge@redhat.com>
(cherry picked from commit 8c781279e9c4789936323670b729f9a979c976db)

2 years ago[ci][cirrus] Replace trusty with bionic/focal in debian_default_toolchain (#3986)
Matthias Runge [Thu, 17 Mar 2022 10:07:10 +0000 (11:07 +0100)] 
[ci][cirrus] Replace trusty with bionic/focal in debian_default_toolchain (#3986)

Ubuntu 14.04 (Trusty) is out of standard support [1].
``make check`` fails for test_capabilities, as noted in [2].
[3] indicates that the cause is glibc, but that updates are not expected
to the version in trusty.

This PR replaces trusty with Ubuntu 18.04 (Bionic) and 20.04 (Focal).

[1] https://wiki.ubuntu.com/Releases
[2] https://github.com/collectd/collectd/pull/3936
[3] https://github.com/collectd/collectd/pull/3927#issuecomment-953350598

(cherry picked from commit b5d8ad13f4e300a7bfe342d27ad804003fcc9173)

Co-authored-by: Emma Foley <efoley@redhat.com>
2 years agocirrus: drop CentOS6 (#3985)
Matthias Runge [Thu, 17 Mar 2022 08:35:22 +0000 (09:35 +0100)] 
cirrus: drop CentOS6 (#3985)

It had been reached EOL at November 30th, 2020.
There is no security updates available anymore.

ref. https://wiki.centos.org/About/Product

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
(cherry picked from commit d836b9b20c5ac94ce67f826751d9d717ffabb49c)

Co-authored-by: Kentaro Hayashi <hayashi@clear-code.com>
3 years agoFix memory leak in configfile.c
Barbara Kaczorowska [Fri, 25 Sep 2020 12:50:13 +0000 (12:50 +0000)] 
Fix memory leak in configfile.c

3 years agosrc/netlink.c: remove REG_NOERROR
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 #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.

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

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

3 years agoRevert re-ordering of pagesize definition
Edgar Fuß [Thu, 9 Jul 2020 10:42:22 +0000 (12:42 +0200)] 
Revert re-ordering of pagesize definition

Revert a re-ordering of #ifdef'd block that may have lead to pagesize being defined, but unused.

3 years agoImplement swap plugin on NetBSD
Edgar Fuß [Wed, 8 Jul 2020 17:23:26 +0000 (19:23 +0200)] 
Implement swap plugin on NetBSD

Extend swap plugin support for NetBSD, and add per-swap-device reporting for HAVE_SWAPCTL_THREE_ARGS.
Written by Håvard Eidnes <he@NetBSD.org>

3 years agoImplement processes plugin on NetBSD
Edgar Fuß [Wed, 8 Jul 2020 17:22:04 +0000 (19:22 +0200)] 
Implement processes plugin on NetBSD

Implement the processes plugin on NetBSD.
Written by Håvard Eidnes <he@NetBSD.org>

3 years agoImplement memory plugin for NetBSD
Edgar Fuß [Wed, 8 Jul 2020 17:20:45 +0000 (19:20 +0200)] 
Implement memory plugin for NetBSD

Add a port of the memory plugin for NetBSD using VM_UVMEXP2, and preferring sysctl over sysctlbyname.
Written by Håvard Eidnes <he@NetBSD.org>