Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

Send email if nodpool utilization exceeds threshold

License

Notifications You must be signed in to change notification settings

jlay79/isi_nodepool_utilization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isi_nodepool_utilization

From an Isilon cluster, run 'isi storagepool list' and parse the output. If any node pool exceeds the utilization threshold, send an email. The default threshold is 80%, but can be changed with the -T option.

  • If nodepools do not exceed threshold, no email will be sent and script will exit cleanly.
  • The recipients (To:) must be specified manually in the command arguments. This is the only requirement.
  • This uses the cluster's internal SMTP configuration for mail servers. No need to configure SMTP servers in the script.

Testing

To test the script, run it with the --test argument. This will set the threshold to 0% and the subject line to TEST <date> to trigger an email to be sent. At least one recipient is still required.

Example:
python nodepool_util_email.py --to [email protected] --test

Cron

You can add the script to a crontab to have it run automatically on a schedule.

Example:
0 0 * * 7 root /usr/bin/python /ifs/data/scripts/nodepool_util_email.py --to [email protected]

This would use the default 80% threshold and the default subject line. It would run once and exit.

Multiple Recipients

To add multiple recipients, just add multiple --to arguments. At least one is required.

Example:
python nodepool_util_email.py --to [email protected] --to [email protected] --to [email protected]

About

Send email if nodpool utilization exceeds threshold

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages