check_netapp_spare (Spare-Disk/-Partition Check)

Depending on the subcommand (disk|partition), it is checked whether there are enough spare hard disks or partitions available for each node in the cluster.

Usage

$ check_netapp_spare disk|partition -H <host> [...] [--help]

Description

This plugin counts the available spare-disks (or partitions) for each node and model of disk (type, class, usable-size, rotation-speed) and compares this number with the given thresholds.

Important Parameters

--include / --exclude: Include or exclude disks based on their name. The node-name is pre-fixed to the disk-name so that you can filter also based on the node-name.

--warning / --critical: Thresholds for the number of required spare-disks per node, type and size. Defaults to 2 for warning and 1 for critical. (Warns if the number falls below 2 and sends a critical alarm it that number falls below 1.)

Note: Non-zeroed spare-disks are not considered as valid spares.

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

sim96cluster::storage aggregate> show-spare-disks                                         
                                                                      
Original Owner: sim96cluster-01
 Pool0
  Spare Pool

                                                             Usable Physical
 Disk             Type   Class          RPM Checksum           Size     Size Status
 ---------------- ------ ----------- ------ -------------- -------- -------- --------
 NET-1.4          FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.5          FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.6          FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.18         FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.19         FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.27         FCAL   performance  15000 block            1020MB   1.00GB zeroed
 NET-1.28         FCAL   performance  15000 block            1020MB   1.00GB zeroed
7 entries were displayed.

Examples

Simple Examples

./check_netapp_spare disk -H filer
NETAPP_PRO SPARE OK - 28 disks checked
...

Checks all nodes for sufficient spare-disks.

./check_netapp_spare partition -H filer
NETAPP SPARE WARNING - 68 partitions checked, 68 WARNING
prod-na-01.1.0.23.P3: 1 spare-disks (WARNING)
prod-na-01.1.0.23.P2: 1 spare-disks (WARNING)
prod-na-02.1.0.23.P1: 1 spare-disks (WARNING)
...

Checks all nodes for sufficient spare-partitions.