Closed ghost closed 8 years ago
Instead of only using lines starting with "/" the sensor now excludes "tmpfs" and "devtmpfs" - the both who are messing up the output. The first line with column names gets excluded (starting with "filesystem"). This helps to monitor space that is mounted on different ways like FUSE (in my case: sshfs).
This way we clean up the output directly from:
Filesystem 1K-blocks Used Available Use% Mounted on udev 4071600 0 4071600 0% /dev tmpfs 817500 8924 808576 2% /run /dev/dm-0 610634072 262537396 317055140 46% / tmpfs 4087500 12 4087488 1% /dev/shm tmpfs 5120 0 5120 0% /run/lock tmpfs 4087500 0 4087500 0% /sys/fs/cgroup /dev/vda1 240972 93393 135138 41% /boot tmpfs 817500 0 817500 0% /run/user/1000 user@sshfs.de:/ 2097152000 44588 2097107412 1% /tmp/sshfsmount
to:
Filesystem 1K-blocks Used Available Use% Mounted on <--- column names removed later
/dev/dm-0 610634072 262537400 317055136 46% / /dev/vda1 240972 93393 135138 41% /boot user@sshfs:/ 2097152000 44588 2097107412 1% /tmp/sshfsmoun
Its much usefuller to see the mountpoint, rather than the source device. Mount Points are easy to understand identifactors :-)
Two missing spaces in channel names :)