Ignoring FS mounts

Bud Bach <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAOOAKkcW9WRJmUwkHtEfADZKdZ7byMAmgqOsXp0p6_iWyRA4jA@mail.gmail.com>
Hi, I have a new Ubuntu 16.04 server running NET-SNMP version 5.7.3.  I am
seeing a bunch of snmp errors in the syslog whenever my monitoring system
queries the server:

Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs /run/lxcfs/controllers:
Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/freezer: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/perf_event: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/blkio: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/memory: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/pids: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/cpuset: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/cpu,cpuacct: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/devices: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/net_cls,net_prio: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/hugetlb: Permission denied
Aug 30 17:25:30 server01 snmpd[3398]: Cannot statfs
/run/lxcfs/controllers/name=systemd: Permission denied

These errors seem to occur when the hrFSTable is retrieved:

$ snmpwalk -On  -v 2c -c public 350ec-server01 .1.3.6.1.2.1.25.3.8

will trigger the issue for example.  The devices are listed in /proc/mounts:

$ cat /proc/mounts | grep /run/lxc
tmpfs /run/lxcfs/controllers tmpfs rw,relatime,size=100k,mode=700 0 0
freezer /run/lxcfs/controllers/freezer cgroup rw,relatime,freezer 0 0
perf_event /run/lxcfs/controllers/perf_event cgroup rw,relatime,perf_event
0 0
blkio /run/lxcfs/controllers/blkio cgroup rw,relatime,blkio 0 0
memory /run/lxcfs/controllers/memory cgroup rw,relatime,memory 0 0
pids /run/lxcfs/controllers/pids cgroup rw,relatime,pids 0 0
cpuset /run/lxcfs/controllers/cpuset cgroup rw,relatime,cpuset 0 0
cpu,cpuacct /run/lxcfs/controllers/cpu,cpuacct cgroup
rw,relatime,cpu,cpuacct 0 0
devices /run/lxcfs/controllers/devices cgroup rw,relatime,devices 0 0
net_cls,net_prio /run/lxcfs/controllers/net_cls,net_prio cgroup
rw,relatime,net_cls,net_prio 0 0
hugetlb /run/lxcfs/controllers/hugetlb cgroup rw,relatime,hugetlb 0 0
name=systemd /run/lxcfs/controllers/name=systemd cgroup
rw,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
0 0

and

$ ls -ld /run/lxcfs
drwx------ 3 root root 60 Aug 10 15:09 /run/lxcfs

So it makes sense that snmp can't read that directory.

I tried "ignoredisk /run/lxcfs/*" in the snmpd.conf file but that didn't
help.

The question is, can I configure snmpd to ignore those mounts?  Thanks.  --
Bud

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.