New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netlink plugin not working on CentOS, RHEL #2510
Comments
We are having this issue as well. |
The docs have this to say:
|
…mnl_socket_recvfrom(). Issue: collectd#2510
…mnl_socket_recvfrom(). Issue: collectd#2510
The same on Ubuntu 16.04, Collectd 5.5.1.
|
Hi! I faced with the same problem:
For me it only affects ubuntu 16.04 with 4.13 kernel which is a part of |
Also happening to have that error on Ubuntu 16.04 with kernel linux-generic-hwe-16.04-edge (4.15.0-15-generic) with packages from CI repo collectd 5.8.0.74.g0c85475.
Yet Centos 7.4 with kernel-ml.x86_64 4.16.7-1.el7.elrepo from elrepo-kernel with collectd-netlink.x86_64 5.8.0-3.el7 from epel works without an issues. |
It should also be added in |
For cases, when we have Collectd built against 'old' headers and kernel returning 'new' structure, the following patch may help.
This patch will not help in reverse case, but this does not differs to behaviour without the patch. Can anybody check it? When checking, please clarify if Thanks. |
@rubenk , what do you think about such a patch? |
Built on system with 4.15, it works now! Thanks. But, what about parsing |
|
So, you confirm what this solution works when Collectd built with old headers and running on new kernel with |
I will prepare a new PR with support of new metric, based on |
Right. |
Related link: https://lkml.org/lkml/2016/2/9/886 |
mnl_attr_validate2() function implements strict equality check of kernel and userspace structures size. Additional counters was added to 4.6 Linux kernel, sizes was changed and mismatch can occur. This patch weakened validation. Now Collectd just checks if structures, received from kernel space, has enough data. Closes: collectd#2510
Added metric for new counter from Linux kernel version 4.6+. Issue: collectd#2510
Added metric for new counter from Linux kernel version 4.6+. Issue: collectd#2510
Added metric for new counter from Linux kernel version 4.6+. Issue: collectd#2510
New PR was added. I haven't tested it on a system with updated kernel/headers, so please test/review it thoroughly. Don't forget to run Thanks. |
Hm but it sounds as if CI servers which build packages for Ubuntu needs to be updated to have new header files aswell. |
I think they have headers from relevant release, do not they? As stated before,
At the moment Collectd CI does not have Ubuntu newer than 16.04, so it needs to be updated to support newer release, not headers. |
mnl_attr_validate2() function implements strict equality check of kernel and userspace structures size. Additional counters was added to 4.6 Linux kernel, sizes was changed and mismatch can occur. This patch weakened validation. Now Collectd just checks if structures, received from kernel space, has enough data. Closes: collectd#2510 # Conflicts: # src/netlink.c
mnl_attr_validate2() function implements strict equality check of kernel and userspace structures size. Additional counters was added to 4.6 Linux kernel, sizes was changed and mismatch can occur. This patch weakened validation. Now Collectd just checks if structures, received from kernel space, has enough data. Closes: collectd#2510
Added metric for new counter from Linux kernel version 4.6+. Issue: collectd#2510
mnl_attr_validate2() function implements strict equality check of kernel and userspace structures size. Additional counters was added to 4.6 Linux kernel, sizes was changed and mismatch can occur. This patch weakened validation. Now Collectd just checks if structures, received from kernel space, has enough data. Closes: collectd#2510
Added metric for new counter from Linux kernel version 4.6+. Issue: collectd#2510
Version of collectd: 5.5.0, 5.7.1
it is reproducible with collectd-5.7.1-2.el7.x86_64 from EPEL
Operating system / distribution:
CentOS 7
Expected behavior
(Description of the behavior / output that you expected)
Actual behavior
The config is pretty minimal:
(Description of the behavior / output that you observed)
Steps to reproduce
The text was updated successfully, but these errors were encountered: