Readme.md aktualisiert
This commit is contained in:
parent
8a930e7cf5
commit
87023bd176
|
@ -15,7 +15,7 @@ Install the mailutils package if it's not already installed on your server:
|
|||
|
||||
Create a script to send an email notification when disk space is low:
|
||||
|
||||
`
|
||||
```
|
||||
#!/bin/bash
|
||||
|
||||
# Set your email address here
|
||||
|
@ -32,7 +32,7 @@ df -h / | awk '$NF > "{{threshold}}%" {print $1}' | while read disk; do
|
|||
echo "Disk $disk is full!" | mail -s "Disk Full Alert" "$email"
|
||||
fi
|
||||
done
|
||||
`
|
||||
```
|
||||
|
||||
Save the script as disk_full_alert.sh and make it executable:
|
||||
|
||||
|
|
Loading…
Reference in New Issue