I have a mount and automount unit pair for systemd, that mounts a NFS share from another host when needed. It is unmounted automatically after 60 seconds of idle time. Works fine so far.
But if I active an Icinga2 disk check - running every minute - it prevents the mount to go idle, or causes already unmounted ones to get mounted; as seen in the journal for the automount unit:
Jul 23 14:53:19 host.domain.com systemd[1]: Got automount request for /misc/backup, triggered by 24289 (check_disk)
I tried to prevent this by setting disk_local in the GUI (Only check local filesystems. May be true or false.) and adding disk_ignore_eregi_path to the GUI and setting it to /misc/*. To no avail.
Any hints on how to ignore the mount point for the check, so it can idle and get unmounted automatically?
- centos:
7 - systemd:
219 - icinga:
2.5.3