check_netapp_s3bucket

Checks the free or used size in an S3 bucket linked to a NetApp filer.

Description

This plugin has subcommands.

  • free: Checks the space still available in an S3 bucket.
  • usage: Checks the used space in an S3 bucket.

Thresholds

For both subcommands thresholds can be set in either relative (%) or absolute (B) values.

Including and excluding

The string or pattern given to the --exclude|-X and --include|-I parameters is matched against the bucket’s name. In this way, only selected buckets can be checked. See also Regular Expressions.

Examples

Simple Examples

$ check_netapp_s3bucket free -H filer
NETAPP S3 BUCKETS OK - 2 buckets checked\E
aent.fg_oss_1662139105: 100.0%, 1TiB free\E'
aearno365.fg_oss_1636558794: 63.3%, 648.2GiB free\E'
aent.fg_oss_1662139105_rel'=100%;20;10;0;\E
aent.fg_oss_1662139105_abs'=1099511627776B;219902325555;109951162777;0;\E
aearno365.fg_oss_1636558794_rel'=63.305%;20;10;0;\E
aearno365.fg_oss_1636558794_abs'=696041566208B;219902325555;109951162777;0;\E

Checks the free space of all buckets using the default thresholds.


$ check_netapp_s3bucket usage -H filer
NETAPP S3 BUCKETS OK - 2 buckets checked\E
aent.fg_oss_1662139105: 0.0%, 0B used\E'
aearno365.fg_oss_1636558794: 36.7%, 375.8GiB used\E'

Checks the used space of all buckets using the default thresholds.


$ check_netapp_s3bucket free -H filer --warning=65%  --critical=40%,

NETAPP S3 BUCKETS WARNING - 2 buckets checked\E
aearno365.fg_oss_1636558794: 63.3%, 648.2GiB free (WARNING)\E'
aent.fg_oss_1662139105: 100.0%, 1TiB free\E'

Checks the free space of all s3buckets in DataOntap and warns if at least one bucket has less than 65% free space. (Critical if less than 40%.)

To check the used space just change the the subcommand to usage (and adapt the thresholds of course).


$ check_netapp_s3bucket free -H filer --warning=650GiB  --critical=400GiB,

NETAPP S3 BUCKETS WARNING - 2 buckets checked\E
aearno365.fg_oss_1636558794: 648.2GiB free (WARNING)\E'
aent.fg_oss_1662139105: 1TiB free\E'

Checks the free space of all s3buckets in DataOntap and warns if at least one bucket has less than 650GiB free space. (Critical if less than 400GiB.)

To check the used space just change the the subcommand to usage (and adapt the thresholds of course).