]>
git.ipfire.org Git - thirdparty/collectd.git/log
Kamil Wiatrowski [Thu, 25 Apr 2019 13:09:00 +0000 (15:09 +0200)]
logparser plugin: move utils_* to src/utils
move utils_* to src/utils
minor doc fixes
Change-Id: I287dff4639b2fa59418cac3e16093b240119f945
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
Adrian Boczkowski [Wed, 12 Dec 2018 08:56:08 +0000 (08:56 +0000)]
Fix Klocwork issues
Change-Id: I9189751dd8e29047488d2f9634cb0856333436bf
Signed-off-by: Adrian Boczkowski <adrianx.boczkowski@intel.com>
Mozejko, MarcinX [Tue, 16 Oct 2018 11:27:42 +0000 (12:27 +0100)]
logparser plugin: Add unit tests
Change-Id: I193aa776d6fbc1e31690db96d85143707823fbe1
Signed-off-by: Mozejko, MarcinX <marcinx.mozejko@intel.com>
Mozejko, MarcinX [Wed, 18 Apr 2018 08:08:17 +0000 (09:08 +0100)]
logparser plugin: Plugin used to parse log files using regexes
utils_tail, utils_tail_match: Change _Bool to bool.
utils_message_parser: Correct struct and type names, cleanup, unit
tests.
Change-Id: I40f3336e274f01791e7c171db5be2f21a6c9217c
Signed-off-by: Mozejko, MarcinX <marcinx.mozejko@intel.com>
Kamil Wiatrowski [Wed, 10 May 2017 10:21:54 +0000 (11:21 +0100)]
pcie_errors plugin: possibility only to filter messages from log file.
Add new possible value for submatch index: -1. For this value do not
add the matched string to results. It can be used to only filter
the required messages from syslog without adding the match to result.
Change-Id: I93d9595be77427c135cc09baac901cd919d6c27e
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
Krzysztof Matczak [Wed, 29 Mar 2017 09:39:20 +0000 (10:39 +0100)]
utils_message_parser: added message buffer shrinkage
Large message buffer memory allocation that was needed
for handling MCE message flood has significant
performance impact on collectd CPU usage.
This fix adds logic for decreasing message buffer size to
default value (64) if there's nothing to parse.
Change-Id: Ibbaef211e1fe24d53663d717a1899ec719017b2b
Signed-off-by: Krzysztof Matczak <krzysztofx.matczak@intel.com>
Kamil Wiatrowski [Tue, 7 Feb 2017 07:42:19 +0000 (08:42 +0100)]
message log parser util: ignore patterns after message is completed
Extend condition to ignore patterns before message has started
and after it is completed.
Change-Id: I2ea7fcc8c11bf3f41a21aa08b014faf6074d2234
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
Krzysztof Matczak [Sun, 8 Jan 2017 21:36:23 +0000 (21:36 +0000)]
Utility for filtering and parsing log messages
This utility simplifies filtering and parsing specific messages
from given log file. It tracks log file using utils_tail_match.h API.
Main feature is automatic messages assembly based on set of user provided
regular expressions containing distinguished expressions for recognizing
start and the end of the message. That makes assembling single message
from multiple log lines quite easy. Utility supports multiple parsing jobs
and also user defined message part validation flags (mandatory or not).
Added fixes for memory leak in utils_match.c and for debug mode
segfault in src/utils_tail_match.c
Modification of utils_tail and utils_tail_match API with adding option
for reading file from the beginning. Minor modifications in this API
calls in tail and tail_csv plugins.
Change-Id: I6865833c8d5403294124187aa7f93cc957004a03
Signed-off-by: Krzysztof Matczak <krzysztofx.matczak@intel.com>
Ruben Kerkhof [Thu, 7 Nov 2019 20:00:40 +0000 (21:00 +0100)]
Merge pull request #3340 from ryan-mccabe/pr2365-turbostat-parsing
turbostat: Fix parsing warnings
Ryan McCabe [Thu, 7 Nov 2019 18:58:37 +0000 (13:58 -0500)]
turbostat: Fix parsing warnings
Fix warnings generated by the turbostat plugin due to trailing
characters while picking out the first number in a range.
ChangeLog: turbostat plugin: Fix parsing warnings.
PR: #2365
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
Matthias Runge [Sat, 2 Nov 2019 21:12:06 +0000 (22:12 +0100)]
Merge pull request #3269 from bplessis/feature-add-snmpbulk
snmp plugin: add support for SNMP Bulk Transfer
Matthias Runge [Sat, 2 Nov 2019 21:01:07 +0000 (22:01 +0100)]
Merge pull request #3283 from zebity/master
Consistent returns from ssnprintf/__ssnprintf wrappers, add ssnprintf2 for optional error handling.
Matthias Runge [Sat, 2 Nov 2019 09:24:20 +0000 (10:24 +0100)]
Merge pull request #3331 from jkohen/patch-1
Create internal library for utils_llist
Javier Kohen [Wed, 30 Oct 2019 16:36:14 +0000 (13:36 -0300)]
Create internal library for utils_llist
We plan to use this library in the write_gcm plugin in the https://github.com/Stackdriver/collectd fork. I hope it's OK with you to make this change upstream before we are ready to contribute the Stackdriver plug-in into this codebase.
Ruben Kerkhof [Wed, 30 Oct 2019 08:20:50 +0000 (09:20 +0100)]
Merge pull request #3328 from efuss/fix-3312
Fix libupsclient detection
Ruben Kerkhof [Wed, 30 Oct 2019 08:19:19 +0000 (09:19 +0100)]
Merge pull request #3329 from efuss/fix-3311
Fix libtokyotyrant handling
Edgar Fuß [Tue, 29 Oct 2019 17:53:27 +0000 (18:53 +0100)]
Fix libtokyotyrant handling
In libtokyotyrant handling, set with_libtokyotyrant_ldflags to "-L$withval/lib", not "-L$withval/include".
Edgar Fuß [Tue, 29 Oct 2019 17:47:55 +0000 (18:47 +0100)]
Fix libupsclient detection
Check libupsclient $withval for being a regular file in addition to being executable/searchable. The value may be a directory name.
Ruben Kerkhof [Tue, 29 Oct 2019 14:44:50 +0000 (15:44 +0100)]
Merge pull request #3310 from yousong/mem
network,exec: fix memory issue
Ruben Kerkhof [Tue, 29 Oct 2019 14:43:42 +0000 (15:43 +0100)]
Merge pull request #3325 from ffontaine/master
configure.ac: fix protobuf/util/time_util.h detection
Fabrice Fontaine [Tue, 29 Oct 2019 09:25:07 +0000 (10:25 +0100)]
configure.ac: fix protobuf/util/time_util.h detection
Add -std=c++11 when checking gor protobuf/util/time_util.h otherwise
test will fail on:
configure:104495: checking google/protobuf/util/time_util.h usability
configure:104495: /home/br-user/autobuild/run/instance-2/output/host/bin/mips-linux-gnu-g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=1 -pthread conftest.cpp >&5
In file included from /home/br-user/autobuild/run/instance-2/output/host/opt/ext-toolchain/mips-linux-gnu/include/c++/5.3.0/atomic:38:0,
from /home/br-user/autobuild/run/instance-2/output/host/mips-buildroot-linux-gnu/sysroot/usr/include/google/protobuf/io/coded_stream.h:113,
from /home/br-user/autobuild/run/instance-2/output/host/mips-buildroot-linux-gnu/sysroot/usr/include/google/protobuf/duration.pb.h:23,
from /home/br-user/autobuild/run/instance-2/output/host/mips-buildroot-linux-gnu/sysroot/usr/include/google/protobuf/util/time_util.h:52,
from conftest.cpp:188:
/home/br-user/autobuild/run/instance-2/output/host/opt/ext-toolchain/mips-linux-gnu/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
Fixes:
- http://autobuild.buildroot.net/results/
0d486edaf4c51b6438adeec61fe2c55099862acb
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Zebity Spring [Thu, 24 Oct 2019 11:08:22 +0000 (22:08 +1100)]
Fix conflict from remove of ssnprintf2 and align utils/common/common.h
Ruben Kerkhof [Wed, 23 Oct 2019 11:26:51 +0000 (13:26 +0200)]
Merge pull request #3309 from rubenk/remove-lvm-plugin
Remove LVM plugin
collectd bot [Tue, 22 Oct 2019 14:28:38 +0000 (16:28 +0200)]
Auto-Merge pull request #3138 from mkauf/fix_exec_environment
Automatically merged due to "Automerge" label
Ruben Kerkhof [Wed, 16 Oct 2019 11:18:12 +0000 (13:18 +0200)]
Merge pull request #3317 from mrunge/check_fixes
Merge check fixes from 5.9 branch to master
Ruben Kerkhof [Mon, 14 Oct 2019 16:12:52 +0000 (18:12 +0200)]
Fix warning in test_strunescape
src/utils/common/common_test.c:254:3: warning: ‘strncpy’ output truncated before terminating nul copying 16 bytes from a string of the same length [-Wstringop-truncation]
254 | strncpy(buffer, "\\tbackslash end\\", sizeof(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CCLD test_common
(cherry picked from commit
5bcc3a10cbae9d94ccb10a62218ab26433bbaa67 )
(cherry picked from commit
7109b8a27f2d82fbf8c1ae9d58ab6cffbaec9339 )
Ruben Kerkhof [Mon, 14 Oct 2019 15:38:03 +0000 (17:38 +0200)]
Fix warning in test_escape_string
In function ‘test_escape_string’,
inlined from ‘main’ at src/utils/common/common_test.c:384:3:
src/utils/common/common_test.c:226:5: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
226 | strncpy(buffer, cases[i].str, sizeof(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(cherry picked from commit
737ffc08e2d9f3d3dda40a51329881085070863e )
(cherry picked from commit
52e8daca0c0b53c61c31fe9ea058b08e6eb7c2b1 )
Ruben Kerkhof [Mon, 14 Oct 2019 15:36:55 +0000 (17:36 +0200)]
Fix warning in test_escape_slashes
In function ‘test_escape_slashes’,
inlined from ‘main’ at src/utils/common/common_test.c:383:3:
src/utils/common/common_test.c:201:5: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation]
201 | strncpy(buffer, cases[i].str, sizeof(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(cherry picked from commit
a22c4260335616b7847e57ef638e0e29cd8cda05 )
(cherry picked from commit
d5edf1e82feb80cfe90cfa35501eef3c8dc493e5 )
Ruben Kerkhof [Tue, 15 Oct 2019 08:47:06 +0000 (10:47 +0200)]
Merge pull request #3308 from rubenk/travis-osx
Travis improvements for MacOS
Yousong Zhou [Tue, 15 Oct 2019 02:48:32 +0000 (02:48 +0000)]
network: fix data race when accessing sending_sockets
This can happen with more than 1 WriteThreads
Yousong Zhou [Mon, 14 Oct 2019 06:48:56 +0000 (06:48 +0000)]
exec: free up memory on shutdown
Ruben Kerkhof [Mon, 14 Oct 2019 18:43:29 +0000 (20:43 +0200)]
Stop installing libstatgrab
It replaces native functionality
Ruben Kerkhof [Mon, 14 Oct 2019 18:42:31 +0000 (20:42 +0200)]
Try to point OSX at where java is
Ruben Kerkhof [Mon, 14 Oct 2019 18:26:34 +0000 (20:26 +0200)]
Show config.log for debugging
Ruben Kerkhof [Mon, 14 Oct 2019 18:22:20 +0000 (20:22 +0200)]
Try to use java
Ruben Kerkhof [Mon, 14 Oct 2019 17:44:26 +0000 (19:44 +0200)]
Install a few deps
Ruben Kerkhof [Mon, 14 Oct 2019 17:37:59 +0000 (19:37 +0200)]
Sort output of pkg-config
Ruben Kerkhof [Mon, 14 Oct 2019 17:31:03 +0000 (19:31 +0200)]
Remove LVM plugin
liblvm2app has been deprecated
Ruben Kerkhof [Mon, 14 Oct 2019 17:26:56 +0000 (19:26 +0200)]
Log which packages pkg-config thinks we have
Ruben Kerkhof [Mon, 14 Oct 2019 17:25:36 +0000 (19:25 +0200)]
Travis on MacOS: bump image version
Benoit Plessis [Fri, 11 Oct 2019 12:54:14 +0000 (14:54 +0200)]
Move the variable declaration closer to use
Benoit Plessis [Fri, 11 Oct 2019 11:14:41 +0000 (13:14 +0200)]
Fixes from ruben review
Ruben Kerkhof [Fri, 11 Oct 2019 10:32:50 +0000 (12:32 +0200)]
Merge pull request #3299 from mrunge/master
Merge stable branch back to master
Matthias Runge [Fri, 11 Oct 2019 07:54:28 +0000 (09:54 +0200)]
Merge pull request #3291 from dago/issue3220
Link to libnsl.so if needed for inet_ntop()
Matthias Runge [Wed, 9 Oct 2019 12:41:47 +0000 (14:41 +0200)]
Merge tag 'collectd-5.9.2'
Matthias Runge [Fri, 11 Oct 2019 06:59:29 +0000 (08:59 +0200)]
Merge pull request #3298 from rubenk/contextswitch-nosysctl-h
Only include <sys/sysctl.h> when needed
Ruben Kerkhof [Wed, 9 Oct 2019 11:47:23 +0000 (13:47 +0200)]
Only include <sys/sysctl.h> when needed
This plugin doesn't need sysctl.h on Linux.
Benoit Plessis [Fri, 4 Oct 2019 11:01:08 +0000 (13:01 +0200)]
Rephrased and simplified option documentation
Benoit Plessis [Fri, 4 Oct 2019 09:08:46 +0000 (11:08 +0200)]
Add a warning when trying to activate bulktransferts on an SNMP v1 host -- fix formating
Benoit Plessis [Fri, 4 Oct 2019 09:07:34 +0000 (11:07 +0200)]
Fix typo and add a new 'highend switch' example that support bulk
Benoit Plessis [Fri, 4 Oct 2019 09:06:54 +0000 (11:06 +0200)]
Fix typos and try to rephrase description
Benoit Plessis [Fri, 4 Oct 2019 09:06:15 +0000 (11:06 +0200)]
Add a warning when trying to activate bulktransferts on an SNMP v1 host
Michael Kaufmann [Thu, 11 Apr 2019 16:14:22 +0000 (18:14 +0200)]
exec: fix a race condition when setting environment variables
Pass the environment as a parameter to the child process
and don't modify the environment of the parent process.
Follow-up to
0684aea7
Closes #3041
Dagobert Michelsen [Tue, 1 Oct 2019 12:34:43 +0000 (14:34 +0200)]
Link to libnsl.so if needed for inet_ntop()
Matthias Runge [Tue, 1 Oct 2019 10:22:23 +0000 (12:22 +0200)]
Add changelog to prepare 5.9.2 release
Ruben Kerkhof [Tue, 24 Sep 2019 08:11:19 +0000 (10:11 +0200)]
Merge pull request #3247 from jplitza/fix-2843
zfs_arc plugin: Read dbuf_size, dnode_size and bonus_size
Jan-Philipp Litza [Fri, 9 Aug 2019 20:08:29 +0000 (22:08 +0200)]
zfs_arc: Read dbuf_size, dnode_size and bonus_size
They are the replacement for other_size since ZFS on Linux 0.7.0
collectd bot [Mon, 23 Sep 2019 08:34:58 +0000 (10:34 +0200)]
Auto-Merge pull request #3286 from mrunge/master
Automatically merged due to "Automerge" label
Ruben Kerkhof [Mon, 23 Sep 2019 07:24:48 +0000 (09:24 +0200)]
Merge pull request #3288 from usev6/mysql_wsrepstats_doc
Tweak docs for mysql plugin
Zebity Spring [Sat, 21 Sep 2019 07:57:35 +0000 (17:57 +1000)]
Add ssnprintf2 wrapper variiant definition
usev6 [Fri, 20 Sep 2019 20:26:40 +0000 (22:26 +0200)]
mysql plugin: Fix typo in documentation
usev6 [Fri, 20 Sep 2019 20:18:56 +0000 (22:18 +0200)]
mysql plugin: Tweak docs for WsrepStats option
* Avoid rendering as preformatted text.
* Note that config option defaults to false.
Matthias Runge [Fri, 20 Sep 2019 06:37:37 +0000 (08:37 +0200)]
Fix typo in src/java.c
The error message did not contain a 'not'
Closes: https://github.com/collectd/collectd/issues/3285
Matthias Runge [Wed, 18 Sep 2019 14:59:09 +0000 (16:59 +0200)]
Merge pull request #2622 from abays/connectivity
Red Hat NFVPE Connectivity Plugin
Andrew Bays [Wed, 18 Sep 2019 12:31:32 +0000 (08:31 -0400)]
Merge branch 'master' into connectivity
Matthias Runge [Wed, 18 Sep 2019 12:06:23 +0000 (14:06 +0200)]
Merge pull request #3282 from abays/sysevent
Check for sysevent plugin init calloc failures
Zebity Spring [Wed, 18 Sep 2019 11:49:34 +0000 (21:49 +1000)]
Add second wrapper ssnprintf2 to allow introduction of error handling on truncation in future
Andrew Bays [Wed, 18 Sep 2019 11:45:48 +0000 (07:45 -0400)]
Check for sysevent plugin init calloc failures
Zebity Spring [Wed, 18 Sep 2019 11:33:27 +0000 (21:33 +1000)]
Make return result consistent with fixed src/utils/common/common.c - ssnprintf wrapper
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ [Mon, 29 Jul 2019 07:54:27 +0000 (09:54 +0200)]
fix https://github.com/collectd/collectd/issues/3232
Change-Id: Idab2c4ffa242a73b651f1b056f85f905e356c5ac
Matthias Runge [Tue, 17 Sep 2019 13:18:32 +0000 (15:18 +0200)]
Merge pull request #3280 from mrunge/collectd-5.9
Collectd 5.9
Matthias Runge [Tue, 17 Sep 2019 12:04:41 +0000 (14:04 +0200)]
Merge pull request #3276 from chrismcn/upstream_turbostat
Upstream turbostat
Matthias Runge [Tue, 17 Sep 2019 12:00:47 +0000 (14:00 +0200)]
Merge pull request #3277 from abays/sysevent
Use sstrncpy instead of strncpy in sysevent plugin
Matthias Runge [Thu, 8 Aug 2019 09:58:55 +0000 (11:58 +0200)]
Fix compile time issues
This resolves #3242 and should also resolve #3179.
Signed-off-by: Matthias Runge <mrunge@redhat.com>
(cherry picked from commit
0bbf058d6f9935e6e727cda7db79312281e2f58d )
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ [Tue, 30 Jul 2019 10:35:31 +0000 (12:35 +0200)]
Don't fail if syslog loglevel doesn't match
This makes the log message more consistent with the behaviour,
and also is consistent with pre-
3b9c7b21b4ddfcf59a0147bc9e91e8889ca78d56 behaviour
Change-Id: I0e8aa2f5c44cb5b4142001954f4544c4157125c9
Fixes: #3236
(cherry picked from commit
b655234b2536533c7dd7a687b85f424c8ddfd5b1 )
Andrew Bays [Mon, 16 Sep 2019 18:08:09 +0000 (14:08 -0400)]
Use sstrncpy instead of strncpy in sysevent plugin
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ [Mon, 29 Jul 2019 07:54:27 +0000 (09:54 +0200)]
fix https://github.com/collectd/collectd/issues/3232
Change-Id: Idab2c4ffa242a73b651f1b056f85f905e356c5ac
(cherry picked from commit
d27bfc74e606290f191c04cdb4e2acc4d5e8d4a9 )
Macnamara, Chris [Tue, 27 Aug 2019 11:35:59 +0000 (12:35 +0100)]
Added ICX Xeon support model number.
Change-Id: I34ef3a2180a86e26d82c046a58e2862f3bc65cf5
Macnamara, Chris [Mon, 26 Aug 2019 11:16:54 +0000 (12:16 +0100)]
Changes for power reporting on SKX and CLX.
Change-Id: I2a6e9faebe616102904bcba4bc51e8e974a56408
Matthias Runge [Fri, 13 Sep 2019 18:44:36 +0000 (20:44 +0200)]
Merge pull request #3159 from rpv-tomsk/collectd-usercache
check_uptime: New plugin, based on new cache_event callback.
Andrew Bays [Tue, 10 Sep 2019 11:51:45 +0000 (07:51 -0400)]
Bump for ChangeLog re-check
Andrew Bays [Thu, 5 Sep 2019 13:39:44 +0000 (09:39 -0400)]
Fix AUTHORS
Andrew Bays [Wed, 4 Sep 2019 17:14:35 +0000 (13:14 -0400)]
Remove duplicate author entry
Andrew Bays [Fri, 14 Jun 2019 17:03:04 +0000 (13:03 -0400)]
clang formatting, again
Andrew Bays [Fri, 14 Jun 2019 17:01:59 +0000 (13:01 -0400)]
Bump CI for connectivity plugin
Andrew Bays [Mon, 5 Nov 2018 15:17:20 +0000 (10:17 -0500)]
More styling + ignorelist create check
Andrew Bays [Fri, 19 Oct 2018 14:05:44 +0000 (10:05 -0400)]
Handled interrupted socket reads
Andrew Bays [Wed, 17 Oct 2018 16:44:22 +0000 (12:44 -0400)]
Use a separate dequeue thread to dispatch notifications
Andrew Bays [Wed, 13 Dec 2017 17:21:57 +0000 (12:21 -0500)]
connectivity plugin initial commit
Andrew Bays [Mon, 17 Jun 2019 11:51:42 +0000 (07:51 -0400)]
Cast cdtime_t to unsigned long long when necessary
Andrew Bays [Mon, 17 Jun 2019 11:23:14 +0000 (07:23 -0400)]
Attempt to align with new util library locations
Andrew Bays [Fri, 14 Jun 2019 17:03:04 +0000 (13:03 -0400)]
clang formatting, again
Andrew Bays [Fri, 14 Jun 2019 17:01:59 +0000 (13:01 -0400)]
Bump CI for connectivity plugin
Andrew Bays [Fri, 9 Nov 2018 12:19:00 +0000 (07:19 -0500)]
Styling/optimization cleanup + proper use of cdtime
Andrew Bays [Tue, 6 Nov 2018 18:15:52 +0000 (13:15 -0500)]
use cdtime + snprintf cleanup + other styling/cleanup
Andrew Bays [Mon, 5 Nov 2018 15:17:20 +0000 (10:17 -0500)]
More styling + ignorelist create check
Andrew Bays [Fri, 19 Oct 2018 14:05:44 +0000 (10:05 -0400)]
Handled interrupted socket reads
Andrew Bays [Fri, 19 Oct 2018 12:10:49 +0000 (08:10 -0400)]
More styling + remove superfluous dequeue thread error logic
Andrew Bays [Thu, 18 Oct 2018 23:02:28 +0000 (19:02 -0400)]
octo code review changes
Andrew Bays [Wed, 17 Oct 2018 16:44:22 +0000 (12:44 -0400)]
Use a separate dequeue thread to dispatch notifications