]> git.ipfire.org Git - thirdparty/collectd.git/log
thirdparty/collectd.git
2 years 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 agoUpdate the format of contrib/snmp-data.conf
Vit Kabele [Tue, 12 Jul 2022 20:19:52 +0000 (22:19 +0200)] 
Update the format of contrib/snmp-data.conf

Update the format of snmp-data.conf file to not issue deprecation
warning on startup.

s/InstancePrefix/TypeInstancePrefix/g
s/Instance/TypeInstanceOID/g

Signed-off-by: Vit Kabele <vit@kabele.me>
2 years ago[cleanup] Fix typo in comment and remove executable bits of config file
Thomas Renninger [Tue, 31 Jan 2023 16:06:37 +0000 (17:06 +0100)] 
[cleanup] Fix typo in comment and remove executable bits of config file

2 years agoFix compile issue if net-snmp has NETSNMP_DISABLE_MD5 set
Thomas Renninger [Tue, 31 Jan 2023 15:40:42 +0000 (16:40 +0100)] 
Fix compile issue if net-snmp has NETSNMP_DISABLE_MD5 set

Otherwise one gets:
src/snmp.c: In function 'csnmp_config_add_host_auth_protocol':
src/snmp.c:678:25: error: 'usmHMACMD5AuthProtocol' undeclared (first use in this function); did you mean 'usmHMACSHA1AuthProtocol'?
   678 |     hd->auth_protocol = usmHMACMD5AuthProtocol;
       |                         ^~~~~~~~~~~~~~~~~~~~~~
       |                         usmHMACSHA1AuthProtocol

2 years agoFix formatting in mdadm events table
Dominika [Fri, 13 Jan 2023 16:19:40 +0000 (17:19 +0100)] 
Fix formatting in mdadm events table

2 years agoAdd new exec-borg script to contrib/
Darshit Shah [Sat, 31 Dec 2022 02:36:53 +0000 (03:36 +0100)] 
Add new exec-borg script to contrib/

2 years agoChangeLog: v5.12 milestone: Fix issue #3127
Paul [Fri, 9 Dec 2022 15:43:03 +0000 (16:43 +0100)] 
ChangeLog: v5.12 milestone: Fix issue #3127

write_graphite connection closed message always zero

2 years agouse derive_t instead of int inside ovs_stats_get_port_stat_value
Antti Nykanen [Fri, 10 Dec 2021 10:36:53 +0000 (12:36 +0200)] 
use derive_t instead of int inside ovs_stats_get_port_stat_value

2 years agoformatting
Clay Caviness [Fri, 15 Jul 2022 18:09:19 +0000 (14:09 -0400)] 
formatting

2 years agoIn macOS 12, `IOMasterPort` is deprecated in favor of `IOMainPort`
Clay Caviness [Fri, 15 Jul 2022 17:29:11 +0000 (13:29 -0400)] 
In macOS 12, `IOMasterPort` is deprecated in favor of `IOMainPort`

```
src/battery.c:250:7: error: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Werror,-Wdeprecated-declarations]
      kIOMasterPortDefault, IOServiceNameMatching("battery"), &iterator);
      ^~~~~~~~~~~~~~~~~~~~
      kIOMainPortDefault
```

2 years agoUpdate build.yml
Alex [Mon, 29 Aug 2022 18:57:45 +0000 (19:57 +0100)] 
Update build.yml

Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
2 years ago- allow alertmanager correlation and resolve
Carlos Peon Costa [Mon, 17 Oct 2022 08:02:46 +0000 (10:02 +0200)] 
- allow alertmanager correlation and resolve
- fix meta names with ':'

2 years agofix drop probability
Carlos Peon Costa [Fri, 25 Nov 2022 18:09:10 +0000 (19:09 +0100)] 
fix drop probability

2 years agoadd config option to write metadata
Carlos Peon Costa [Mon, 21 Nov 2022 19:39:35 +0000 (20:39 +0100)] 
add config option to write metadata

2 years agocpython: fix build with Python 3.11
Đoàn Trần Công Danh [Wed, 21 Sep 2022 15:21:58 +0000 (22:21 +0700)] 
cpython: fix build with Python 3.11

Python 3.11 moves longintrepr.h into cpython sub-directory.
However, in this version, longintrepr.h is always included.

2 years agommc: cache open file descriptors to block devices 3934/head
Leonard Göhrs [Tue, 27 Sep 2022 06:03:14 +0000 (08:03 +0200)] 
mmc: cache open file descriptors to block devices

Udev rules can contain a "watch" option, which is described in the man page as:

  Watch the device node with inotify; when the node is closed after being
  opened for writing, a change uevent is synthesized.

This watch option is enabled by default for all block devices[1].
The intention behind this is to be notified about changes to the partition
table. The mmc plugin does however also need to open the block device for
writing, even though it never modifies its content, in order to be able to
issue ioctls with vendor defined MMC-commands.

Reduce the amount of generated change events from one per read to one per
collectd runtime by caching the open file descriptor.

[1]: https://github.com/systemd/systemd/blob/ef2ad30aee9fa99b0fdb8fe7efda397513cec6af/rules.d/60-block.rules

Fixes: 2f15c704 (mmc: add more vendor specific and generic data sources (#4006))
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
2 years agoCorrect description of FQDNLookup in manpage of collectd.conf. FQDNLookup uses getadd...
Oskar Roesler (bionade24) [Thu, 21 Jul 2022 19:08:59 +0000 (21:08 +0200)] 
Correct description of FQDNLookup in manpage of collectd.conf. FQDNLookup uses getaddrinfo() and not gethostname().

2 years agoAllow date setting in files generated by the CSV plugin
Francisco Jose Alvarez [Mon, 29 Aug 2022 11:15:06 +0000 (13:15 +0200)] 
Allow date setting in files generated by the CSV plugin

2 years agoFix anonymous connection_state pointer
Ismael Luceno [Mon, 15 Aug 2022 12:25:26 +0000 (14:25 +0200)] 
Fix anonymous connection_state pointer

Returning an anonymous pointer (which is limited to the scope of the
function) causes a build error with -Werror.

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
2 years agoRequire systemd-devel to rpmbuild SMART plugin
Laura Hild [Thu, 8 Sep 2022 20:32:41 +0000 (16:32 -0400)] 
Require systemd-devel to rpmbuild SMART plugin

2 years agoAdd more RPM build instructions
Laura Hild [Thu, 8 Sep 2022 20:32:30 +0000 (16:32 -0400)] 
Add more RPM build instructions

2 years agoconfigure.ac: if neither UPSCONN{,_t} type was found, refuse to build NUT plugin
Jim Klimov [Wed, 31 Aug 2022 13:32:46 +0000 (15:32 +0200)] 
configure.ac: if neither UPSCONN{,_t} type was found, refuse to build NUT plugin

NOTE: src/nut.c also has pragmas to error out in this situation,
but that handling is compiler-dependent and happens too late in
the checkout/configure/build loop.

Presumably this inability to find the type in the earlier-found header file
is also triggered by build environment "inconsistencies" like lack of basic
types in the libc implementation (maybe highlighting the need for additional
headers or macros for the platform).

2 years agoconfigure.ac, src/nut.c: detect int types required by NUT API we build against
Jim Klimov [Wed, 31 Aug 2022 09:40:01 +0000 (11:40 +0200)] 
configure.ac, src/nut.c: detect int types required by NUT API we build against

Either use the stricter int types required by NUT headers since v2.8.0 release,
or the relaxed (arch-dependent) types required by older NUT releases - depending
on which NUT API version the collectd is building against at the moment.

Inspired by discussion at https://github.com/networkupstools/nut/issues/1638

2 years agoFixed duplicate datarootdir
brianna [Wed, 13 Jul 2022 07:45:10 +0000 (04:45 -0300)] 
Fixed duplicate datarootdir

2 years agoIncrease buffer for OAuth access token. Another fix for #3897.
tonypelle [Fri, 19 Aug 2022 17:18:56 +0000 (10:18 -0700)] 
Increase buffer for OAuth access token.  Another fix for #3897.

2 years agoFix-configure.ac: define PREFIX in config.h
lns [Wed, 15 Jun 2022 18:08:32 +0000 (20:08 +0200)] 
Fix-configure.ac: define PREFIX in config.h

PREFIX was never defined and therefore set to the
default value `/opt/collectd`. collectd searched in
this path for desired files e.g. typesdb, plugins, etc
no matter if it was configured with `--prefix`.

Signed-off-by: lns <matzeton@googlemail.com>
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
3 years ago[gha] Add el9_x86_64 to tested distros
Emma Foley [Thu, 9 Jun 2022 17:43:46 +0000 (18:43 +0100)] 
[gha] Add el9_x86_64 to tested distros

3 years ago[CI] Update Fedora versions used in GHA
Emma Foley [Thu, 9 Jun 2022 13:49:26 +0000 (14:49 +0100)] 
[CI] Update Fedora versions used in GHA

3 years 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

3 years agomodbus: add support for double values (#4009)
Simon Peeters [Wed, 8 Jun 2022 09:53:25 +0000 (11:53 +0200)] 
modbus: add support for double values (#4009)

3 years agoAdd scalloc() and use it in src/processes.c (#4014)
Eero Tamminen [Wed, 8 Jun 2022 09:31:07 +0000 (12:31 +0300)] 
Add scalloc() and use it in src/processes.c (#4014)

* Add scalloc() wrapper similar to smalloc() to common utils

scalloc() wraps calloc() with exit on alloc failure,
similarly to what smalloc() does for malloc().

* Handle (Solaris-only) ps_read_process calloc fails by using scalloc

Everything else checks and handles calloc failures except this function.

As I cannot test Solaris specific code, I've just replaced calloc with
scalloc, which gracefully exits collectd with error message on alloc
failures (instead of corrupting memory / crashing, as would happen
with current code).

3 years agoFix the virt plugin for Openstack wallaby and later use (#4011)
Matthias Runge [Tue, 7 Jun 2022 09:16:34 +0000 (11:16 +0200)] 
Fix the virt plugin for Openstack wallaby and later use (#4011)

* Fix formatting for the send queue option

* Later OpenStack versions use Nova version 1.1

In later OpenStack versions, the namespace for Nova changed, reflecting
in a change for the XML description for the virtual machine.

3 years agommc: add more vendor specific and generic data sources (#4006)
Leonard Göhrs [Fri, 3 Jun 2022 13:31:54 +0000 (15:31 +0200)] 
mmc: add more vendor specific and generic data sources (#4006)

* mmc plugin: integrate into configure.ac

The mmc plugin is not fully integrated in the configure.ac.
Change that.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
* mmc plugin: Skip mmc paths in /sys that start with a '.' (like "." and "..")

The plugin tries to (and obiously fails to) use "." and "..", that come out of
listdir, as mmc devices.
Filter these two out by skipping hidden files/directories.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
* mmc plugin: read standard eMMC 5.0 health metrics

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
* mmc plugin: remove type-name defines

These defines can become confusing, especially when combined with the defines
for attribute names in the sysfs. This will only get worse when more
vendor-specific metrics are supported.
Remove the defines and use the type names directly.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
* mmc plugin: remove sysfs-attribute defines

These defines are used only once or twice and do not help with readability.
Replace them with just the raw strings.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
* mmc plugin: port to libudev

While using the sysfs directly works fine for the swissbit and generic eMMC
driver it does not scale well to other vendor-specific interfaces where one has
to open the block device in /dev to perform ioctls.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
* mmc plugin: add micron eMMC support

While this patch was only tested with a single product (MTFC16GAPALBH) I am
fairly confident that it will generalize to others as well, as micron
themselves ship a single tool[1], which this patch uses as a reference, to read
similar info from all of their eMMCs.

This patch also increases the maximum value of mmc_bad_blocks to infinity,
as it can be any 16 bit integer for micron eMMC but could be even larger for
other vendors.

[1]: https://github.com/arcus-smart-home/arcushubos/blob/master/meta-iris/recipes-core/iris-utils/files/emmcparm_1.0.c

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
* mmc plugin: add sandisk eMMC support

While this patch was only tested with a single product (SDINBDG4-8G), I am
fairly confident that it should generalize to other devices as well,
as the current product portfolio on their website looks very similar to the one
I tested and new devies will likely use a Western Digital manufacturer ID.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
3 years agouse correct path for libgcrypt-config (#4008)
Marcus Furlong [Fri, 3 Jun 2022 13:24:58 +0000 (09:24 -0400)] 
use correct path for libgcrypt-config (#4008)

3 years agoMQTT: fix off-by-one error in published message length (#4005)
Leonard Göhrs [Wed, 1 Jun 2022 06:04:28 +0000 (08:04 +0200)] 
MQTT: fix off-by-one error in published message length (#4005)

The mqtt plugin publishes messages including the trailing '\0'-Byte,
as can be verified using e.g. the mosquitto_sub command with a HEX message
formatter:

  $ mosquitto_sub -t "#" -F "%t: %X"
  metrics/loragw1/users/users: 313635323334303737392E3938353A3000
                                                               ^^
While the the MQTT PUBLISH payload is, according to the specification,
application specific and most (C-Based) consumers will not notice the trailing
'\0'-Byte, it is rather uncommon to publish messages like this.

We stumbled upon this error while using Telegraf to ingest metrics via MQTT,
as it is Go-Based and does not use '\0'-terminated strings, leading to issues
parsing these strings into numbers.

Fix the off-by-one error by using the result of strlen() as-is.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
3 years agoSome improvements for InfluxDB support (#3938)
Matwey V. Kornilov [Thu, 28 Apr 2022 16:29:17 +0000 (19:29 +0300)] 
Some improvements for InfluxDB support (#3938)

* write_http: Make use of CURLOPT_POSTFIELDSIZE

CURLOPT_POSTFIELDSIZE allows to specify the data size, which is known in
advance and equals to cb->send_buffer_fill. When CURLOPT_POSTFIELDSIZE is not
set (or set to -1), then curl evaluates data size using strlen() function,
which have O(N) complexity, so we save a few CPU cycles here.

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* write_influxdb_udp: Split formatting functions to format_influxdb

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* write_http: Add influxdb format

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* write_http: Enable using unix socket in libcurl

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* meta_data: Introduce basic iterator interface

Currently, meta_data supports only the key lookup over forward list data
structure, so iterating over the list would take O(N^2).

Here we introduce meta_data_iter() and meta_data_iter_next() functions dealing
with opaque iterator type.

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* format_influxdb: Support serializing meta_data

collectd 6.0 supports serializing series labels as influxdb tags. Here we
backport this feature serializing string-values meta data keys as influxdb
tags.

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
3 years agoFix formatting for the send queue option
Matthias Runge [Thu, 21 Apr 2022 18:04:53 +0000 (20:04 +0200)] 
Fix formatting for the send queue option

3 years agosmart: check udev_enumerate_scan_devices() return value and unify log messages (...
Florian Eckert [Thu, 17 Mar 2022 07:34:33 +0000 (08:34 +0100)] 
smart: check udev_enumerate_scan_devices() return value and unify log messages (#3984)

* Check udev_enumerate_scan_devices return value

This change checks the return value of the function and cancels the call
if the returned integer is not greater than or equal to 0.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* Unify and fix log messages

The error log messages were not consistent and had no prefix. This
commit adds the uniform prefix 'smart plugin:' to each log message. While
we're at it, I also removed the punctuation mark at the end of the
sentences.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
3 years ago[ci][gha] Miscellaneous improvements and sync with cirrus (#3976)
Emma Foley [Tue, 15 Feb 2022 14:14:15 +0000 (14:14 +0000)] 
[ci][gha] Miscellaneous improvements and sync with cirrus (#3976)

* [ci][gha] Rename tasks

* [ci][gha] Update and use MAKEFLAGS

* [ci][gha] Remove continue-on-error from ``make distcheck`` tasks

Installation of bzip2 and make distcheck were failing on el8.
This was resolved by updating it to use CentOS Stream 8 in [1]

[1] https://github.com/collectd/ci-docker/pull/55

3 years agomemory: add laundry and user wired pages (#3962)
François Charlier [Tue, 15 Feb 2022 12:02:55 +0000 (13:02 +0100)] 
memory: add laundry and user wired pages (#3962)

Changelog: memory: report for laundry and user_wire pages on FreeBSD

Add the `vm.stats.vm.v_laundry_count` and
`vm.stats.vm.v_user_wire_count`  which have been present on FreeBSD for
a little while now.

3 years ago[gha] Add a test log when the tests fail (#3971)
Emma Foley [Tue, 15 Feb 2022 11:41:38 +0000 (11:41 +0000)] 
[gha] Add a test log when the tests fail (#3971)

* [ci][gha] Add a test log when the tests fail

* [ci][cirrus] Update CI to provide test logs on failure

Co-authored-by: Matthias Runge <mrunge@redhat.com>
3 years agoFix CI failures caused by unsupported distros and updates to dependencies (#3975)
Emma Foley [Tue, 15 Feb 2022 07:46:21 +0000 (07:46 +0000)] 
Fix CI failures caused by unsupported distros and updates to dependencies (#3975)

* [ci][gha] Replace trusy with Bionic and Focal

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] #3936
[3] #3927 (comment)

* [ci][cirrus] Make Valgrind error on defininte memory leaks only

Valgrind gives errors when it find possible leaks;
update the options to only error on definite leaks.

This is done using the VALGRIND_OPTS env var, which is used by valgrind
when it is invoked.

* [ci][gha] Make Valgrind error on defininte memory leaks only

Valgrind gives errors when it find possible leaks;
update the options to only error on definite leaks.

This is done using the VALGRIND_OPTS env var, which is used by valgrind
when it is invoked.

3 years agodisk: add utilization (#3967)
Marek Bečka [Fri, 4 Feb 2022 07:13:17 +0000 (08:13 +0100)] 
disk: add utilization (#3967)

* added disk utilization

* fix disk utilization

* fix interval back to ms

3 years ago[ci][cirrus] Replace trusty with bionic/focal in debian_default_toolchain
Emma Foley [Fri, 5 Nov 2021 19:20:31 +0000 (19:20 +0000)] 
[ci][cirrus] Replace trusty with bionic/focal in debian_default_toolchain

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

3 years ago[intel_rdt] Fix build for LIBPQOS < 2
Emma Foley [Fri, 3 Dec 2021 20:59:29 +0000 (15:59 -0500)] 
[intel_rdt] Fix build for LIBPQOS < 2

ChangeLog: intel_rdt: Update intel_rdt to build on libpqos < 2

3 years agoMerge pull request #3948 from elfiesmelfie/bug/3932
Emma Foley [Fri, 3 Dec 2021 12:57:50 +0000 (12:57 +0000)] 
Merge pull request #3948 from elfiesmelfie/bug/3932

virt plugin: Add hugetlb_ metrics

3 years agoMerge pull request #3774 from kwiatrox/intel_rdt_metrics
Kamil Wiatrowski [Wed, 1 Dec 2021 10:57:49 +0000 (11:57 +0100)] 
Merge pull request #3774 from kwiatrox/intel_rdt_metrics

Intel rdt metrics improvments

3 years agoDo not account reclaimable slab as used
Weiping Zhang [Mon, 17 May 2021 07:59:50 +0000 (15:59 +0800)] 
Do not account reclaimable slab as used

ChangeLog: memory plugin: do not account reclaimable slab as used.

Align this counter with free(1).
https://gitlab.com/procps-ng/procps/-/blob/v3.3.17/proc/sysinfo.c#L789

Signed-off-by: Weiping Zhang <zhangweiping@didiglobal.com>
3 years agointel_rdt: Added oprion to disable IPC monitoring 3774/head
Michał Aleksiński [Wed, 16 Sep 2020 08:34:45 +0000 (09:34 +0100)] 
intel_rdt: Added oprion to disable IPC monitoring

3 years agointel_rdt: Added memory bandwidth total metric
Michał Aleksiński [Mon, 7 Sep 2020 07:38:22 +0000 (08:38 +0100)] 
intel_rdt: Added memory bandwidth total metric

3 years agovirt: Add hugetlb_ metrics 3948/head
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>
3 years agoAllo trusty to fail
Matthias Runge [Thu, 25 Nov 2021 12:58:49 +0000 (13:58 +0100)] 
Allo trusty to fail

It is not supported anymore and we should not trust it.

3 years agoRemove DES support in snmp plugin
Ruben Kerkhof [Tue, 6 Jul 2021 08:22:36 +0000 (10:22 +0200)] 
Remove DES support in snmp plugin

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
3 years agobug#3924 fix
Supali [Tue, 5 Oct 2021 14:31:49 +0000 (20:01 +0530)] 
bug#3924 fix

3 years agoSet the buffer size to the new maximum length for a digest.
minfrin [Mon, 1 Nov 2021 09:54:59 +0000 (11:54 +0200)] 
Set the buffer size to the new maximum length for a digest.

3 years agoChangeLog: snmp plugin: Add support for SHA224, SHA256, SHA384 and SHA512.
minfrin [Mon, 25 Oct 2021 14:39:35 +0000 (16:39 +0200)] 
ChangeLog: snmp plugin: Add support for SHA224, SHA256, SHA384 and SHA512.

3 years agoFix #3051: Convert Coding Style from wiki to markdown
Erik Westrup [Fri, 8 Oct 2021 16:05:35 +0000 (18:05 +0200)] 
Fix #3051: Convert Coding Style from wiki to markdown

Convert
https://collectd.org/wiki/index.php/Coding_style
revision "10:19, 30 October 2018" to markdown.

Fixes #3051

3 years agoMerge pull request #3772 from p-zak/ras_plugin
Kamil Wiatrowski [Fri, 8 Oct 2021 15:01:25 +0000 (17:01 +0200)] 
Merge pull request #3772 from p-zak/ras_plugin

New input plugin for RAS (Reliability, Availability and Serviceability)

3 years agoNew input plugin for RAS (Reliability, Availability and Serviceability) 3772/head
Pawel Zak [Thu, 5 Nov 2020 16:39:04 +0000 (17:39 +0100)] 
New input plugin for RAS (Reliability, Availability and Serviceability)

3 years agoNew input plugin for RAS (Reliability, Availability and Serviceability)
Pawel Zak [Thu, 5 Nov 2020 16:28:50 +0000 (17:28 +0100)] 
New input plugin for RAS (Reliability, Availability and Serviceability)

3 years agoMerge pull request #3775 from kwiatrox/pmu_updated20
Kamil Wiatrowski [Thu, 7 Oct 2021 14:18:48 +0000 (16:18 +0200)] 
Merge pull request #3775 from kwiatrox/pmu_updated20

Updated version of Intel PMU plugin

3 years agointel_pmu 2.0 - updates in collectd.conf.pod 3775/head
Kamil Wiatrowski [Wed, 28 Oct 2020 15:39:52 +0000 (15:39 +0000)] 
intel_pmu 2.0 - updates in collectd.conf.pod

Change-Id: I5f0d4c289c5264933cd1a2c43dd6ca0933f94e6a
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agointel_pmu 2.0 - change parameter name to AggregateUncorePMUs
Kamil Wiatrowski [Mon, 12 Oct 2020 13:58:31 +0000 (14:58 +0100)] 
intel_pmu 2.0 - change parameter name to AggregateUncorePMUs

Change plugin parameter name from DispatchMultiPmu to AggregateUncorePMUs

Change-Id: I0303da83bef6cbae69f0cf327dc990dc5db22c52
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agointel_pmu 2.0 - remove type from type instance
Kamil Wiatrowski [Fri, 4 Sep 2020 13:45:46 +0000 (14:45 +0100)] 
intel_pmu 2.0 - remove type from type instance

Remove type from type_instance for uncore events.

Change-Id: Ia003fdb4bdadceab8a52efde0e311335fc047e89
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agointel_pmu 2.0 - address review comments
Kamil Wiatrowski [Wed, 2 Sep 2020 12:29:24 +0000 (13:29 +0100)] 
intel_pmu 2.0 - address review comments

Improvements in plugin documentation in collectd.conf.pod
and other small fixes.

Change-Id: Iba5a762afce054b9c0f7adb29120bf37750ec98b
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agointel_pmu 2.0 - unit tests
Pawel Tomaszewski [Thu, 27 Aug 2020 12:35:40 +0000 (13:35 +0100)] 
intel_pmu 2.0 - unit tests

Signed-off-by: Pawel Tomaszewski <pawelx.tomaszewski@intel.com>
3 years agointel_pmu 2.0 - fix format
Pawel Tomaszewski [Thu, 27 Aug 2020 12:35:40 +0000 (13:35 +0100)] 
intel_pmu 2.0 - fix format

Signed-off-by: Pawel Tomaszewski <pawelx.tomaszewski@intel.com>
3 years agointel_pmu 2.0 - memory leak fixed for unit tests
Kamil Wiatrowski [Wed, 26 Aug 2020 14:21:00 +0000 (15:21 +0100)] 
intel_pmu 2.0 - memory leak fixed for unit tests

Format intel_pmu_test with format.sh script.

Change-Id: Id72eddd0493b55365205ad9c8820b3cba786dae5
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
Signed-off-by: Pawel Tomaszewski <pawelx.tomaszewski@intel.com>
3 years agointel_pmu 2.0 - apply formatting on intel_pmu unit tests.
Kamil Wiatrowski [Wed, 26 Aug 2020 14:21:00 +0000 (15:21 +0100)] 
intel_pmu 2.0 - apply formatting on intel_pmu unit tests.

Format intel_pmu_test with format.sh script.

Change-Id: Id72eddd0493b55365205ad9c8820b3cba786dae5
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agointel_pmu 2.0 - unit tests
Pawel Tomaszewski [Wed, 26 Aug 2020 13:17:02 +0000 (14:17 +0100)] 
intel_pmu 2.0 - unit tests

Signed-off-by: Pawel Tomaszewski <pawelx.tomaszewski@intel.com>
3 years agointel_pmu 2.0 - bugfix & more verbose warning messages
Pawel Tomaszewski [Fri, 21 Aug 2020 14:28:41 +0000 (15:28 +0100)] 
intel_pmu 2.0 - bugfix & more verbose warning messages

Fixed issue on HardwareEvents option set to "All".
Warning messages are more verbose when max number of opened files is reached and max number of events per group is reached.

Signed-off-by: Pawel Tomaszewski <pawelx.tomaszewski@intel.com>
3 years agointel_pmu 2.0 - update collectd.conf.pod
Kamil Wiatrowski [Tue, 18 Aug 2020 12:41:43 +0000 (13:41 +0100)] 
intel_pmu 2.0 - update collectd.conf.pod

Update collectd.conf.pod for new version of intel_pmu.

Change-Id: I297e6c3909a54d2a24737517bde2b0e4b192e7fe
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agointel_pmu 2.0 - add name of pmu to plugin instance
Kamil Wiatrowski [Thu, 13 Aug 2020 13:40:28 +0000 (14:40 +0100)] 
intel_pmu 2.0 - add name of pmu to plugin instance

Update plugin_instance and type_instance with more information.

Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agointel_pmu 2.0 - Provide option to choose all events from EventList
Pawel Tomaszewski [Wed, 12 Aug 2020 13:22:44 +0000 (14:22 +0100)] 
intel_pmu 2.0 - Provide option to choose all events from EventList

While HardwareEvents option is set to "All" plugin
reads all available events from EventList and collects
statistics for them.

Signed-off-by: Pawel Tomaszewski <pawelx.tomaszewski@intel.com>
3 years agointel_pmu 2.0 - Provide more data with metric
Kamil Wiatrowski [Tue, 11 Aug 2020 14:04:30 +0000 (15:04 +0100)] 
intel_pmu 2.0 - Provide more data with metric

Improve readability of scaled value with more data provided by metric,
use multivalued type (pmu_counter) to provide clearly the data:
scaled value, raw value, time enabled and time running.

Change-Id: Id9201123a5de647bba412f09145b8dbb169987ba
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agointel_pmu 2.0 - updated version of plugin
Kamil Wiatrowski [Thu, 9 Jul 2020 14:40:54 +0000 (15:40 +0100)] 
intel_pmu 2.0 - updated version of plugin

Make it possible to register for multiple read callbacks [read threads].
Split cores grouping per multiple read callbacks.

Change-Id: I372797c77ebbf6314f379395a56f1760ccdf14a8
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
3 years agoReplace travis CI with GHA (#3913)
Emma Foley [Mon, 4 Oct 2021 09:32:28 +0000 (10:32 +0100)] 
Replace travis CI with GHA (#3913)

* [githubactions] Use collectd-ci container to run tests

Uses containers for collectd provided by collectd/ci-docker [1]
Repeats what travis was using for building collectd

* checks out branch
* installs dependencies (already in containers)
* runs the script commands from travis (pkg-config, confgure, make)

[1] https://github.com/collectd/ci-docker

[githubactions] Add config flags to builds

* [githubactions] Add a job for experimental OSes

* [GHA] update actions for new distro containers in collectd/ci-docker

* Mark ``make check`` as optional for now

it is not passing reliably, and is being marked as optional until it is

Co-authored-by: BarometerExperimental <barometer-experimental@container>
3 years agoFeature-redfish: enabling libredfish logging on collectd debug mode (#3907)
Mathieu STOFFEL [Mon, 27 Sep 2021 14:37:05 +0000 (16:37 +0200)] 
Feature-redfish: enabling libredfish logging on collectd debug mode (#3907)

Changelog: enabling libredfish logging on collectd debug mode

In order for `libredfish` to log internal information, which are more
than useful to debugging purposes, a printing function has to be
registered through a hook : a global function pointer named `gDebugFunc`.

The `plugin_log` function is registered as the logging function through
the aforementioned hook by the `redfish_init` function, when the
`--enable-debug` option is specified to the `configure` script.

3 years agoFeature/collectd nagios perfdata (#3879)
Fabien Wernli [Mon, 27 Sep 2021 07:02:20 +0000 (09:02 +0200)] 
Feature/collectd nagios perfdata (#3879)

* Changelog: Improve perfdata output for collectd-nagios

Now we also include thresholds in performance data:

```
OKAY: 0 critical, 0 warning, 1 okay | shortterm=0.360000;1.000000;2.000000;;
```

Change-Id: I7b71ac623d3f88dd57d8fb55bc469e6f4f46e0d0

Change-Id: I4f8f1884b553af49d9535d331bc96c9c4e513772

* Allocate warning/critical threshold strings dynamically

Change-Id: I756c60264fd23af64fe713dd360316507176471a

3 years agoFic smart_test.c for big endian. (#3799)
Bernd Zeimetz [Tue, 21 Sep 2021 08:44:27 +0000 (10:44 +0200)] 
Fic smart_test.c for big endian. (#3799)

get_vendor_id from smart.c assumes that VENDOR_ID is le16, so we
need to convert it into le16 in the fake-ioctl function in smart_test.c.

Fixes #3791

Signed-off-by: Bernd Zeimetz <bernd@bzed.de>
3 years agoFix #3831 by adding commas to the infiniband types (ib_octets, ib_packets) (#3832)
Nathan Ward [Tue, 21 Sep 2021 08:41:11 +0000 (20:41 +1200)] 
Fix #3831 by adding commas to the infiniband types (ib_octets, ib_packets) (#3832)

3 years agoadd CounterGauge option in statsd (#3914)
Casey Tucker [Tue, 21 Sep 2021 08:39:17 +0000 (01:39 -0700)] 
add CounterGauge option in statsd (#3914)

3 years agoReport MemAvailable when present in meminfo (#3916)
Riham Aldakkak [Tue, 21 Sep 2021 06:32:57 +0000 (08:32 +0200)] 
Report MemAvailable when present in meminfo (#3916)

3 years agommc plugin: initial checkin (#3887)
Florian Eckert [Mon, 13 Sep 2021 13:00:46 +0000 (15:00 +0200)] 
mmc plugin: initial checkin (#3887)

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
3 years agoCreate build.yml (#3911)
Matthias Runge [Thu, 9 Sep 2021 16:33:31 +0000 (18:33 +0200)] 
Create build.yml (#3911)

* Create build.yml

3 years agoImplement support for multiple Server entries in write_influxdb_udp
Paul [Sat, 4 Sep 2021 15:39:23 +0000 (17:39 +0200)] 
Implement support for multiple Server entries in write_influxdb_udp

-creates one socket for each Server row in the CFG: e.g.

LoadPlugin write_influxdb_udp
<Plugin write_influxdb_udp>
  Server "some.host.tld" "8585"
  Server "some.host.tld" "8686"
  Server "192.0.2.1" "8001"
  Server "192.0.2.5" "8007"
  Server "2001:db8::19" "5000"
</Plugin>

Tested on 5.13 and 6.0 code-base.

3 years agoubi: add percent evaluation for the bad blocks
Florian Eckert [Fri, 12 Mar 2021 10:07:45 +0000 (11:07 +0100)] 
ubi: add percent evaluation for the bad blocks

So far the plugin contains the evaluation of the maximum erase count
from `/sys/class/ubi/ubi<x>/max_ec` and the evaluation of bad physical
erase block count from `/sys/class/ubi/ubi<x>/bad_peb_count`.

For each ubi device, the reserved physical erase blocks are also displayed.
The value is shown in `/sys/class/ubi/ubi<x>/reserved_for_bad`.

If the defekt erase blocks are now used with the reserved erase blocks,
we can calculate who many percent of the flash is defekt.

With this information we can now create a notify that is triggered at a
certain percentage.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
3 years agoubi: perpartion for percentage evaluation of the bad blocks
Florian Eckert [Thu, 11 Mar 2021 16:53:16 +0000 (17:53 +0100)] 
ubi: perpartion for percentage evaluation of the bad blocks

This change prepares the ubi plugin to add the bad block evaluation in
percent.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
3 years agoMerge pull request #3793 from clear-code/fix-broken-config-test
Matthias Runge [Mon, 6 Sep 2021 13:34:24 +0000 (15:34 +0200)] 
Merge pull request #3793 from clear-code/fix-broken-config-test

Fix broken "-t" option of collectd

3 years agoMerge pull request #3889 from basilfx/feature/nut_plugin_real_power
Matthias Runge [Mon, 6 Sep 2021 12:28:30 +0000 (14:28 +0200)] 
Merge pull request #3889 from basilfx/feature/nut_plugin_real_power

nut: expose more (real)power

3 years agoMerge pull request #3874 from ApplianSys/fix_netsnmp_linking
Matthias Runge [Mon, 6 Sep 2021 12:27:34 +0000 (14:27 +0200)] 
Merge pull request #3874 from ApplianSys/fix_netsnmp_linking

Fix #3472 - Correct LD flags for various libs

3 years agoMerge pull request #3906 from collectd/collectd-5.13
Matthias Runge [Mon, 6 Sep 2021 12:26:33 +0000 (14:26 +0200)] 
Merge pull request #3906 from collectd/collectd-5.13

merge collectd 5.13 branch to main

3 years agoMerge pull request #3867 from carlospeon/main
Matthias Runge [Sat, 4 Sep 2021 19:17:06 +0000 (21:17 +0200)] 
Merge pull request #3867 from carlospeon/main

write_influxdb_udp: add TimePrecision configuration option

3 years agoMerge pull request #3901 from matsKNY/pr-fix_configure_ac_redfish_typo
Matthias Runge [Fri, 3 Sep 2021 05:58:36 +0000 (07:58 +0200)] 
Merge pull request #3901 from matsKNY/pr-fix_configure_ac_redfish_typo

Fix-configure.ac: typing error for the CPPFLAGS of libredfish

3 years agoMerge pull request #3884 from basilfx/feature/nginx_unix_socket_path
Matthias Runge [Fri, 3 Sep 2021 05:57:40 +0000 (07:57 +0200)] 
Merge pull request #3884 from basilfx/feature/nginx_unix_socket_path

nginx plugin: Add support for UNIX domain sockets

3 years agoMerge pull request #3878 from ccin2p3/redhat_spec_5.12.0
Matthias Runge [Fri, 3 Sep 2021 05:56:35 +0000 (07:56 +0200)] 
Merge pull request #3878 from ccin2p3/redhat_spec_5.12.0

Update RedHat specfile to 5.12.0

3 years agoMerge pull request #3886 from systemcrash/fix_python_deprecation
Matthias Runge [Fri, 3 Sep 2021 05:55:45 +0000 (07:55 +0200)] 
Merge pull request #3886 from systemcrash/fix_python_deprecation

ChangeLog: python: Fix compile-time errors about deprecation via ifdefs.

3 years agoMerge pull request #3898 from tonypelle/google_oauth_fix
Matthias Runge [Fri, 3 Sep 2021 05:54:30 +0000 (07:54 +0200)] 
Merge pull request #3898 from tonypelle/google_oauth_fix

Increase buffer size for oauth access token to 2048

3 years agoMerge pull request #3904 from mrunge/travis
Matthias Runge [Fri, 3 Sep 2021 05:52:09 +0000 (07:52 +0200)] 
Merge pull request #3904 from mrunge/travis

Remove integration with travis

3 years agoMerge pull request #3903 from jenny-cheung/main
Matthias Runge [Fri, 3 Sep 2021 05:51:34 +0000 (07:51 +0200)] 
Merge pull request #3903 from jenny-cheung/main

Fix a small error due to the unreleased lock for