Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 47bc235

Browse files
authored
48k ram patch 1 (#87)
* Add examples of using percent and byte thresholds * Don't warn experimental on old perl versions The 'no warnings' experimental for smartmatch is only needed on older perl versions. Otherwise it causes issues. * Note use of comma in space thresholds Add note indicating that multiple space thresholds (e.g., % and *B) should be separated with a comma. * Fix typo in help text Remove extra 'n' in clusternode_health. Thanks bb-Ricardo
1 parent 206cdef commit 47bc235

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ Copy `check_netapp_ontap.pl` script to your nagios libexec folder and configure
5555

5656
Check the space and inode health of a vServer volume on a NetApp Ontap cluster. If space % and space in *B are both defined the smaller value of the two will be used when deciding if the volume is in a warning or critical state. This allows you to accomodate large volume monitoring better. thresh: space % used, space in *B (i.e MB) remaining, inode count remaining, inode % used (Usage example: 80%i), “offline” keyword node: The node option restricts this check by vserver name.
5757

58+
* Examples
59+
* `-w 80%` - Warn if volume grows more than 80% full
60+
* `-w 100GB` - Warn if volume has less than 100GB free space
61+
* `-w 80%,50GB` - Warn if volume is more than 80% used *and* has less than 50GB free space
62+
5863
**aggregate_health**
5964

6065
Check the space and inode health of a cluster aggregate on a NetApp Ontap cluster. If space % and space in *B are both defined the smaller value of the two will be used when deciding if the volume is in a warning or critical state. This allows you to better accomodate large aggregate monitoring. thresh: space % used, space in *B (i.e MB) remaining, inode count remaining, inode % used (Usage example: 80%i), “offline” keyword, “is-home” keyword node: The node option restricts this check by cluster-node name.

check_netapp_ontap.pl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
use Getopt::Long;
2525
use POSIX;
2626

27-
# do not show smartmatch warnings
28-
no warnings 'experimental::smartmatch';
27+
# do not show smartmatch warnings on older perl versions
28+
no if $] >= 5.017011, warnings => 'experimental::smartmatch';
2929

3030
my $verbose = undef;
3131
my $debug = undef;
@@ -1898,17 +1898,17 @@ sub help {
18981898
18991899
===OPTION LIST===
19001900
volume_health
1901-
desc: Check the space and inode health of a vServer volume. If space % and space in *B are both defined the smaller value of the two will be used when deciding if the volume is in a warning or critical state. This allows you to better accomodate large volume monitoring.
1901+
desc: Check the space and inode health of a vServer volume. If space % and space in *B are both defined the smaller value of the two will be used when deciding if the volume is in a warning or critical state. This allows you to better accomodate large volume monitoring. Separate values with comma.
19021902
thresh: Space % used, space in *B (i.e MB) remaining, inode count remaining, inode % used (Usage example: 80%i), "offline" keyword.
19031903
node: The node option restricts this check by vserver name.
19041904
19051905
aggregate_health
1906-
desc: Check the space and inode health of a cluster aggregate. If space % and space in *B are both defined the smaller value of the two will be used when deciding if the volume is in a warning or critical state. This allows you to better accomodate large aggregate monitoring.
1906+
desc: Check the space and inode health of a cluster aggregate. If space % and space in *B are both defined the smaller value of the two will be used when deciding if the volume is in a warning or critical state. This allows you to better accomodate large aggregate monitoring. Separate values with comma.
19071907
thresh: Space % used, space in *B (i.e MB) remaining, inode count remaining, inode % used (Usage example: 80%i), "offline" keyword, "is-home" keyword.
19081908
node: The node option restricts this check by cluster-node name.
19091909
19101910
snapshot_health
1911-
desc: Check the space and inode health of a vServer snapshot. If space % and space in *B are both defined the smaller value of the two will be used when deciding if the volume is in a warning or critical state. This allows you to better accomodate large snapshot monitoring.
1911+
desc: Check the space and inode health of a vServer snapshot. If space % and space in *B are both defined the smaller value of the two will be used when deciding if the volume is in a warning or critical state. This allows you to better accomodate large snapshot monitoring. Separate values with comma.
19121912
thresh: Space % used, space in *B (i.e MB) remaining, inode count remaining, inode % used (Usage example: 80%i), "offline" keyword.
19131913
node: The node option restricts this check by vserver name.
19141914
@@ -1954,7 +1954,7 @@ sub help {
19541954
thresh: N/A not customizable.
19551955
node: The node option restricts this check by cluster-node name.
19561956
1957-
clusternnode_health
1957+
clusternode_health
19581958
desc: Check the cluster-nodes for unhealthy conditions
19591959
thresh: N/A not customizable.
19601960
node: The node option restricts this check by cluster-node name.

0 commit comments

Comments
 (0)