diff --git a/check-disk-space.sh b/check-disk-space.sh index e2115c88..1e5d9c6b 100755 --- a/check-disk-space.sh +++ b/check-disk-space.sh @@ -3,8 +3,8 @@ # Threshold for disk usage percentage threshold=90 -# Get the list of mounted filesystems and their usage -filesystems=$(df -h --output=target,pcent | tail -n +2) +# Get the list of mounted filesystems and their usage, excluding pseudo, duplicate, inaccessible file systems, and tmpfs +filesystems=$(df -h -x tmpfs --output=target,pcent | tail -n +2) # Iterate over each line of the output while IFS= read -r line; do