From f793249ed3698e420862ae2383d9103e61cd3eea Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 17 Feb 2024 21:36:21 -0600 Subject: [PATCH] collectd: df: Ignore autofs mount points When _collectd_ calls *statvfs(3)* on paths like `/host/proc/sys/fs/binfmt_misc` which are configured for auto-mounting, _systemd_ logs hundreds of messages like these: ``` systemd[1]: proc-sys-fs-binfmt_misc.automount: Got automount request for /proc/sys/fs/binfmt_misc, triggered by 1303 (reader#3) systemd[1]: proc-sys-fs-binfmt_misc.automount: Automount point already active? ``` Eventually, _collectd_ logs an error: ``` collectd[1132]: statvfs(/host/proc/sys/fs/binfmt_misc) failed: Too many levels of symbolic links ``` This happens on every scrape interval. To avoid this, we can configure _collectd_ to skip calling *statvfs(3)* on _autofs_ mount points. Even if it did work correctly, we wouldn't really want _collectd_ triggering automounts; that would pretty much defeat the purpose of them. --- templates/collectd/collectd-df.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/collectd/collectd-df.conf b/templates/collectd/collectd-df.conf index f628bba..4118692 100644 --- a/templates/collectd/collectd-df.conf +++ b/templates/collectd/collectd-df.conf @@ -3,6 +3,7 @@ LoadPlugin df ReportByDevice true + FSType autofs FSType overlay IgnoreSelected true