- Annoyance
Every 3 seconds I see a "lsof -Fn /mnt/disk1" command running which uses a fair amount of CPU.
I figured out it's triggered from within "/usr/local/emhttp/webGui/nchan/update_1".
I tried to execute "lsof -Fn /mnt/disk1" as root via SSH but it exits with code 1.
I don't think that's intended.
If I e.g. do "lsof -Fn /mnt/disk1/appdata" it works fine.
If I do "lsof -Fn /mnt/disk1/isos" it also exits with code 1 whereas if I open an mp4 via SMB it shows:
p15193
n/mnt/disk1/isos/test.mp4
But the widget in the dashboard always shows 0 streams:

My mounts regarding disk1 look like this:
disk1 on /mnt/disk1 type zfs (rw,relatime,xattr,posixacl,casesensitive)
disk1/system on /mnt/disk1/system type zfs (rw,noatime,xattr,posixacl,casesensitive)
disk1/domains on /mnt/disk1/domains type zfs (rw,noatime,xattr,posixacl,casesensitive)
disk1/remote on /mnt/disk1/remote type zfs (rw,noatime,xattr,posixacl,casesensitive)
disk1/appdata on /mnt/disk1/appdata type zfs (rw,noatime,xattr,posixacl,casesensitive)
disk1/isos on /mnt/disk1/isos type zfs (rw,noatime,xattr,posixacl,casesensitive)
disk1/media on /mnt/disk1/media type zfs (rw,noatime,xattr,posixacl,casesensitive)
disk1/paperless-consume on /mnt/disk1/paperless-consume type zfs (rw,noatime,xattr,posixacl,casesensitive)
disk1/local on /mnt/disk1/local type zfs (rw,noatime,xattr,posixacl,casesensitive)
disk1/cache on /mnt/disk1/cache type zfs (rw,noatime,xattr,posixacl,casesensitive)
/mnt/disk1/system/docker/docker.img on /var/lib/docker type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)
/mnt/disk1/system/docker/docker.img on /var/lib/docker/btrfs type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)
/mnt/disk1/system/libvirt/libvirt.img on /etc/libvirt type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)
I haven't attached the diagnostics yet because I'm not sure if some credentials might be in there and atm. I'm not having the time to have a deeper look in the diags but I can provide it if needed.
IMHO the $mnt_list is built wrong. It only consists of /mnt/disk1 in my case whereas it probably should be a space separated list of all folders or alternatively "/mnt/disk1/*".
And even if the command would be fixed it would still not work (in my case). The lsof takes more then 3 seconds in my case (it's an NVMe so dunno why) and the timeout of 3 seconds in the exec kills the lsof before it would ever return back any data. Also if it would work there would be plenty of "streams" on appdata. In the context of the widget I would consider a "stream" being a file accessed from external via network rathen than file handles opened by unraid/docker... but I don't know if that's possible to filter or gather somehow