-
Notifications
You must be signed in to change notification settings - Fork 62
How to setup quota alerts
Thomas Leibovici edited this page Apr 23, 2015
·
4 revisions
-
- Define a purge trigger on user or group usage in the config file, and activate "alert_high" parameter.
Example:
Purge_Trigger {
# this quota applies to the given set of users (wildcards allowed)
trigger_on = user_usage(foo, charlie, project*);
high_threshold_vol = 1TB;
low_threshold_vol = 900GB;
check_interval = 1d ;
alert_high = yes;
}
-
- Then, you can run robinhood with the "--check-thresholds" option after you scanned. This will result in checking triggers without purging, and send a notification when a user quota is exceeded.
Examples:
- for a daily/weekly one-shot command, execute:
robinhood --scan --check-watermarks --once
- for an ever-running daemon:
- in /etc/sysconfig/robinhood, set:
RBH_OPT="--scan --check-watermarks --detach"
- then start the daemon:
service robinhood start
Back to wiki home