Fixed mail for check disk space

This commit is contained in:
2020-01-04 12:01:38 +01:00
parent c3ffbe105b
commit 98da191658
@@ -3,7 +3,7 @@
# Check disk space # Check disk space
CURRENT=$(df / --output=pcent | tail --lines=1 | cut --delimiter='%' --field=1) CURRENT=$(df / --output=pcent | tail --lines=1 | cut --delimiter='%' --field=1)
THRESHOLD=90 THRESHOLD=90
ADMIN="root@{{ ansible_domain }}" ADMIN="{{ admin_mail }}"
SUBJECT="[Disk Space Alert] The free space on {{ ansible_fqdn }} is critically low" SUBJECT="[Disk Space Alert] The free space on {{ ansible_fqdn }} is critically low"
MESSAGE= MESSAGE=
@@ -12,4 +12,3 @@ if [ "$CURRENT" -gt "$THRESHOLD" ]; then
Your root partition remaining free space is critically low. Used: $CURRENT% Your root partition remaining free space is critically low. Used: $CURRENT%
EOF EOF
fi fi