SELinux is preventing /usr/sbin/collectd from read access

Solution Verified - Updated -

Issue

  • Collectd plugin "interface" is not allowed by selinux and thus no network metrics are taken
$ systemctl status collectd
● collectd.service - Collectd statistics daemon
     Loaded: loaded (/usr/lib/systemd/system/collectd.service; enabled; preset: disabled)
     Active: active (running) since Wed 2024-09-25 16:13:54 EEST; 18h ago
       Docs: man:collectd(1)
             man:collectd.conf(5)
   Main PID: 612956 (collectd)
      Tasks: 13 (limit: 819036)
     Memory: 46.9M
        CPU: 4min 36.595s
     CGroup: /system.slice/collectd.service
             └─612957 /usr/sbin/collectd

Sep 25 16:56:14 compute1 collectd[612957]: interface plugin: fopen: Permission denied
Sep 25 16:56:14 compute1 collectd[612957]: read-function of plugin `interface' failed. Will suspend it for 2560.000 seconds.

Environment

  • Red Hat Openstack Platform 17.1 (RHOSP17.1)
  • Red Hat Enterprise Linux 9.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content