12016 Commits

Author SHA1 Message Date
Eero Tamminen
2cd055fe85 Merge pull request #4379 from markferry/mqtt-notifications
feat: mqtt notifications in plain text or json
2025-12-08 18:00:50 +02:00
Mark Ferry
09639127d8 mqtt plugin: review fixes 2025-12-08 17:04:43 +02:00
Mark Ferry
8e916ce11b mqtt plugin: add NotificationPrefix config, default to "collectd/event" 2025-11-24 14:11:20 +00:00
Mark Ferry
9b9faf90c7 mqtt plugin: add JSON format to mqtt_write 2025-11-24 14:11:20 +00:00
Mark Ferry
279f629f9d mqtt plugin: format PLAIN notifications similar to notify_email 2025-11-24 14:11:19 +00:00
Mark Ferry
ba461b9f99 mqtt plugin: add Format config, default to PLAIN 2025-11-24 14:11:19 +00:00
Mark Ferry
e5d3625b44 mqtt plugin: add SendNotifications config, default false 2025-11-24 14:11:19 +00:00
Mark Ferry
9cd7ad259b mqtt plugin: publish notifications as JSON to event subtopic 2025-11-24 14:11:19 +00:00
Eero Tamminen
8f642f6813 Merge pull request #4385 from yangx-jy/cleanup
snmp plugin: remove the deprecated DES debug info
2025-11-07 15:08:16 +02:00
Xiao Yang
f3626bc0b7 snmp plugin: remove the deprecated DES debug info
Signed-off-by: Xiao Yang <iceyangxiao@gmail.com>
2025-11-07 10:07:52 +09:00
Eero Tamminen
785c857351 Merge pull request #4386 from heinemml/patch-1
fix(configure.ac): fix grpc build
2025-11-06 17:07:25 +02:00
Michael Nosthoff
42b2ede4da configure.ac: fix grpc build
Similar to the previous "configure.ac: fix grpc build" commit:
Google bumped it's compiler requirements again [1], hence the c++ version needs to be adjusted to c++17 to be able to build with the latest grpc versions.

[1] a5e3ed43d4/foundational-cxx-support-matrix.md

Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
2025-10-29 16:53:39 +01:00
Matwey V. Kornilov
050877ed95 virt: Drop ATTRIBUTE_UNUSED for virt_eventloop_timeout_cb
ATTRIBUTE_UNUSED seems to be never was a public part of the libvirt interface
and leads to the following issue with recent libvirt versions were
ATTRIBUTE_UNUSED has been renamed to G_GNUC_UNUSED:

src/virt.c:2209:49: error: expected ';', ',' or ')' before 'ATTRIBUTE_UNUSED'
 2209 | static void virt_eventloop_timeout_cb(int timer ATTRIBUTE_UNUSED,
      |                                                 ^~~~~~~~~~~~~~~~
src/virt.c: In function 'register_event_impl':
src/virt.c:2222:26: error: 'virt_eventloop_timeout_cb' undeclared (first use in this function)
 2222 |                          virt_eventloop_timeout_cb, NULL, NULL) < 0) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~
src/virt.c:2222:26: note: each undeclared identifier is reported only once for each function it appears in

Drop ATTRIBUTE_UNUSED here as there is little use from it.
2025-10-29 07:49:04 +01:00
Matwey V. Kornilov
04c3c2d84f dpdk: check rte_eth_link_get_nowait return value
Update link status only if rte_eth_link_get_nowait return success
otherwise link may not be filled properly.

This also fixes the following build issue with up-to-date gcc version:

src/dpdkevents.c: In function 'dpdk_helper_link_status_get':
src/dpdkevents.c:439:7: error: ignoring return value of 'rte_eth_link_get_nowait' declared with attribute 'warn_unused_result' [-Werror=unused-result]
  439 |       rte_eth_link_get_nowait(i, &link);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
2025-10-28 10:55:51 +01:00
WinstonMDP
e813de17fe Fix lcc_receive
The unit has been substracted to pass gcc stringop-truncation warning in
lcc_receive function

(cherry picked from commit 60b118eb61)
2025-10-28 10:54:06 +01:00
Matwey V. Kornilov
e7d96d26ae Run contrib/format.sh on src/libcollectdclient/client.c
The file is inconsistent state with clang-format return
2025-10-28 10:54:06 +01:00
Eero Tamminen
c254dc2c1e Merge pull request #4375 from matwey/fix_ci_freebsd
Fix FreeBSD image for Cirrus CI
2025-08-29 17:22:03 +03:00
Matwey V. Kornilov
d0b12923a5 Fix FreeBSD image for Cirrus CI 2025-08-29 15:44:10 +03:00
Sudip Mukherjee
8baf48968b Fix build due to error in curl_easy_setopt
The builds are failing due to error like:

src/curl.c:349:3: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
  349 |   curl_easy_setopt(wp->curl, CURLOPT_IPRESOLVE, wp->address_family);

src/curl_xml.c:740:3: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
  740 |   curl_easy_setopt(db->curl, CURLOPT_IPRESOLVE, db->address_family);

src/curl_json.c:586:3: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
  586 |   curl_easy_setopt(db->curl, CURLOPT_IPRESOLVE, db->address_family);

The error were seen during a rebuild in Ubuntu.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
2025-08-08 08:29:18 +02:00
Eero Tamminen
a586d56022 Merge pull request #4355 from atsampson/gcrypt-pkgconfig
configure.ac: use pkg-config to find libgcrypt
2025-05-22 15:51:08 +03:00
尤理衡 (Li-Heng Yu)
560f0f3651 Update BUILD.dpdkstat.md 2025-05-18 18:37:52 +02:00
AntonMoryakov
2bf42e1834 src: add NULL check for severity in logparser_config_message 2025-05-18 18:36:05 +02:00
AntonMoryakov
0ae9a931bf scr: daemon: fix memory leak in plugin_register_cache_event() in plugin.c 2025-05-18 18:34:02 +02:00
Matwey V. Kornilov
41a891db8a Merge pull request #4361 from AntonMoryakov/MEMORY_LEAK.STRUCT-in-write_syslog.c
src: fix memory leak in config parser in write_syslog.c
2025-05-15 17:17:54 +03:00
AntonMoryakov
5d3073c3e9 src: fix memory leak in config parser in write_syslog.c
Static analyzer detected (write_syslog.c:562):
- Memory allocated for `cb` via `calloc()` was lost when returning -1
  due to invalid config options (before line 594)

Root cause:
- The function `ws_config_tsd()` could return early on config errors
  without freeing `cb`, while successful path used `user_data.free_func`
  for cleanup.

Fix:
- Added explicit cleanup with `ws_callback_free(cb)` before all error returns
- Only one error return path needed fixing (invalid option case)
- Success path still uses automatic cleanup via `user_data.free_func`

Impact:
- Fixes memory leak that could occur on every invalid configuration
- No behavioral changes for valid configurations
- Maintains existing cleanup strategy

Triggers found by static analyzer Svace.

Signed-off-by: Anton Moryakov <ant.v.moryakov@gmail.com>
2025-05-14 19:11:12 +03:00
Adam Sampson
e871771a05 configure.ac: use pkg-config to find libgcrypt
libgcrypt has provided a .pc file since 2018, and as of 2024 it no
longer provides a libgcrypt-config program by default, so the existing
test won't find the library any more.
2025-04-23 12:57:16 +01:00
Eero Tamminen
14c59711e8 Merge pull request #4121 from zsfz/main
processes: add option to skip metrics from non-running processes
2025-03-12 16:12:17 +02:00
Florian Forster
baac81e1a3 Merge pull request #4341 from stevegilbert23/issue-3314-fix
Fix: for issue 3314 and 3856
2025-02-13 16:30:57 +01:00
stevegilbert23
030c229213 Merge branch 'collectd:main' into issue-3314-fix 2025-02-13 08:08:24 -05:00
Florian Forster
c432f4d430 Merge pull request #4342 from matwey/fix-upload-artifact
Fix deprecated actions/upload-artifact@v3 in GitHub Actions
2025-02-13 10:35:31 +01:00
Matwey V. Kornilov
0edf8505c2 Fix deprecated actions/upload-artifact@v3 in GitHub Actions 2025-02-07 19:26:22 +03:00
Steve Gilbert
be2c9b5b7b Format correction 2025-02-05 17:49:50 -05:00
stevegilbert23
63e4540309 When UseSerial is enabled, allow configured ignored disk names to be copied to the serial ignore list for devices without serials. 2025-02-05 17:23:37 -05:00
Eero Tamminen
93f9bdcbde Merge pull request #4329 from robertsilen/main
add MariaDB to README
2024-10-09 18:39:04 +03:00
robertsilen
5fe97a98e5 add MariaDB to README 2024-08-27 09:00:53 +03:00
luffysong
c67512ab31 processes: Do not post metrics from processes that are not running.
Signed-off-by: sujankhadka <sujankhadka@didiglobal.com>
Signed-off-by: tiozhang <zyhtheonly@yeah.net>
Signed-off-by: luffysong <zsfz_one@163.com>
2024-08-12 01:25:16 +08:00
Leaves Mountains
3b1c7d4f58 Update README.md (#4318)
Correct MarkDown syntax errors & punctuation in README.md.

Fixes: 8286d53f7c
2024-07-19 14:09:36 +03:00
Karan Veer
84284d5fd6 perl: fix compile on clang by ignoring a warning
A new warning type introduced since clang 12 causes a build failure.
Ignore it to fix.

https://reviews.llvm.org/D86751

Fixes: #4308
2024-05-21 18:10:22 +02:00
Eero Tamminen
e817577106 Merge pull request #4296 from aleksinx/intel_rdt_llc_miss
[intel_rdt] Added support for LLC misses monitoring event
2024-05-14 12:06:24 +03:00
Michał Aleksiński
211de8d3a9 intel_rdt: removed ifdefs 2024-05-14 10:04:35 +02:00
Eero Tamminen
4d29f1d044 bind: fix warning for variable used only in DEBUG() calls
Fixes: https://github.com/collectd/collectd/issues/4305

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
2024-05-07 09:35:11 +02:00
Michał Aleksiński
879958927c intel_rdt: Use pqos_mon_get_value api to obtain event values 2024-04-26 09:41:41 +02:00
Michał Aleksiński
97ac63ccf8 intel_rdt: corrected returned value for llc_miss mertic 2024-03-27 07:20:00 +01:00
Michał Aleksiński
2bde020860 intel_rdt: Updated list of supported RDT events 2024-03-26 16:31:40 +01:00
Michał Aleksiński
c4c026005b intel_rdt: corrected reported value for llc_ref mertic 2024-03-26 16:25:14 +01:00
Michał Aleksiński
d6ad9e1d86 intel_rdt: corrected reported value for llc_miss mertic 2024-03-26 16:24:39 +01:00
Michał Aleksiński
627511962e intel_rdt: corrected reported value name 2024-03-26 16:15:41 +01:00
Michał Aleksiński
5e218ea3bf intel_rdt: added support for LLC misses monitoring event 2024-03-25 08:14:10 +01:00
Florian Forster
ff8cd79667 Merge pull request #4238 from kenhys/test-lua-plugin
lua: add missing test case for #3779, #4235
2024-02-24 21:56:54 +01:00
Kentaro Hayashi
939bfed6f9 lua: add missing test case for #3779, #4235
* luaC_pushoconfigitem (indirectly lua_config)
* luaC_pushnotification

In the previous versions, there was no test code for Lua plugin.
Thus this is first step to improve such a situation.

Signed-off-by: Kentaro Hayashi <kenhys@gmail.com>
2024-02-23 18:03:44 +09:00