check_netapp_disk container-type

Checks the disks container-type.

Usage

$ check_netapp_disk container-type -H <host> [...] [--help]

Description

This plugin checks if disks in unwanted container-types are present.

Important Parameters

--include / --exclude: Filter on the instance name <node>.<disk> (e.g. node-01.1.0.3). See Regular Expressions.

Be careful when filtering snapshots based on their node name, as broken disks can lose their connection to the node and disappear unnoticed from your check. See Possible false negative: Broken disks have no node

--ok-type: Regular expression that defines, which container-types are ok. The default is ^(aggregate|spare)$ effectively seeing all disks which are either in an aggregate or in a spare container to be ok.

For all other parameters consult --help on the commandline.

sim97::> disk show -fields prefailed, container-type
disk     container-type prefailed                                     
-------- -------------- --------- 
NET-1.1  aggregate      false     
NET-1.2  aggregate      false     
NET-1.3  aggregate      false     
NET-1.4  aggregate      false     
NET-1.5  aggregate      false     
NET-1.6  aggregate      false     
NET-1.7  aggregate      false     
NET-1.8  aggregate      false     
NET-1.9  aggregate      false     
NET-1.10 aggregate      false     
NET-1.11 spare          -         
NET-1.12 spare          -         
NET-1.13 spare          -         
NET-1.14 spare          -         
NET-1.15 aggregate      false     
NET-1.16 aggregate      false     
NET-1.17 aggregate      false     
NET-1.18 aggregate      false     
NET-1.19 aggregate      false     
NET-1.20 aggregate      false     
NET-1.21 aggregate      false     
NET-1.22 aggregate      false     
NET-1.23 aggregate      false     
NET-1.24 aggregate      false     
NET-1.25 aggregate      false     
NET-1.26 spare          -         
NET-1.27 spare          -         
NET-1.28 spare          -         
28 entries were displayed.

The prefailed check is not implemented yet. Please drop us a note, if you would like to have that check as well.

Examples

.$ check_netapp_disk container-type -H sim96
NETAPP DISK CONTAINER TYPE OK - 28 disks checked
sim96cluster-01.NET-1.28: spare
sim96cluster-01.NET-1.27: spare
sim96cluster-01.NET-1.26: aggregate
sim96cluster-01.NET-1.25: aggregate
sim96cluster-01.NET-1.24: aggregate
sim96cluster-01.NET-1.23: aggregate
sim96cluster-01.NET-1.22: aggregate
sim96cluster-01.NET-1.21: aggregate
sim96cluster-01.NET-1.20: aggregate
sim96cluster-01.NET-1.19: spare
sim96cluster-01.NET-1.18: spare
sim96cluster-01.NET-1.17: aggregate
sim96cluster-01.NET-1.16: aggregate
sim96cluster-01.NET-1.15: aggregate
sim96cluster-01.NET-1.14: aggregate
sim96cluster-01.NET-1.13: aggregate
sim96cluster-01.NET-1.12: aggregate
sim96cluster-01.NET-1.11: aggregate
sim96cluster-01.NET-1.10: aggregate
sim96cluster-01.NET-1.9: aggregate
sim96cluster-01.NET-1.8: aggregate
sim96cluster-01.NET-1.7: aggregate
sim96cluster-01.NET-1.6: spare
sim96cluster-01.NET-1.5: spare
sim96cluster-01.NET-1.4: spare
sim96cluster-01.NET-1.3: aggregate
sim96cluster-01.NET-1.2: aggregate
sim96cluster-01.NET-1.1: aggregate

Checks is all disks are in either in the aggregate or spare container.