free 238 B

1234567
  1. #!/bin/bash
  2. source /etc/clara.sh
  3. free=$(free -mt | grep Total | awk '{print $4}')
  4. if [[ "$free" -le 1000 ]]; then
  5. echo -e "Warning, server memory is running low!\n\nFree memory: $free MB" | mutt -s "HIGH MEMORY ALERT!!!" $email
  6. fi