/lustre_quotacheck

Primary LanguageShellMIT LicenseMIT

Lustre group quota check

Simple shell script to check the lustre group quota limits. Send an email when the threshold is exceeded.

Usage:

quotachek.sh <-t|--threshold> <-e|--email> <group>

Options:

-t|--threshold Threshold to monitor (Percentage value e.g. 80%) -e|--email Email address to notify

Argument:

group Group to check

Test:

Specifing the type of test in the environment variable TEST. TEST can assume one values of soft, hard or veryhard.

DEBUG:

Set the environment variable DEBUG with the value 1.

Examples:

Crontab:

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__.