This repository has been deprecated as it is not well-maintained or tested. It will be deleted at the end of the quarter.
capacity_alerts.py will run a check against a Qumulo cluster running Qumulo Core 1.2.9 or later. Requires python 2.7. The script will generate a csv file containing the alert name and the current usage and will email if the capacity threshold is exceeded.
Credentials can be defined with environment variables, as follows:
$API_HOSTNAME #Cluster FQDN
$API_USER #Username with rights to use API
$API_PASSWORD #Password for that user
Before running the alerts, there are two steps:
- Set up your email smtp server and other configutation in
capacity_alerts.py
- Define your alerts in
alert-definitions.txt
. A sample file is provided. Each line should be tab delimited and formatted as follows: alert_name /storage/system/path alert_size_in_TB(base 1000)