Out of the box, the "freeipmi" plugin fails with the following error: freeipmi.plugin ERROR : MAIN : ipmi_monitoring_sensor_readings_by_record_id(): internal system error (errno 9, Bad file descriptor) The Netdata installer script fixes this issue by calling (see https://github.com/netdata/netdata/blob/v1.31.0/netdata-installer.sh#L1311): chmod 4750 /usr/libexec/netdata/plugins.d/freeipmi.plugin The Gentoo ebuild uses capabilities instead (for example for the nfacct and xenstat plugins). Adding the following lines to the "pkg_postinst" function fixes the issue, too: if use ipmi ; then fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/freeipmi.plugin' fi Reproducible: Always
Thank you!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a97da23507e384e14fd38999093b4725165795f3 commit a97da23507e384e14fd38999093b4725165795f3 Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2021-09-09 18:05:06 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2021-09-09 18:05:26 +0000 net-analyzer/netdata: add missing fcaps call for freeipmi plugin Closes: https://bugs.gentoo.org/812254 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Craig Andrews <candrews@gentoo.org> net-analyzer/netdata/netdata-1.31.0-r2.ebuild | 152 ++++++++++++++++++++++++++ net-analyzer/netdata/netdata-9999.ebuild | 4 + 2 files changed, 156 insertions(+)