Readme.md aktualisiert
This commit is contained in:
parent
cc635068d0
commit
842ce45fc4
|
@ -29,7 +29,7 @@ df -h / | awk '$NF > "{{threshold}}%" {print $1}' | while read disk; do
|
||||||
# Check if the disk usage is above the threshold
|
# Check if the disk usage is above the threshold
|
||||||
if [ "$disk" -gt "$threshold" ]; then
|
if [ "$disk" -gt "$threshold" ]; then
|
||||||
# Send an email notification
|
# Send an email notification
|
||||||
echo "Disk $disk is full!" | mail -s "Disk Full Alert" "$email"
|
echo "Disk $disk is full!" | mail -s "Disk Full Alert" $email
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue