Checks the free or used size in an S3 bucket linked to a NetApp filer.
This plugin has subcommands.
For both subcommands thresholds can be set in either relative (%) or absolute (B) values.
The 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.
$ 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).