From 2812f3a119c5d93dfdbd17bdbb2c8046f0b600c6 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 31 Aug 2025 17:42:01 -0600 Subject: [PATCH] Ignore loopback devices when checking disk usage --- uptimekuma.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uptimekuma.sh b/uptimekuma.sh index 41613e1..1a9b3ac 100644 --- a/uptimekuma.sh +++ b/uptimekuma.sh @@ -33,7 +33,7 @@ do USAGES+=("$partition: $percent% > $DISK_FULL_ALERT_PERCENT_THRESHOLD%") DISKS_STATUS="NOTOK" fi -done <<< $(df | grep -vE "^Filesystem|tmpfs|cdrom" | awk '{ print $5 " " $1 }') +done <<< $(df | grep -vE "^Filesystem|tmpfs|cdrom|/dev/loop" | awk '{ print $5 " " $1 }') USAGETEXT=$(IFS=","; echo "${USAGES[*]}") if [[ "$DISKS_STATUS" != "OK" ]]; then DISKS_STATUS="$USAGETEXT"