Simple shell script to check the lustre group quota limits. Send an email when the threshold is exceeded.
quotachek.sh <-t|--threshold> <-e|--email> <group>
-t|--threshold Threshold to monitor (Percentage value e.g. 80%) -e|--email Email address to notify
group Group to check
Specifing the type of test in the environment variable TEST. TEST can assume one values of soft, hard or veryhard.
Set the environment variable DEBUG with the value 1.
Following an example for run the script every 5 minutes.
To modify the body of the email message edit the script changing the content of the function msg between the __EOF__.