Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # You can add a cron job for this little script
- SUBJECT='Gitlab Disk Space Monitoring'
- USED=$(df / | grep / | awk '{ print $5 }' | sed 's/%//g')
- RECIPIENTS='rec1@email.com, rec2@email.com, rec3@email.com'
- sendmail "$RECIPIENTS" <<EOF
- subject: $SUBJECT: $USED%
- to: $RECIPIENTS
- Your team have used $USED% of my disk space.
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement